/external/u-boot/cmd/ |
D | onenand.c | 67 loff_t ofs = from; in onenand_block_read() local 79 ret = mtd_block_isbad(mtd, ofs); in onenand_block_read() 82 (u32)(ofs >> this->erase_shift), (u32)ofs); in onenand_block_read() 83 ofs += blocksize; in onenand_block_read() 93 ret = mtd_read_oob(mtd, ofs, &ops); in onenand_block_read() 95 printk("Read failed 0x%x, %d\n", (u32)ofs, ret); in onenand_block_read() 96 ofs += blocksize; in onenand_block_read() 99 ofs += blocksize; in onenand_block_read() 138 loff_t ofs; in onenand_block_write() local 155 ofs = to; in onenand_block_write() [all …]
|
/external/u-boot/lib/ |
D | slre.c | 440 loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) in loop_greedy() argument 444 matched_offset = *ofs; in loop_greedy() 446 while (match(r, pc + 2, s, len, ofs, NULL)) { in loop_greedy() 447 saved_offset = *ofs; in loop_greedy() 448 if (match(r, pc + r->code[pc + 1], s, len, ofs, NULL)) in loop_greedy() 450 *ofs = saved_offset; in loop_greedy() 453 *ofs = matched_offset; in loop_greedy() 457 loop_non_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) in loop_non_greedy() argument 459 int saved_offset = *ofs; in loop_non_greedy() 461 while (match(r, pc + 2, s, len, ofs, NULL)) { in loop_non_greedy() [all …]
|
/external/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
D | iomux.c | 31 u32 reg, ofs, bp, bm; in mxs_iomux_setup_pad() local 36 ofs = 0x100; in mxs_iomux_setup_pad() 37 ofs += PAD_BANK(pad) * 0x20 + PAD_PIN(pad) / 16 * 0x10; in mxs_iomux_setup_pad() 40 reg = readl(iomux_base + ofs); in mxs_iomux_setup_pad() 43 writel(reg, iomux_base + ofs); in mxs_iomux_setup_pad() 46 ofs = DRIVE_OFFSET; in mxs_iomux_setup_pad() 47 ofs += PAD_BANK(pad) * 0x40 + PAD_PIN(pad) / 8 * 0x10; in mxs_iomux_setup_pad() 52 reg = readl(iomux_base + ofs); in mxs_iomux_setup_pad() 55 writel(reg, iomux_base + ofs); in mxs_iomux_setup_pad() 60 mxs_reg = (struct mxs_register_32 *)(iomux_base + ofs); in mxs_iomux_setup_pad() [all …]
|
/external/libcxx/test/libcxx/input.output/file.streams/fstreams/ |
D | fstream.close.pass.cpp | 26 std::fstream ofs(temp, std::ios::out | std::ios::trunc); in main() local 27 ofs << "Hello, World!\n"; in main() 28 assert( ofs.good()); in main() 29 ofs.close(); in main() 30 assert( ofs.good()); in main() 31 ofs << "Hello, World!\n"; in main() 32 assert(!ofs.good()); in main()
|
/external/mesa3d/src/mesa/main/ |
D | mm.c | 42 fprintf(stderr, " Offset:%08x, Size:%08x, %c%c\n",p->ofs,p->size, in mmDumpMemInfo() 50 fprintf(stderr, " FREE Offset:%08x, Size:%08x, %c%c\n",p->ofs,p->size, in mmDumpMemInfo() 60 mmInit(unsigned ofs, unsigned size) in mmInit() argument 88 block->ofs = ofs; in mmInit() 104 if (startofs > p->ofs) { in SliceBlock() 108 newblock->ofs = startofs; in SliceBlock() 109 newblock->size = p->size - (startofs - p->ofs); in SliceBlock() 132 newblock->ofs = startofs + size; in SliceBlock() 180 startofs = (p->ofs + mask) & ~mask; in mmAllocMem() 185 if (endofs <= (p->ofs+p->size)) in mmAllocMem() [all …]
|
/external/curl/src/ |
D | tool_cb_see.c | 95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument 101 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence) argument 103 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence) argument 110 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
|
/external/mesa3d/src/gallium/drivers/nouveau/ |
D | nouveau_vp3_video_vp.c | 32 uint32_t ofs[6]; // 1c..20 ofs member 58 uint32_t ofs[6]; // 10..24 ofs member 96 uint32_t ofs[6]; // 14..28 ofs member 115 uint32_t ofs[6]; // 0c..24 in-image offset member 240 nouveau_vp3_ycbcr_offsets(dec, &pic_vp->ofs[1], &pic_vp->ofs[3], &pic_vp->ofs[4]); in nouveau_vp3_fill_picparm_mpeg12_vp() 241 pic_vp->ofs[5] = pic_vp->ofs[3]; in nouveau_vp3_fill_picparm_mpeg12_vp() 242 pic_vp->ofs[0] = pic_vp->ofs[2] = 0; in nouveau_vp3_fill_picparm_mpeg12_vp() 280 nouveau_vp3_ycbcr_offsets(dec, &pic_vp->ofs[1], &pic_vp->ofs[3], &pic_vp->ofs[4]); in nouveau_vp3_fill_picparm_mpeg4_vp() 281 pic_vp->ofs[5] = pic_vp->ofs[3]; in nouveau_vp3_fill_picparm_mpeg4_vp() 282 pic_vp->ofs[0] = pic_vp->ofs[2] = 0; in nouveau_vp3_fill_picparm_mpeg4_vp() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_mm.c | 45 debug_printf(" Offset:%08x, Size:%08x, %c%c\n", p->ofs, p->size, in u_mmDumpMemInfo() 59 debug_printf(" FREE Offset:%08x, Size:%08x, %c%c\n", p->ofs, p->size, in u_mmDumpMemInfo() 70 u_mmInit(int ofs, int size) in u_mmInit() argument 98 block->ofs = ofs; in u_mmInit() 114 if (startofs > p->ofs) { in SliceBlock() 118 newblock->ofs = startofs; in SliceBlock() 119 newblock->size = p->size - (startofs - p->ofs); in SliceBlock() 142 newblock->ofs = startofs + size; in SliceBlock() 197 startofs = (p->ofs + mask) & ~mask; in u_mmAllocMem() 202 if (endofs <= (p->ofs+p->size)) in u_mmAllocMem() [all …]
|
/external/libdrm/intel/ |
D | mm.c | 41 drmMsg(" Offset:%08x, Size:%08x, %c%c\n", p->ofs, in mmDumpMemInfo() 49 drmMsg(" FREE Offset:%08x, Size:%08x, %c%c\n", p->ofs, in mmDumpMemInfo() 58 drm_private struct mem_block *mmInit(int ofs, int size) in mmInit() argument 86 block->ofs = ofs; in mmInit() 100 if (startofs > p->ofs) { in SliceBlock() 105 newblock->ofs = startofs; in SliceBlock() 106 newblock->size = p->size - (startofs - p->ofs); in SliceBlock() 130 newblock->ofs = startofs + size; in SliceBlock() 177 startofs = (p->ofs + mask) & ~mask; in mmAllocMem() 182 if (endofs <= (p->ofs + p->size)) in mmAllocMem() [all …]
|
/external/u-boot/tools/ |
D | lpc32xximage.c | 123 static void print_hdr_byte(struct nand_page_0_boot_header *hdr, int ofs) in print_hdr_byte() argument 125 printf("header[%d] = %02x\n", ofs, hdr->data[ofs]); in print_hdr_byte() 132 int ofs; in lpc32xximage_print_header() local 134 for (ofs = 0; ofs <= 12; ofs++) in lpc32xximage_print_header() 135 print_hdr_byte(hdr, ofs); in lpc32xximage_print_header()
|
/external/libpcap/msdos/ |
D | pktdrvr.c | 828 WORD ofs = _farpeekw (_dos_ds, realBase+rxOutOfs); in PktReceive() local 830 if (ofs != _farpeekw (_dos_ds, realBase+rxInOfs)) in PktReceive() 835 head.firstCount = _farpeekw (_dos_ds, realBase+ofs); in PktReceive() 836 head.secondCount = _farpeekw (_dos_ds, realBase+ofs+2); in PktReceive() 837 head.handle = _farpeekw (_dos_ds, realBase+ofs+4); in PktReceive() 843 dosmemget (realBase+ofs+6, len, buf); in PktReceive() 848 ofs += sizeof (RX_ELEMENT); in PktReceive() 849 if (ofs > LAST_RX_BUF) in PktReceive() 851 else _farpokew (_dos_ds, realBase+rxOutOfs, ofs); in PktReceive() 859 WORD ofs; in PktQueueBusy() local [all …]
|
/external/u-boot/include/ |
D | nand.h | 47 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read() argument 50 return mtd_read(info, ofs, *len, (size_t *)len, buf); in nand_read() 53 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, in nand_write() argument 56 return mtd_write(info, ofs, *len, (size_t *)len, buf); in nand_write() 59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad() argument 61 return mtd_block_isbad(info, ofs); in nand_block_isbad() 112 loff_t ofs); 113 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf);
|
/external/u-boot/drivers/mtd/spi/ |
D | spi_flash.c | 575 static int sst26_lock_ctl(struct spi_flash *flash, u32 ofs, size_t len, enum lock_ctl ctl) in sst26_lock_ctl() argument 583 if ((ofs & (SZ_64K - 1)) || (len & (SZ_64K - 1))) in sst26_lock_ctl() 586 if (ofs + len > flash->size) in sst26_lock_ctl() 604 rptr_64k = min_t(u32, ofs + len , flash->size - SST26_BOUND_REG_SIZE); in sst26_lock_ctl() 605 lptr_64k = max_t(u32, ofs, SST26_BOUND_REG_SIZE); in sst26_lock_ctl() 607 upper_64k = ((ofs + len) > (flash->size - SST26_BOUND_REG_SIZE)); in sst26_lock_ctl() 608 lower_64k = (ofs < SST26_BOUND_REG_SIZE); in sst26_lock_ctl() 673 static int sst26_unlock(struct spi_flash *flash, u32 ofs, size_t len) in sst26_unlock() argument 675 return sst26_lock_ctl(flash, ofs, len, SST26_CTL_UNLOCK); in sst26_unlock() 678 static int sst26_lock(struct spi_flash *flash, u32 ofs, size_t len) in sst26_lock() argument [all …]
|
/external/f2fs-tools/fsck/ |
D | node.h | 92 unsigned int ofs = ofs_of_node(node_page); in IS_DNODE() local 94 if (ofs == 3 || ofs == 4 + NIDS_PER_BLOCK || in IS_DNODE() 95 ofs == 5 + 2 * NIDS_PER_BLOCK) in IS_DNODE() 98 if (ofs >= 6 + 2 * NIDS_PER_BLOCK) { in IS_DNODE() 99 ofs -= 6 + 2 * NIDS_PER_BLOCK; in IS_DNODE() 100 if (!((long int)ofs % (NIDS_PER_BLOCK + 1))) in IS_DNODE()
|
/external/u-boot/fs/jffs2/ |
D | jffs2_1pass.c | 1337 int ret, __maybe_unused ofs; in jffs2_sum_scan_sumnode() local 1340 ofs = part->sector_size - sumsize; in jffs2_sum_scan_sumnode() 1343 offset, offset + ofs, sumsize); in jffs2_sum_scan_sumnode() 1500 uint32_t ofs, prevofs; in jffs2_1pass_build_lists() local 1574 ofs = 0; in jffs2_1pass_build_lists() 1577 while (ofs < EMPTY_SCAN_SIZE(part->sector_size) && in jffs2_1pass_build_lists() 1578 *(uint32_t *)(&buf[ofs]) == 0xFFFFFFFF) in jffs2_1pass_build_lists() 1579 ofs += 4; in jffs2_1pass_build_lists() 1581 if (ofs == EMPTY_SCAN_SIZE(part->sector_size)) in jffs2_1pass_build_lists() 1584 ofs += sector_ofs; in jffs2_1pass_build_lists() [all …]
|
/external/mesa3d/src/mesa/x86/ |
D | common_x86.c | 292 GLuint ofs; in _mesa_get_x86_features() local 294 for (ofs = 0; ofs < 3; ofs++) in _mesa_get_x86_features() 295 …000002+ofs, (GLuint *)(cpu_name + (16*ofs)+0), (GLuint *)(cpu_name + (16*ofs)+4), (GLuint *)(cpu_n… in _mesa_get_x86_features()
|
/external/u-boot/drivers/ata/ |
D | libata.c | 43 unsigned int ofs, unsigned int len) in ata_id_string() argument 48 c = id[ofs] >> 8; in ata_id_string() 52 c = id[ofs] & 0xff; in ata_id_string() 56 ofs++; in ata_id_string() 62 unsigned int ofs, unsigned int len) in ata_id_c_string() argument 66 ata_id_string(id, s, ofs, len - 1); in ata_id_c_string()
|
/external/libjpeg-turbo/md5/ |
D | md5hl.c | 83 char *MD5FileChunk(const char *filename, char *buf, off_t ofs, off_t len) in MD5FileChunk() argument 101 if (ofs > stbuf.st_size) in MD5FileChunk() 102 ofs = stbuf.st_size; in MD5FileChunk() 103 if ((len == 0) || (len > stbuf.st_size - ofs)) in MD5FileChunk() 104 len = stbuf.st_size - ofs; in MD5FileChunk() 105 if (lseek(f, ofs, SEEK_SET) < 0) in MD5FileChunk()
|
/external/python/cpython2/Objects/ |
D | listobject.c | 1175 Py_ssize_t ofs; in gallop_left() local 1183 ofs = 1; in gallop_left() 1189 while (ofs < maxofs) { in gallop_left() 1190 IFLT(a[ofs], key) { in gallop_left() 1191 lastofs = ofs; in gallop_left() 1192 ofs = (ofs << 1) + 1; in gallop_left() 1193 if (ofs <= 0) /* int overflow */ in gallop_left() 1194 ofs = maxofs; in gallop_left() 1199 if (ofs > maxofs) in gallop_left() 1200 ofs = maxofs; in gallop_left() [all …]
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | encode_decode.c | 51 #define DEREF(msg, ofs, type) *(type*)(((uint8_t *)msg) + ofs) argument 54 static const void* newhandlerdata(upb_handlers* h, uint32_t ofs) { in newhandlerdata() argument 56 *hd_ofs = ofs; in newhandlerdata() 62 size_t ofs; member 67 static const void *newsubmsghandlerdata(upb_handlers* h, uint32_t ofs, in newsubmsghandlerdata() argument 70 hd->ofs = ofs; in newsubmsghandlerdata() 77 size_t ofs; // union data slot member 84 uint32_t ofs, in newoneofhandlerdata() argument 88 hd->ofs = ofs; in newoneofhandlerdata() 110 const size_t *ofs = hd; in startseq_handler() local [all …]
|
/external/u-boot/drivers/mtd/ |
D | mtdconcat.c | 503 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock() argument 512 if (ofs >= subdev->size) { in concat_lock() 514 ofs -= subdev->size; in concat_lock() 517 if (ofs + len > subdev->size) in concat_lock() 518 size = subdev->size - ofs; in concat_lock() 522 err = mtd_lock(subdev, ofs, size); in concat_lock() 531 ofs = 0; in concat_lock() 537 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_unlock() argument 546 if (ofs >= subdev->size) { in concat_unlock() 548 ofs -= subdev->size; in concat_unlock() [all …]
|
D | mtdcore.c | 1451 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock() argument 1455 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_lock() 1459 return mtd->_lock(mtd, ofs, len); in mtd_lock() 1463 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock() argument 1467 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_unlock() 1471 return mtd->_unlock(mtd, ofs, len); in mtd_unlock() 1475 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked() argument 1479 if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) in mtd_is_locked() 1483 return mtd->_is_locked(mtd, ofs, len); in mtd_is_locked() 1487 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved() argument [all …]
|
/external/python/cpython3/Objects/ |
D | listobject.c | 1310 Py_ssize_t ofs; in gallop_left() local 1318 ofs = 1; in gallop_left() 1324 while (ofs < maxofs) { in gallop_left() 1325 IFLT(a[ofs], key) { in gallop_left() 1326 lastofs = ofs; in gallop_left() 1327 ofs = (ofs << 1) + 1; in gallop_left() 1328 if (ofs <= 0) /* int overflow */ in gallop_left() 1329 ofs = maxofs; in gallop_left() 1334 if (ofs > maxofs) in gallop_left() 1335 ofs = maxofs; in gallop_left() [all …]
|
/external/u-boot/drivers/rtc/ |
D | mc146818.c | 56 int ofs = 0; in mc146818_read8() 59 ofs = 2; in mc146818_read8() 62 out8(RTC_PORT_MC146818 + ofs, reg); in mc146818_read8() 64 return in8(RTC_PORT_MC146818 + ofs + 1); in mc146818_read8() 73 int ofs = 0; in mc146818_write8() 76 ofs = 2; in mc146818_write8() 79 out8(RTC_PORT_MC146818 + ofs, reg); in mc146818_write8() 80 out8(RTC_PORT_MC146818 + ofs + 1, val); in mc146818_write8()
|
/external/skia/modules/particles/include/ |
D | SkParticleData.h | 38 SkRSXform asRSXform(SkPoint ofs) const { in asRSXform() 42 fPosition.fX + -c * ofs.fX + s * ofs.fY, in asRSXform() 43 fPosition.fY + -s * ofs.fX + -c * ofs.fY); in asRSXform()
|