/external/grub/stage2/ |
D | bios.c | 69 if (sector >= geometry->total_sectors) in biosdisk() 93 geometry->total_sectors = (geometry->cylinders in biosdisk() 160 geometry->total_sectors = MAXINT; in get_cdinfo() 172 geometry->total_sectors = (geometry->cylinders in get_cdinfo() 195 unsigned long total_sectors = 0; in get_diskinfo() local 215 unsigned long long total_sectors; in get_diskinfo() member 260 if (drp.total_sectors) in get_diskinfo() 261 total_sectors = drp.total_sectors & ~0L; in get_diskinfo() 266 total_sectors = drp.cylinders * drp.heads * drp.sectors; in get_diskinfo() 279 if (! total_sectors) in get_diskinfo() [all …]
|
D | disk_io.c | 170 if (sector < 0 || sector >= buf_geom.total_sectors) in rawread() 799 part_length = buf_geom.total_sectors; in real_open_partition()
|
D | builtins.c | 1389 disks[current_drive].total_sectors = num_total_sector; in geometry_func() 1391 disks[current_drive].total_sectors in geometry_func() 1413 geom.total_sectors, msg); in geometry_func() 2823 if (new_start + new_len > buf_geom.total_sectors) in partnew_func()
|
D | shared.h | 649 unsigned long total_sectors; member
|
/external/qemu/block/ |
D | vpc.c | 178 bs->total_sectors = (int64_t) in vpc_open() 337 if ((sector_num < 0) || (sector_num > bs->total_sectors)) in alloc_block() 453 static int calculate_geometry(int64_t total_sectors, uint16_t* cyls, in calculate_geometry() argument 458 if (total_sectors > 65535 * 16 * 255) in calculate_geometry() 461 if (total_sectors > 65535 * 16 * 63) { in calculate_geometry() 464 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry() 467 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry() 476 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry() 482 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry() 502 int64_t total_sectors = 0; in vpc_create() local [all …]
|
D | bochs.c | 133 bs->total_sectors = le64_to_cpu(header_v1.extra.redolog.disk) / 512; in bochs_open() 135 bs->total_sectors = le64_to_cpu(bochs.extra.redolog.disk) / 512; in bochs_open()
|
D | cow.c | 80 bs->total_sectors = size / 512; in cow_open() 85 bitmap_size = ((bs->total_sectors + 7) >> 3) + sizeof(cow_header); in cow_open()
|
D | vmdk.c | 380 bs->total_sectors = le32_to_cpu(header.disk_sectors); in vmdk_open() 389 bs->total_sectors = le64_to_cpu(header.capacity); in vmdk_open() 395 s->l1_size = (bs->total_sectors + s->l1_entry_sectors - 1) in vmdk_open() 630 if (sector_num > bs->total_sectors) { in vmdk_write() 634 sector_num, bs->total_sectors); in vmdk_write()
|
D | parallels.c | 86 bs->total_sectors = le32_to_cpu(ph.nb_sectors); in parallels_open()
|
D | cloop.c | 95 bs->total_sectors = s->n_blocks*s->sectors_per_block; in cloop_open()
|
D | qcow2.c | 177 bs->total_sectors = header.size / 512; in qcow_open() 318 if ((sector_num + nb_sectors) <= bs->total_sectors) in qcow2_backing_read1() 320 if (sector_num >= bs->total_sectors) in qcow2_backing_read1() 323 n1 = bs->total_sectors - sector_num; in qcow2_backing_read1() 1125 if (offset < bs->total_sectors * 512) { in qcow2_truncate()
|
D | raw-posix.c | 259 bs->total_sectors, ret, errno, strerror(errno)); in raw_pread_aligned() 273 bs->total_sectors, ret, errno, strerror(errno)); in raw_pread_aligned() 303 bs->total_sectors, ret, errno, strerror(errno)); in raw_pwrite_aligned()
|
D | vvfat.c | 219 uint32_t total_sectors; member 975 bootsector->total_sectors=cpu_to_le32(s->sector_count>0xffff?s->sector_count:0); in init_directories() 1067 bs->total_sectors=bs->cyls*bs->heads*bs->secs; in vvfat_open()
|
D | qcow.c | 124 bs->total_sectors = header.size / 512; in qcow_open()
|
/external/grub/lib/ |
D | device.c | 167 geom->total_sectors = nr; in get_drive_geometry() 187 geom->total_sectors = media_size / sector_size; in get_drive_geometry() 195 else if (geom->total_sectors <= 63 * 1 * 1024) in get_drive_geometry() 197 else if (geom->total_sectors <= 63 * 16 * 1024) in get_drive_geometry() 202 geom->cylinders = (geom->total_sectors in get_drive_geometry() 220 geom->total_sectors = hdg.d_secperunit; in get_drive_geometry() 252 geom->total_sectors = st.st_size >> SECTOR_BITS; in get_drive_geometry() 254 geom->total_sectors = geom->cylinders * geom->heads * geom->sectors; in get_drive_geometry()
|
/external/blktrace/btt/ |
D | seek.c | 41 double total_sectors; member 216 sip->total_sectors = 0.0; in seeki_alloc() 266 sip->total_sectors += dist; in seeki_add() 280 return sip->total_sectors / sip->tot_seeks; in seeki_mean()
|
/external/qemu/ |
D | block.c | 402 bs->total_sectors = hint; in refresh_total_sectors() 417 bs->total_sectors = 0; in bdrv_open_common() 471 ret = refresh_total_sectors(bs, bs->total_sectors); in bdrv_open_common() 748 int64_t sector, total_sectors; in bdrv_commit() local 793 total_sectors = bdrv_getlength(bs) >> BDRV_SECTOR_BITS; in bdrv_commit() 796 for (sector = 0; sector < total_sectors; sector += n) { in bdrv_commit() 1138 return bs->total_sectors * BDRV_SECTOR_SIZE; in bdrv_getlength() 1503 if (sector_num >= bs->total_sectors) { in bdrv_is_allocated() 1507 n = bs->total_sectors - sector_num; in bdrv_is_allocated()
|
D | block_int.h | 140 int64_t total_sectors; /* if we are reading a disk image, give its member
|
D | qemu-io.c | 1548 nb_sectors = bs->total_sectors; in map_f() 1560 } while(offset < bs->total_sectors); in map_f()
|
/external/qemu-pc-bios/bochs/bios/ |
D | rombios.c | 6309 Bit16u max_cylinder, cylinder, total_sectors;
|
/external/grub/ |
D | ChangeLog | 8549 * shared_src/shared.h (struct geometry): Declare total_sectors as 8586 total_sectors.
|