/external/libcxx/test/libcxx/input.output/file.streams/fstreams/ |
fstream.close.pass.cpp | 26 std::fstream ofs(temp, std::ios::out | std::ios::trunc); 27 ofs << "Hello, World!\n"; 28 assert( ofs.good()); 29 ofs.close(); 30 assert( ofs.good()); 31 ofs << "Hello, World!\n"; 32 assert(!ofs.good());
|
/external/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
iomux.c | 31 u32 reg, ofs, bp, bm; local 36 ofs = 0x100; 37 ofs += PAD_BANK(pad) * 0x20 + PAD_PIN(pad) / 16 * 0x10; 40 reg = readl(iomux_base + ofs); 43 writel(reg, iomux_base + ofs); 46 ofs = DRIVE_OFFSET; 47 ofs += PAD_BANK(pad) * 0x40 + PAD_PIN(pad) / 8 * 0x10; 52 reg = readl(iomux_base + ofs); 55 writel(reg, iomux_base + ofs); 60 mxs_reg = (struct mxs_register_32 *)(iomux_base + ofs); [all...] |
/external/u-boot/cmd/ |
onenand.c | 67 loff_t ofs = from; local 79 ret = mtd_block_isbad(mtd, ofs); 82 (u32)(ofs >> this->erase_shift), (u32)ofs); 83 ofs += blocksize; 93 ret = mtd_read_oob(mtd, ofs, &ops); 95 printk("Read failed 0x%x, %d\n", (u32)ofs, ret); 96 ofs += blocksize; 99 ofs += blocksize; 138 loff_t ofs; local 192 loff_t ofs; local 228 loff_t ofs; local 369 ulong ofs; local 386 ulong addr, ofs; local 413 ulong addr, ofs; local 439 ulong ofs; local 475 ulong ofs; local 500 ulong ofs; local [all...] |
/external/curl/src/ |
tool_cb_see.c | 95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) 101 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence) 103 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence) 110 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
|
/external/libdrm/intel/ |
mm.h | 38 int ofs, size; member in struct:mem_block 47 drm_private extern struct mem_block *mmInit(int ofs, int size);
|
mm.c | 41 drmMsg(" Offset:%08x, Size:%08x, %c%c\n", p->ofs, 49 drmMsg(" FREE Offset:%08x, Size:%08x, %c%c\n", p->ofs, 58 drm_private struct mem_block *mmInit(int ofs, int size) 86 block->ofs = ofs; 100 if (startofs > p->ofs) { 105 newblock->ofs = startofs; 106 newblock->size = p->size - (startofs - p->ofs); 130 newblock->ofs = startofs + size; 177 startofs = (p->ofs + mask) & ~mask [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_mm.h | 41 int ofs,size; member in struct:mem_block 52 extern struct mem_block *u_mmInit(int ofs, int size);
|
u_mm.c | 45 debug_printf(" Offset:%08x, Size:%08x, %c%c\n", p->ofs, p->size, 59 debug_printf(" FREE Offset:%08x, Size:%08x, %c%c\n", p->ofs, p->size, 70 u_mmInit(int ofs, int size) 98 block->ofs = ofs; 114 if (startofs > p->ofs) { 118 newblock->ofs = startofs; 119 newblock->size = p->size - (startofs - p->ofs); 142 newblock->ofs = startofs + size; 197 startofs = (p->ofs + mask) & ~mask [all...] |
/external/mesa3d/src/mesa/main/ |
mm.h | 39 unsigned ofs; member in struct:mem_block 51 extern struct mem_block *mmInit(unsigned ofs, unsigned size);
|
mm.c | 42 fprintf(stderr, " Offset:%08x, Size:%08x, %c%c\n",p->ofs,p->size, 50 fprintf(stderr, " FREE Offset:%08x, Size:%08x, %c%c\n",p->ofs,p->size, 60 mmInit(unsigned ofs, unsigned size) 88 block->ofs = ofs; 104 if (startofs > p->ofs) { 108 newblock->ofs = startofs; 109 newblock->size = p->size - (startofs - p->ofs); 132 newblock->ofs = startofs + size; 180 startofs = (p->ofs + mask) & ~mask [all...] |
/external/u-boot/lib/ |
slre.c | 440 loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) 444 matched_offset = *ofs; 446 while (match(r, pc + 2, s, len, ofs, NULL)) { 447 saved_offset = *ofs; 448 if (match(r, pc + r->code[pc + 1], s, len, ofs, NULL)) 450 *ofs = saved_offset; 453 *ofs = matched_offset; 457 loop_non_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) 459 int saved_offset = *ofs; 461 while (match(r, pc + 2, s, len, ofs, NULL)) 650 int i, ofs = 0, res = 0; local [all...] |
/external/f2fs-tools/fsck/ |
node.h | 92 unsigned int ofs = ofs_of_node(node_page); local 94 if (ofs == 3 || ofs == 4 + NIDS_PER_BLOCK || 95 ofs == 5 + 2 * NIDS_PER_BLOCK) 98 if (ofs >= 6 + 2 * NIDS_PER_BLOCK) { 99 ofs -= 6 + 2 * NIDS_PER_BLOCK; 100 if (!((long int)ofs % (NIDS_PER_BLOCK + 1)))
|
/external/u-boot/drivers/ata/ |
libata.c | 43 unsigned int ofs, unsigned int len) 48 c = id[ofs] >> 8; 52 c = id[ofs] & 0xff; 56 ofs++; 62 unsigned int ofs, unsigned int len) 66 ata_id_string(id, s, ofs, len - 1);
|
/external/u-boot/tools/ |
lpc32xximage.c | 123 static void print_hdr_byte(struct nand_page_0_boot_header *hdr, int ofs) 125 printf("header[%d] = %02x\n", ofs, hdr->data[ofs]); 132 int ofs; local 134 for (ofs = 0; ofs <= 12; ofs++) 135 print_hdr_byte(hdr, ofs);
|
/external/skia/modules/particles/include/ |
SkParticleData.h | 38 SkRSXform asRSXform(SkPoint ofs) const { 42 fPosition.fX + -c * ofs.fX + s * ofs.fY, 43 fPosition.fY + -s * ofs.fX + -c * ofs.fY);
|
/external/libjpeg-turbo/md5/ |
md5hl.c | 83 char *MD5FileChunk(const char *filename, char *buf, off_t ofs, off_t len) 101 if (ofs > stbuf.st_size) 102 ofs = stbuf.st_size; 103 if ((len == 0) || (len > stbuf.st_size - ofs)) 104 len = stbuf.st_size - ofs; 105 if (lseek(f, ofs, SEEK_SET) < 0)
|
/external/u-boot/include/ |
nand.h | 47 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, 50 return mtd_read(info, ofs, *len, (size_t *)len, buf); 53 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, 56 return mtd_write(info, ofs, *len, (size_t *)len, buf); 59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) 61 return mtd_block_isbad(info, ofs); 112 loff_t ofs); 113 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf);
|
spi_flash.h | 88 int (*flash_lock)(struct spi_flash *flash, u32 ofs, size_t len); 89 int (*flash_unlock)(struct spi_flash *flash, u32 ofs, size_t len); 90 int (*flash_is_locked)(struct spi_flash *flash, u32 ofs, size_t len); 217 static inline int spi_flash_protect(struct spi_flash *flash, u32 ofs, u32 len, 224 return flash->flash_lock(flash, ofs, len); 226 return flash->flash_unlock(flash, ofs, len);
|
/bionic/libdl/ |
libdl_cfi.cpp | 48 uintptr_t ofs = CFIShadow::MemToShadowOffset(addr); local 49 if (ofs > CFIShadow::kShadowSize) return CFIShadow::kInvalidShadow; 50 return *reinterpret_cast<uint16_t*>(shadow_base_storage.v + ofs);
|
/external/protobuf/conformance/ |
ConformanceJavaLite.java | 9 int ofs = 0; local 11 int read = System.in.read(buf, ofs, len); 15 ofs += read;
|
/external/mesa3d/src/mesa/x86/ |
common_x86.c | 292 GLuint ofs; local 294 for (ofs = 0; ofs < 3; ofs++) 295 _mesa_x86_cpuid(0x80000002+ofs, (GLuint *)(cpu_name + (16*ofs)+0), (GLuint *)(cpu_name + (16*ofs)+4), (GLuint *)(cpu_name + (16*ofs)+8), (GLuint *)(cpu_name + (16*ofs)+12));
|
/external/mesa3d/src/gallium/drivers/nouveau/ |
nouveau_vp3_video_vp.c | 32 uint32_t ofs[6]; // 1c..20 ofs member in struct:mpeg12_picparm_vp 58 uint32_t ofs[6]; // 10..24 ofs member in struct:mpeg4_picparm_vp 96 uint32_t ofs[6]; // 14..28 ofs member in struct:vc1_picparm_vp 115 uint32_t ofs[6]; // 0c..24 in-image offset member in struct:h264_picparm_vp 122 unsigned direct_8x8_inference_flag : 1; // 1 0x02: into vuc ofs 56 124 unsigned constrained_intra_pred_flag : 1; // 3 0x08: into vuc ofs 68 240 nouveau_vp3_ycbcr_offsets(dec, &pic_vp->ofs[1], &pic_vp->ofs[3], &pic_vp->ofs[4]) [all...] |
/external/u-boot/drivers/mtd/spi/ |
spi_flash.c | 575 static int sst26_lock_ctl(struct spi_flash *flash, u32 ofs, size_t len, enum lock_ctl ctl) 583 if ((ofs & (SZ_64K - 1)) || (len & (SZ_64K - 1))) 586 if (ofs + len > flash->size) 604 rptr_64k = min_t(u32, ofs + len , flash->size - SST26_BOUND_REG_SIZE); 605 lptr_64k = max_t(u32, ofs, SST26_BOUND_REG_SIZE); 607 upper_64k = ((ofs + len) > (flash->size - SST26_BOUND_REG_SIZE)); 608 lower_64k = (ofs < SST26_BOUND_REG_SIZE); 673 static int sst26_unlock(struct spi_flash *flash, u32 ofs, size_t len) 675 return sst26_lock_ctl(flash, ofs, len, SST26_CTL_UNLOCK); 678 static int sst26_lock(struct spi_flash *flash, u32 ofs, size_t len [all...] |
/external/u-boot/drivers/rtc/ |
mc146818.c | 56 int ofs = 0; 59 ofs = 2; 62 out8(RTC_PORT_MC146818 + ofs, reg); 64 return in8(RTC_PORT_MC146818 + ofs + 1); 73 int ofs = 0; 76 ofs = 2; 79 out8(RTC_PORT_MC146818 + ofs, reg); 80 out8(RTC_PORT_MC146818 + ofs + 1, val);
|
/external/libpcap/msdos/ |
pktdrvr.c | 363 static char pktStr[9] = "PKT DRVR"; /* ASCIIZ string at ofs 3 */ 828 WORD ofs = _farpeekw (_dos_ds, realBase+rxOutOfs); local 830 if (ofs != _farpeekw (_dos_ds, realBase+rxInOfs)) 835 head.firstCount = _farpeekw (_dos_ds, realBase+ofs); 836 head.secondCount = _farpeekw (_dos_ds, realBase+ofs+2); 837 head.handle = _farpeekw (_dos_ds, realBase+ofs+4); 843 dosmemget (realBase+ofs+6, len, buf); 848 ofs += sizeof (RX_ELEMENT); 849 if (ofs > LAST_RX_BUF) 851 else _farpokew (_dos_ds, realBase+rxOutOfs, ofs); 859 WORD ofs; local 894 WORD ofs = *(WORD*) (realBase+rxOutOfs); local 925 WORD ofs; local 1246 unsigned sel, ofs; local [all...] |