Searched refs:sectors (Results 1 - 25 of 74) sorted by relevance

123

/external/syslinux/com32/hdt/
H A Dhdt-util.h33 void sectors_to_size_dec2(int sectors, char *buffer);
H A Dhdt-util.c36 void sectors_to_size(int sectors, char *buffer) argument
38 int b = (sectors / 2);
54 int *size, int sectors)
56 *size = sectors / 2; // Converting to bytes
81 void sectors_to_size_dec2(int sectors, char *buffer) argument
83 int b = (sectors / 2);
53 sectors_to_size_dec(char *previous_unit, int *previous_size, char *unit, int *size, int sectors) argument
H A Dhdt-cli-disk.c123 if ((int)d->edd_params.sectors > 0)
124 sectors_to_size((int)d->edd_params.sectors, disk_size);
129 " C/H/S: %d cylinders, %d heads, %d sectors/track\n"
131 " Size: %s, %d bytes/sector, %d sectors/track\n"
201 if ((int)d->edd_params.sectors > 0)
202 sectors_to_size((int)d->edd_params.sectors, disk_size);
207 more_printf(" C/H/S: %d cylinders, %d heads, %d sectors/track\n",
/external/syslinux/libfat/
H A Dcache.c26 for (ls = fs->sectors; ls; ls = ls->next) {
48 ls->next = fs->sectors;
49 fs->sectors = ls;
58 lsnext = fs->sectors;
59 fs->sectors = NULL;
H A Dopen.c31 uint32_t sectors, fatsize, minfatsize, rootdirsize; local
38 fs->sectors = NULL;
58 sectors = read16(&bs->bsSectors);
59 if (!sectors)
60 sectors = read32(&bs->bsHugeSectors);
62 fs->end = sectors;
H A Dlibfatint.h52 struct libfat_sector *sectors; member in struct:libfat_filesystem
/external/syslinux/memdisk/
H A Dpostprocess.pl17 # integral 512-byte sector length, write this number of sectors into the
32 $sectors = ($size + 511) >> 9;
33 $xsize = $sectors << 9;
45 # All sectors are setup except the first
46 print OUT pack("C", $sectors-1);
H A Dmstructs.h61 uint32_t s; /* Physical sectors/track (count!) */
62 uint64_t sectors; /* Total sectors */ member in struct:edd_dpt
126 uint8_t sectors; /* Sectors/track */ member in struct:__anon25200::fd_dpt
156 uint32_t sectors; member in struct:patch_area
/external/vboot_reference/firmware/stub/
H A Dvboot_api_stub_stream.c14 /* The stub implementation assumes 512-byte disk sectors */
25 /* Number of sectors left in partition */
52 uint64_t sectors; local
63 sectors = bytes / LBA_BYTES;
64 if (sectors > s->sectors_left)
67 rv = VbExDiskRead(s->handle, s->sector, sectors, buffer);
71 s->sector += sectors;
72 s->sectors_left -= sectors;
/external/syslinux/libinstaller/
H A Dsyslxcom.h11 int sectmap(int fd, sector_t *sectors, int nsectors);
H A Dsyslxcom.c179 static int sectmap_fie(int fd, sector_t *sectors, int nsectors) argument
208 memset(sectors, 0, nsectors * sizeof *sectors);
209 esec = sectors + nsectors;
235 secp = sectors + (fe->fe_logical >> SECTOR_SHIFT);
252 static int sectmap_fib(int fd, sector_t *sectors, int nsectors) argument
263 /* Number of sectors per block */
274 *sectors++ = sec++;
286 int sectmap(int fd, sector_t *sectors, int nsectors) argument
288 if (!sectmap_fie(fd, sectors, nsector
[all...]
H A Dfs.c57 long long sectors, fatsectors, dsectors; local
67 sectors = get_16(&sectbuf->bsSectors);
68 sectors = sectors ? sectors : get_32(&sectbuf->bsHugeSectors);
70 dsectors = sectors - get_16(&sectbuf->bsResSectors);
81 return "negative number of data sectors on an FAT volume";
90 return "zero FAT sectors";
95 return "zero FAT sectors (FAT12/16)";
164 return "unsupported sectors siz
[all...]
H A Dsyslxopt.c33 .sectors = 0,
57 {"sectors", 1, NULL, 'S'},
109 " --sectors=# -S Force the number of sectors per track\n"
148 opt.sectors = 32;
151 opt.sectors = strtoul(optarg, NULL, 0);
152 if (opt.sectors < 1 || opt.sectors > 63) {
154 "%s: invalid number of sectors: %u (must be 1-63)\n",
155 program, opt.sectors);
[all...]
H A Dsyslinux.h61 int syslinux_patch(const sector_t *sectors, int nsectors,
H A Dsyslxopt.h6 unsigned int sectors; member in struct:sys_options
/external/syslinux/com32/gpllib/disk/
H A Dread.c34 * Return the number of sectors read on success or -1 on failure.
51 * @sectors: Number of sectors to read
54 * Return the number of sectors read on success or -1 on failure.
57 int dev_read(int drive, void *buf, unsigned int lba, int sectors) argument
62 return read_sectors(&drive_info, buf, lba, sectors);
66 * read_sectors - read several sectors from disk
70 * @sectors: Number of sectors to read
72 * Return the number of sectors rea
75 read_sectors(struct driveinfo *drive_info, void *data, const unsigned int lba, const int sectors) argument
[all...]
/external/syslinux/core/fs/
H A Dgetfssec.c89 int sectors, bool *have_more)
100 if (sectors > sectors_left)
101 sectors = sectors_left;
103 if (!sectors)
134 while (sectors) {
138 while (sectors > inode->this_extent.len) {
148 sectors = 0; /* Failed to get anything... we're dead */
166 chunk = min(sectors, inode->this_extent.len);
181 sectors -= chunk;
88 generic_getfssec(struct file *file, char *buf, int sectors, bool *have_more) argument
/external/strace/
H A Dhdio.c52 tprintf("{heads=%u, sectors=%u, "
55 (unsigned) geo.sectors,
/external/gptfdisk/
H A Ddiskio-unix.cc199 // Returns the number of sectors per track, according to the kernel, or 63
212 numSecs = (uint32_t) geometry.sectors;
392 uint64_t sectors = 0; // size in sectors local
412 *err = ioctl(fd, DKIOCGETBLOCKCOUNT, &sectors);
418 sectors = minfo.dki_capacity;
424 sectors = bytes / b;
432 sectors = sz = 0;
437 sectors = sz;
439 sectors
[all...]
/external/syslinux/com32/elflink/ldlinux/
H A Dloadhigh.c65 uint32_t sectors; local
84 sectors = (chunk + sector_mask) >> SECTOR_SHIFT(fs);
85 bytes_read = fs->fs_ops->getfssec(file, buf, sectors, &have_more);
/external/f2fs-tools/lib/
H A Dlibf2fs_zoned.c65 uint64_t sectors; local
87 sectors = atol(str);
88 if (!sectors)
91 dev->zone_blocks = sectors >> (F2FS_BLKSIZE_BITS - 9);
92 sectors = (sectors << 9) / c.sector_size;
98 dev->nr_zones = dev->total_sectors / sectors;
99 if (dev->total_sectors % sectors)
162 "Zone %05u: Conventional, cond 0x%x (%s), sector %llu, %llu sectors\n",
171 "non_seq %d, sector %llu, %llu sectors, w
[all...]
/external/blktrace/btt/
H A Dseek.c26 long long sectors; member in struct:seek_bkt
62 static void __insert(struct rb_root *root, long long sectors) argument
71 if (sectors < sbp->sectors)
73 else if (sectors > sbp->sectors)
83 sbp->sectors = sectors;
145 *rvp = sbp->sectors;
181 mp->modes[mp->nmds++] = sbp->sectors;
[all...]
/external/syslinux/dosutil/
H A Dmdiskchk.c43 int sectors; member in struct:memdiskinfo
86 mm.sectors = (_ecx & 0x3f);
130 "\tAddress = 0x%08lx, len = %lu sectors, chs = %u/%u/%u,\n"
134 m->mdi.diskbuf, m->mdi.disksize, m->cylinders, m->heads, m->sectors,
239 m.sectors = patch_area->sectors;
284 m.sectors = patch_area->sectors;
/external/valgrind/coregrind/
H A Dm_transtab.c56 /* Nr of sectors provided via command line parameter. */
58 /* Nr of sectors.
433 /* The root data structure is an array of sectors. The index of the
445 static Sector sectors[MAX_N_SECTORS]; variable
539 Sector* s = &sectors[sNo];
551 Sector* s = &sectors[sNo];
765 hx->start, hx->len, (int)(sec - sectors), \
800 return False; /* run out of sectors to search */
802 const Sector* sec = &sectors[sno];
850 break; /* run out of sectors t
[all...]
/external/bsdiff/
H A Dfile.cc102 uint64_t sectors = 0;
103 if (ioctl(fd_, DKIOCGETBLOCKCOUNT, &sectors) == 0) {
104 *size = sectors << 9;

Completed in 4211 milliseconds

123