/external/syslinux/com32/hdt/ |
H A D | hdt-util.h | 33 void sectors_to_size_dec2(int sectors, char *buffer);
|
H A D | hdt-util.c | 36 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 D | hdt-cli-disk.c | 123 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 D | cache.c | 26 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 D | open.c | 31 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 D | libfatint.h | 52 struct libfat_sector *sectors; member in struct:libfat_filesystem
|
/external/syslinux/memdisk/ |
H A D | postprocess.pl | 17 # 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 D | mstructs.h | 61 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 D | vboot_api_stub_stream.c | 14 /* 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 D | syslxcom.h | 11 int sectmap(int fd, sector_t *sectors, int nsectors);
|
H A D | syslxcom.c | 179 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 D | fs.c | 57 long long sectors, fatsectors, dsectors; local 67 sectors = get_16(§buf->bsSectors); 68 sectors = sectors ? sectors : get_32(§buf->bsHugeSectors); 70 dsectors = sectors - get_16(§buf->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 D | syslxopt.c | 33 .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 D | syslinux.h | 61 int syslinux_patch(const sector_t *sectors, int nsectors,
|
H A D | syslxopt.h | 6 unsigned int sectors; member in struct:sys_options
|
/external/syslinux/com32/gpllib/disk/ |
H A D | read.c | 34 * 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 D | getfssec.c | 89 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 D | hdio.c | 52 tprintf("{heads=%u, sectors=%u, " 55 (unsigned) geo.sectors,
|
/external/gptfdisk/ |
H A D | diskio-unix.cc | 199 // 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, §ors); 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 D | loadhigh.c | 65 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 D | libf2fs_zoned.c | 65 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 D | seek.c | 26 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 D | mdiskchk.c | 43 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 D | m_transtab.c | 56 /* 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 = §ors[sNo]; 551 Sector* s = §ors[sNo]; 765 hx->start, hx->len, (int)(sec - sectors), \ 800 return False; /* run out of sectors to search */ 802 const Sector* sec = §ors[sno]; 850 break; /* run out of sectors t [all...] |
/external/bsdiff/ |
H A D | file.cc | 102 uint64_t sectors = 0; 103 if (ioctl(fd_, DKIOCGETBLOCKCOUNT, §ors) == 0) { 104 *size = sectors << 9;
|