/qemu/hw/block/ |
H A D | hd-geometry.c | 59 int i, heads, sectors, cylinders; in guess_disk_lchs() local 79 heads = p->end_head + 1; in guess_disk_lchs() 84 cylinders = nb_sectors / (heads * sectors); in guess_disk_lchs() 88 *pheads = heads; in guess_disk_lchs() 91 trace_hd_geometry_lchs_guess(blk, cylinders, heads, sectors); in guess_disk_lchs() 121 int cylinders, heads, secs, translation; in hd_geometry_guess() local 129 *pheads = geo.heads; in hd_geometry_guess() 131 } else if (guess_disk_lchs(blk, &cylinders, &heads, &secs) < 0) { in hd_geometry_guess() 135 } else if (heads > 16) { in hd_geometry_guess() 146 *pheads = heads; in hd_geometry_guess() [all …]
|
H A D | block.c | 256 if (!conf->cyls && !conf->heads && !conf->secs) { in blkconf_geometry() 258 &conf->cyls, &conf->heads, &conf->secs, in blkconf_geometry() 261 *ptrans = hd_bios_chs_auto_trans(conf->cyls, conf->heads, conf->secs); in blkconf_geometry() 263 if (conf->cyls || conf->heads || conf->secs) { in blkconf_geometry() 268 if (conf->heads < 1 || conf->heads > heads_max) { in blkconf_geometry()
|
H A D | trace-events | 62 hd_geometry_lchs_guess(void *blk, int cyls, int heads, int secs) "blk %p LCHS %d %d %d" 63 hd_geometry_guess(void *blk, uint32_t cyls, uint32_t heads, uint32_t secs, int trans) "blk %p CHS %…
|
/qemu/block/ |
H A D | vpc.c | 84 uint8_t heads; member 796 *heads = 16; in calculate_geometry() 803 if (*heads < 4) { in calculate_geometry() 804 *heads = 4; in calculate_geometry() 807 if (cyls_times_heads >= (*heads * 1024) || *heads > 16) { in calculate_geometry() 809 *heads = 16; in calculate_geometry() 815 *heads = 16; in calculate_geometry() 925 uint8_t heads = 0; in calculate_rounded_image_size() local 965 *out_heads = heads; in calculate_rounded_image_size() 981 uint8_t heads = 0; in vpc_co_create() local [all …]
|
H A D | parallels.h | 44 uint32_t heads; member
|
H A D | vdi.c | 159 uint32_t heads; /* disk geometry, unused here */ member 202 header->heads = le32_to_cpu(header->heads); in vdi_header_to_cpu() 226 header->heads = cpu_to_le32(header->heads); in vdi_header_to_le() 253 logout("heads 0x%04x\n", header->heads); in vdi_header_print()
|
H A D | vvfat.c | 349 head = spos % heads; spos /= heads; in sector2CHS() 381 cyls, heads, secs); in init_mbr() 383 cyls, heads, secs); in init_mbr() 1031 bootsector->number_of_heads = cpu_to_le16(heads); in init_directories() 1141 int cyls, heads, secs; in vvfat_open() local 1194 heads = 2; in vvfat_open() 1202 heads = 16; in vvfat_open() 1233 dirname, cyls, heads, secs)); in vvfat_open() 1236 bs->total_sectors = cyls * heads * secs; in vvfat_open() 1257 if (init_directories(s, dirname, heads, secs, errp)) { in vvfat_open() [all …]
|
/qemu/qapi/ |
H A D | block.json | 22 # @auto: If cylinder/heads/sizes are passed, choose between none and 25 # heads, large if QEMU can guess that the disk had 131072 or fewer 26 # tracks across all heads (i.e. cylinders*heads<131072), otherwise 32 # heads (if fewer than 255 are enough to cover the whole disk with 34 # computed based on the number of sectors and heads. 37 # correspondingly scaling up the number of heads.
|
/qemu/hw/ide/ |
H A D | ide-bus.c | 87 int16_t *cyls, int8_t *heads, int8_t *secs) in ide_get_geometry() argument 96 *heads = s->heads; in ide_get_geometry()
|
H A D | core.c | 142 put_le16(p + 3, s->heads); in ide_identify() 161 put_le16(p + 55, s->heads); in ide_identify() 163 oldsize = s->cylinders * s->heads * s->sectors; in ide_identify() 331 cur_sec = s->cylinders * s->heads * s->sectors; in ide_cfata_identify() 659 cyl = sector_num / (s->heads * s->sectors); in ide_set_sector() 660 r = sector_num % (s->heads * s->sectors); in ide_set_sector() 1360 s->heads = s->drive_heads; in ide_reset() 1632 const int aheads = s->heads; in cmd_read_native_max() 1635 s->heads = s->drive_heads; in cmd_read_native_max() 1641 s->heads = aheads; in cmd_read_native_max() [all …]
|
/qemu/include/hw/block/ |
H A D | block.h | 30 uint32_t cyls, heads, secs; member 77 DEFINE_PROP_UINT32("heads", _state, _conf.heads, 0), \ 108 int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs);
|
/qemu/pc-bios/s390-ccw/ |
H A D | virtio-blkdev.c | 150 vdev->config.blk.geometry.heads = 15; in virtio_assume_eckd() 189 return vdev->config.blk.geometry.heads; in virtio_get_heads() 192 ? vdev->config.blk.geometry.heads : 255; in virtio_get_heads()
|
H A D | virtio.h | 159 uint8_t heads; member
|
H A D | bootmap.c | 94 const uint64_t heads = virtio_get_heads(); in eckd_chs_to_block() local 97 const block_number_t block = sectors * heads * cylinder in eckd_chs_to_block()
|
/qemu/include/hw/ide/ |
H A D | ide-bus.h | 39 int16_t *cyls, int8_t *heads, int8_t *secs);
|
H A D | ide-dev.h | 60 int cylinders, heads, sectors, chs_trans; member
|
/qemu/hw/i386/ |
H A D | pc.c | 380 int16_t cylinders, int8_t heads, int8_t sectors) in cmos_init_hd() argument 385 mc146818rtc_set_cmos_data(s, info_ofs + 2, heads); in cmos_init_hd() 388 mc146818rtc_set_cmos_data(s, info_ofs + 5, 0xc0 | ((heads > 8) << 3)); in cmos_init_hd() 548 int8_t heads, sectors; in pc_cmos_init_late() local 555 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late() 556 cmos_init_hd(s, 0x19, 0x1b, cylinders, heads, sectors); in pc_cmos_init_late() 561 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late() 562 cmos_init_hd(s, 0x1a, 0x24, cylinders, heads, sectors); in pc_cmos_init_late() 576 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late()
|
/qemu/include/standard-headers/linux/ |
H A D | virtio_blk.h | 68 uint8_t heads; member
|
/qemu/hw/display/ |
H A D | qxl.c | 280 qxl->guest_head0_width = cfg->heads[0].width; in qxl_spice_monitors_config_async() 281 qxl->guest_head0_height = cfg->heads[0].height; in qxl_spice_monitors_config_async() 384 rom->client_monitors_config.heads[0].left = 0; in init_qxl_rom() 385 rom->client_monitors_config.heads[0].top = 0; in init_qxl_rom() 386 rom->client_monitors_config.heads[0].right = cpu_to_le32(d->xres); in init_qxl_rom() 387 rom->client_monitors_config.heads[0].bottom = cpu_to_le32(d->yres); in init_qxl_rom() 1030 QXLURect *rect = &rom->client_monitors_config.heads[i]; in qxl_rom_monitors_config_changed() 1050 unsigned max_outputs = ARRAY_SIZE(rom->client_monitors_config.heads); in interface_client_monitors_config() 1096 QXLURect *rect = &rom->client_monitors_config.heads[i]; in interface_client_monitors_config() 1112 rom->client_monitors_config.heads); in interface_client_monitors_config()
|
/qemu/tests/qtest/ |
H A D | ide-test.c | 572 uint8_t heads, spt; in test_specify() local 590 heads = qpci_io_readb(dev, ide_bar, reg_device) & 0xf; in test_specify() 591 ++heads; in test_specify() 592 g_assert_cmpint(heads, ==, 16); in test_specify()
|
H A D | hd-geo-test.c | 47 int cyls, heads, secs, trans; member 121 int h = expected_chst->heads; in test_cmos_drive_cyl() 352 expected_chst.cyls, expected_chst.heads, in test_ide_drive_user()
|
/qemu/include/block/ |
H A D | block-common.h | 535 uint32_t heads; member
|
/qemu/docs/system/s390x/ |
H A D | vfio-ccw.rst | 75 dasd-eckd 0.0.1234: New DASD 3390/0E (CU 3990/01) with 10017 cylinders, 15 heads, 224 sectors
|
/qemu/ui/ |
H A D | spice-display.c | 803 config->heads[0].x = x; in qemu_spice_gl_monitor_config() 804 config->heads[0].y = y; in qemu_spice_gl_monitor_config() 805 config->heads[0].width = w; in qemu_spice_gl_monitor_config() 806 config->heads[0].height = h; in qemu_spice_gl_monitor_config()
|
/qemu/docs/ |
H A D | multiseat.txt | 59 in a separate tab. You can either simply switch tabs to switch heads,
|