Searched refs:total_sectors (Results 1 - 18 of 18) sorted by relevance
/external/grub/stage2/ |
H A D | bios.c | 71 if (sector >= geometry->total_sectors) 95 geometry->total_sectors = (geometry->cylinders 162 geometry->total_sectors = MAXINT; 174 geometry->total_sectors = (geometry->cylinders 197 unsigned long total_sectors = 0; 217 unsigned long long total_sectors; 262 if (drp.total_sectors) 263 total_sectors = drp.total_sectors & ~0L; 268 total_sectors 195 unsigned long total_sectors = 0; local 215 unsigned long long total_sectors; member in struct:drive_parameters [all...] |
H A D | disk_io.c | 170 if (sector < 0 || sector >= buf_geom.total_sectors) 799 part_length = buf_geom.total_sectors;
|
H A D | builtins.c | 1408 disks[current_drive].total_sectors = num_total_sector; 1410 disks[current_drive].total_sectors 1432 geom.total_sectors, msg); 2861 if (new_start + new_len > buf_geom.total_sectors)
|
H A D | shared.h | 649 unsigned long total_sectors; member in struct:geometry
|
/external/qemu/block/ |
H A D | vpc.c | 182 bs->total_sectors = (int64_t) 342 if ((sector_num < 0) || (sector_num > bs->total_sectors)) 435 * Note that the geometry doesn't always exactly match total_sectors but 440 static int calculate_geometry(int64_t total_sectors, uint16_t* cyls, argument 445 if (total_sectors > 65535 * 16 * 255) 448 if (total_sectors > 65535 * 16 * 63) { 451 cyls_times_heads = total_sectors / *secs_per_cyl; 454 cyls_times_heads = total_sectors / *secs_per_cyl; 463 cyls_times_heads = total_sectors / *secs_per_cyl; 469 cyls_times_heads = total_sectors / *secs_per_cy 491 int64_t total_sectors = 0; local [all...] |
H A D | bochs.c | 144 bs->total_sectors = le64_to_cpu(header_v1.extra.redolog.disk) / 512; 146 bs->total_sectors = le64_to_cpu(bochs.extra.redolog.disk) / 512;
|
H A D | cow.c | 92 bs->total_sectors = size / 512; 98 s->cow_bitmap_size = ((bs->total_sectors + 7) >> 3) + sizeof(cow_header);
|
H A D | cloop.c | 99 bs->total_sectors = s->n_blocks*s->sectors_per_block;
|
H A D | parallels.c | 96 bs->total_sectors = le32_to_cpu(ph.nb_sectors);
|
H A D | vmdk.c | 393 bs->total_sectors = le32_to_cpu(header.disk_sectors); 402 bs->total_sectors = le64_to_cpu(header.capacity); 408 s->l1_size = (bs->total_sectors + s->l1_entry_sectors - 1) 653 if (sector_num > bs->total_sectors) { 656 " total_sectors=0x%" PRIx64 "\n", 657 sector_num, bs->total_sectors);
|
H A D | qcow2.c | 195 bs->total_sectors = header.size / 512; 327 if ((sector_num + nb_sectors) <= bs->total_sectors) 329 if (sector_num >= bs->total_sectors) 332 n1 = bs->total_sectors - sector_num;
|
H A D | raw-posix.c | 224 bs->total_sectors, errno, strerror(errno)); 237 bs->total_sectors, ret, errno, strerror(errno)); 253 bs->total_sectors, ret, errno, strerror(errno)); 284 bs->total_sectors, errno, strerror(errno)); 297 bs->total_sectors, ret, errno, strerror(errno));
|
H A D | qcow.c | 127 bs->total_sectors = header.size / 512;
|
H A D | vvfat.c | 219 uint32_t total_sectors; member in struct:bootsector_t 974 bootsector->total_sectors=cpu_to_le32(s->sector_count>0xffff?s->sector_count:0); 1066 bs->total_sectors=bs->cyls*bs->heads*bs->secs;
|
/external/grub/lib/ |
H A D | device.c | 167 geom->total_sectors = nr; 187 geom->total_sectors = media_size / sector_size; 195 else if (geom->total_sectors <= 63 * 1 * 1024) 197 else if (geom->total_sectors <= 63 * 16 * 1024) 202 geom->cylinders = (geom->total_sectors 220 geom->total_sectors = hdg.d_secperunit; 252 geom->total_sectors = st.st_size >> SECTOR_BITS; 254 geom->total_sectors = geom->cylinders * geom->heads * geom->sectors;
|
/external/blktrace/btt/ |
H A D | seek.c | 41 double total_sectors; member in struct:seeki 216 sip->total_sectors = 0.0; 266 sip->total_sectors += dist; 280 return sip->total_sectors / sip->tot_seeks;
|
/external/qemu/ |
H A D | block_int.h | 115 int64_t total_sectors; /* if we are reading a disk image, give its member in struct:BlockDriverState 148 /* Whether the disk can expand beyond total_sectors */
|
H A D | block.c | 432 bs->total_sectors = bdrv_getlength(bs) >> SECTOR_BITS; 518 int64_t i, total_sectors; local 533 total_sectors = bdrv_getlength(bs) >> SECTOR_BITS; 534 for (i = 0; i < total_sectors;) { 734 return bs->total_sectors * SECTOR_SIZE; 1049 if (sector_num >= bs->total_sectors) { 1053 n = bs->total_sectors - sector_num;
|
Completed in 111 milliseconds