Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 113) sorted by relevance

12345

/external/syslinux/libinstaller/
Dsyslxcom.c179 static int sectmap_fie(int fd, sector_t *sectors, int nsectors) in sectmap_fie() argument
208 memset(sectors, 0, nsectors * sizeof *sectors); in sectmap_fie()
209 esec = sectors + nsectors; in sectmap_fie()
235 secp = sectors + (fe->fe_logical >> SECTOR_SHIFT); in sectmap_fie()
252 static int sectmap_fib(int fd, sector_t *sectors, int nsectors) in sectmap_fib() argument
274 *sectors++ = sec++; in sectmap_fib()
286 int sectmap(int fd, sector_t *sectors, int nsectors) in sectmap() argument
288 if (!sectmap_fie(fd, sectors, nsectors)) in sectmap()
291 return sectmap_fib(fd, sectors, nsectors); in sectmap()
Dfs.c57 long long sectors, fatsectors, dsectors; in check_fat_bootsect() local
67 sectors = get_16(&sectbuf->bsSectors); in check_fat_bootsect()
68 sectors = sectors ? sectors : get_32(&sectbuf->bsHugeSectors); in check_fat_bootsect()
70 dsectors = sectors - get_16(&sectbuf->bsResSectors); in check_fat_bootsect()
Dsyslxopt.c33 .sectors = 0,
148 opt.sectors = 32; in parse_options()
151 opt.sectors = strtoul(optarg, NULL, 0); in parse_options()
152 if (opt.sectors < 1 || opt.sectors > 63) { in parse_options()
155 program, opt.sectors); in parse_options()
/external/gptfdisk/
Ddiskio-unix.cc212 numSecs = (uint32_t) geometry.sectors; in GetNumSecsPerTrack()
392 uint64_t sectors = 0; // size in sectors in DiskSize() local
412 *err = ioctl(fd, DKIOCGETBLOCKCOUNT, &sectors); in DiskSize()
418 sectors = minfo.dki_capacity; in DiskSize()
424 sectors = bytes / b; in DiskSize()
432 sectors = sz = 0; in DiskSize()
437 sectors = sz; in DiskSize()
439 sectors = (b >> 9); in DiskSize()
443 sectors /= (GetBlockSize() / 512); in DiskSize()
452 if ((sectors == 0) || (*err == -1)) { in DiskSize()
[all …]
Ddiskio-windows.cc306 uint64_t sectors = 0; // size in sectors in DiskSize() local
323 sectors = (uint64_t) buf.Length.QuadPart / GetBlockSize(); in DiskSize()
327 sectors = ((uint64_t) bytes + ((uint64_t) moreBytes) * UINT32_MAX) / GetBlockSize(); in DiskSize()
332 sectors = 0; in DiskSize()
335 return sectors; in DiskSize()
/external/valgrind/coregrind/
Dm_transtab.c445 static Sector sectors[MAX_N_SECTORS]; variable
539 Sector* s = &sectors[sNo]; in index_tteC()
551 Sector* s = &sectors[sNo]; in index_tteH()
765 hx->start, hx->len, (int)(sec - sectors), \ in HostExtent__is_dead()
802 const Sector* sec = &sectors[sno]; in find_TTEntry_from_hcode()
851 if ((const UChar*)hcode >= (const UChar*)sectors[sno].tc in is_in_the_main_TC()
852 && (const UChar*)hcode <= (const UChar*)sectors[sno].tc_next in is_in_the_main_TC()
885 vg_assert( (UChar*)host_code >= (UChar*)sectors[to_sNo].tc ); in VG_()
886 vg_assert( (UChar*)host_code <= (UChar*)sectors[to_sNo].tc_next in VG_()
1373 if (sectors[i].tc != NULL) in sanity_check_sector_search_order()
[all …]
/external/vboot_reference/firmware/stub/
Dvboot_api_stub_stream.c52 uint64_t sectors; in VbExStreamRead() local
63 sectors = bytes / LBA_BYTES; in VbExStreamRead()
64 if (sectors > s->sectors_left) in VbExStreamRead()
67 rv = VbExDiskRead(s->handle, s->sector, sectors, buffer); in VbExStreamRead()
71 s->sector += sectors; in VbExStreamRead()
72 s->sectors_left -= sectors; in VbExStreamRead()
/external/syslinux/com32/gpllib/disk/
Dread.c57 int dev_read(int drive, void *buf, unsigned int lba, int sectors) in dev_read() argument
62 return read_sectors(&drive_info, buf, lba, sectors); in dev_read()
76 const unsigned int lba, const int sectors) in read_sectors() argument
87 buf = lmalloc(sectors * SECTOR); in read_sectors()
99 dapa->count = sectors; in read_sectors()
141 memcpy(bufp, buf, sectors * SECTOR); in read_sectors()
142 rv = sectors; in read_sectors()
/external/syslinux/core/fs/
Dgetfssec.c89 int sectors, bool *have_more) in generic_getfssec() argument
100 if (sectors > sectors_left) in generic_getfssec()
101 sectors = sectors_left; in generic_getfssec()
103 if (!sectors) in generic_getfssec()
134 while (sectors) { in generic_getfssec()
138 while (sectors > inode->this_extent.len) { in generic_getfssec()
148 sectors = 0; /* Failed to get anything... we're dead */ in generic_getfssec()
166 chunk = min(sectors, inode->this_extent.len); in generic_getfssec()
181 sectors -= chunk; in generic_getfssec()
/external/syslinux/com32/hdt/
Dhdt-util.c36 void sectors_to_size(int sectors, char *buffer) in sectors_to_size() argument
38 int b = (sectors / 2); in sectors_to_size()
54 int *size, int sectors) in sectors_to_size_dec() argument
56 *size = sectors / 2; // Converting to bytes in sectors_to_size_dec()
81 void sectors_to_size_dec2(int sectors, char *buffer) in sectors_to_size_dec2() argument
83 int b = (sectors / 2); in sectors_to_size_dec2()
Dhdt-cli-disk.c123 if ((int)d->edd_params.sectors > 0) in main_show_disk()
124 sectors_to_size((int)d->edd_params.sectors, disk_size); in main_show_disk()
201 if ((int)d->edd_params.sectors > 0) in disks_summary()
202 sectors_to_size((int)d->edd_params.sectors, disk_size); in disks_summary()
/external/syslinux/libfat/
Dcache.c26 for (ls = fs->sectors; ls; ls = ls->next) { in libfat_get_sector()
48 ls->next = fs->sectors; in libfat_get_sector()
49 fs->sectors = ls; in libfat_get_sector()
58 lsnext = fs->sectors; in libfat_flush()
59 fs->sectors = NULL; in libfat_flush()
Dopen.c31 uint32_t sectors, fatsize, minfatsize, rootdirsize; in libfat_open() local
38 fs->sectors = NULL; in libfat_open()
58 sectors = read16(&bs->bsSectors); in libfat_open()
59 if (!sectors) in libfat_open()
60 sectors = read32(&bs->bsHugeSectors); in libfat_open()
62 fs->end = sectors; in libfat_open()
/external/blktrace/btt/
Dseek.c26 long long sectors; member
62 static void __insert(struct rb_root *root, long long sectors) in __insert() argument
71 if (sectors < sbp->sectors) in __insert()
73 else if (sectors > sbp->sectors) in __insert()
83 sbp->sectors = sectors; in __insert()
145 *rvp = sbp->sectors; in __median()
181 mp->modes[mp->nmds++] = sbp->sectors; in __mode()
/external/f2fs-tools/lib/
Dlibf2fs_zoned.c65 uint64_t sectors; in f2fs_get_zone_blocks() local
87 sectors = atol(str); in f2fs_get_zone_blocks()
88 if (!sectors) in f2fs_get_zone_blocks()
91 dev->zone_blocks = sectors >> (F2FS_BLKSIZE_BITS - 9); in f2fs_get_zone_blocks()
92 sectors = (sectors << 9) / c.sector_size; in f2fs_get_zone_blocks()
98 dev->nr_zones = dev->total_sectors / sectors; in f2fs_get_zone_blocks()
99 if (dev->total_sectors % sectors) in f2fs_get_zone_blocks()
/external/valgrind/none/tests/
Dbigcode.vgtest2 # and sanity check when recycling sectors. To ensure we recycle
3 # sectors, we put a small number of sectors.
8 vgopts: --num-transtab-sectors=2 --sanity-level=4
/external/syslinux/memdisk/
Dsetup.c241 uint32_t sectors; /* Sector count */ member
320 unsigned int sectors, xsectors, v; in get_disk_image_geometry() local
333 sectors = xsectors = (size - offset) >> hd_geometry.sector_shift; in get_disk_image_geometry()
337 hd_geometry.sectors = sectors; in get_disk_image_geometry()
382 sectors = 2400; in get_disk_image_geometry()
387 sectors = 2880; in get_disk_image_geometry()
392 sectors = 5760; in get_disk_image_geometry()
399 sectors = (size - hd_geometry.offset) >> hd_geometry.sector_shift; in get_disk_image_geometry()
405 hd_geometry.sectors = sectors; in get_disk_image_geometry()
418 sectors = (size - hd_geometry.offset) >> hd_geometry.sector_shift; in get_disk_image_geometry()
[all …]
Dpostprocess.pl32 $sectors = ($size + 511) >> 9;
33 $xsize = $sectors << 9;
46 print OUT pack("C", $sectors-1);
/external/syslinux/dos/
Dsyslinux.c181 dio.sectors = nsecs; in write_device()
214 dio.sectors = nsecs; in read_device()
251 uint16_t sectors; member
293 uint16_t sectors; member
303 .sectors = 1,
527 uint32_t sectors; /* Length in sectors */ member
621 libfat_sector_t *sectors; in main() local
641 if (opt.sectors || opt.heads || opt.reset_adv || opt.set_once in main()
701 sectors = calloc(ldlinux_sectors, sizeof *sectors); in main()
705 secp = sectors; in main()
[all …]
/external/fio/
Ddiskutil.c45 unsigned long long sectors[2]; in get_io_ticks() local
68 &sectors[0], in get_io_ticks()
72 &sectors[1], in get_io_ticks()
79 dus->s.sectors[0] = sectors[0]; in get_io_ticks()
80 dus->s.sectors[1] = sectors[1]; in get_io_ticks()
97 dus->s.sectors[0] += (__dus.s.sectors[0] - ldus->s.sectors[0]); in update_io_tick_disk()
98 dus->s.sectors[1] += (__dus.s.sectors[1] - ldus->s.sectors[1]); in update_io_tick_disk()
537 agg->sectors[0] += dus->s.sectors[0]; in aggregate_slaves_stats()
538 agg->sectors[1] += dus->s.sectors[1]; in aggregate_slaves_stats()
/external/syslinux/dosutil/
Dmdiskchk.c43 int sectors; member
86 mm.sectors = (_ecx & 0x3f); in query_memdisk()
134 m->mdi.diskbuf, m->mdi.disksize, m->cylinders, m->heads, m->sectors, in OUTPUT_FUNC_DECL()
239 m.sectors = patch_area->sectors; in MDISKCHK_FUNC_DECL()
284 m.sectors = patch_area->sectors; in MDISKCHK_FUNC_DECL()
/external/syslinux/mtools/
Dsyslinux.c198 libfat_sector_t *sectors; in main() local
215 if (opt.sectors || opt.heads || opt.reset_adv || opt.set_once in main()
321 sectors = calloc(ldlinux_sectors, sizeof *sectors); in main()
324 secp = sectors; in main()
335 i = syslinux_patch(sectors, nsectors, opt.stupid_mode, opt.raid_mode, in main()
343 opt.offset + ((off_t) sectors[i] << SECTOR_SHIFT)); in main()
/external/syslinux/com32/elflink/ldlinux/
Dloadhigh.c65 uint32_t sectors; in pm_load_high() local
84 sectors = (chunk + sector_mask) >> SECTOR_SHIFT(fs); in pm_load_high()
85 bytes_read = fs->fs_ops->getfssec(file, buf, sectors, &have_more); in pm_load_high()
/external/syslinux/win/
Dsyslinux.c307 libfat_sector_t *sectors; in main() local
327 if (opt.sectors || opt.heads || opt.reset_adv || opt.set_once in main()
441 sectors = calloc(ldlinux_sectors, sizeof *sectors); in main()
453 secp = sectors; in main()
476 secp = sectors; in main()
490 syslinux_patch(sectors, nsectors, opt.stupid_mode, opt.raid_mode, opt.directory, NULL); in main()
/external/bsdiff/
Dfile.cc102 uint64_t sectors = 0; in GetSize()
103 if (ioctl(fd_, DKIOCGETBLOCKCOUNT, &sectors) == 0) { in GetSize()
104 *size = sectors << 9; in GetSize()

12345