/openbmc/qemu/hw/block/ |
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() 264 if (conf->cyls < 1 || conf->cyls > cyls_max) { in blkconf_geometry()
|
H A D | hd-geometry.c | 163 int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs) in hd_bios_chs_auto_trans() argument 165 return cyls <= 1024 && heads <= 16 && secs <= 63 in hd_bios_chs_auto_trans()
|
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 %…
|
H A D | virtio-blk.c | 1148 virtio_stw_p(vdev, &blkcfg.geometry.cylinders, conf->cyls); in virtio_blk_update_config()
|
/openbmc/qemu/include/hw/block/ |
H A D | block.h | 30 uint32_t cyls, heads, secs; member 76 DEFINE_PROP_UINT32("cyls", _state, _conf.cyls, 0), \ 108 int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs);
|
/openbmc/qemu/block/ |
H A D | vpc.c | 83 uint16_t cyls; member 305 be16_to_cpu(footer->cyls) * footer->heads * footer->secs_per_cyl; in vpc_open() 787 static int calculate_geometry(int64_t total_sectors, uint16_t *cyls, in calculate_geometry() argument 820 *cyls = cyls_times_heads / *heads; in calculate_geometry() 924 uint16_t cyls = 0; in calculate_rounded_image_size() local 941 cyls = VHD_CHS_MAX_C; in calculate_rounded_image_size() 951 if ((int64_t)cyls * heads * secs_per_cyl == VHD_MAX_GEOMETRY) { in calculate_rounded_image_size() 959 total_sectors = (int64_t) cyls * heads * secs_per_cyl; in calculate_rounded_image_size() 964 *out_cyls = cyls; in calculate_rounded_image_size() 980 uint16_t cyls = 0; in vpc_co_create() local [all …]
|
H A D | vvfat.c | 350 if (spos >= cyls) { in sector2CHS() 365 static void init_mbr(BDRVVVFATState *s, int cyls, int heads, int secs) in init_mbr() argument 381 cyls, heads, secs); in init_mbr() 383 cyls, heads, secs); in init_mbr() 1141 int cyls, heads, secs; in vvfat_open() local 1193 cyls = 80; in vvfat_open() 1201 cyls = s->fat_type == 12 ? 64 : 1024; in vvfat_open() 1233 dirname, cyls, heads, secs)); in vvfat_open() 1235 s->sector_count = cyls * heads * secs - s->offset_to_bootsector; in vvfat_open() 1236 bs->total_sectors = cyls * heads * secs; in vvfat_open() [all …]
|
/openbmc/qemu/hw/ide/ |
H A D | ide-bus.c | 87 int16_t *cyls, int8_t *heads, int8_t *secs) in ide_get_geometry() argument 95 *cyls = s->cylinders; in ide_get_geometry()
|
H A D | core.c | 2614 s->cylinders = dev->conf.cyls; in ide_init_drive()
|
/openbmc/linux/drivers/scsi/ |
H A D | scsicam.c | 175 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, in setsize() argument 200 *cyls = (unsigned int) cylinders; /* Stuff return values */ in setsize()
|
/openbmc/qemu/include/hw/ide/ |
H A D | ide-bus.h | 39 int16_t *cyls, int8_t *heads, int8_t *secs);
|
/openbmc/qemu/hw/scsi/ |
H A D | scsi-disk.c | 1185 p[1] = (s->qdev.conf.cyls >> 8) & 0xff; in mode_sense_page() 1186 p[2] = s->qdev.conf.cyls & 0xff; in mode_sense_page() 1190 p[5] = (s->qdev.conf.cyls >> 8) & 0xff; in mode_sense_page() 1191 p[6] = s->qdev.conf.cyls & 0xff; in mode_sense_page() 1194 p[8] = (s->qdev.conf.cyls >> 8) & 0xff; in mode_sense_page() 1195 p[9] = s->qdev.conf.cyls & 0xff; in mode_sense_page() 1220 p[6] = (s->qdev.conf.cyls >> 8) & 0xff; in mode_sense_page() 1221 p[7] = s->qdev.conf.cyls & 0xff; in mode_sense_page() 1223 p[8] = (s->qdev.conf.cyls >> 8) & 0xff; in mode_sense_page() 1224 p[9] = s->qdev.conf.cyls & 0xff; in mode_sense_page() [all …]
|
/openbmc/u-boot/include/ |
H A D | ata.h | 141 unsigned short cyls; /* "physical" cyls */ member
|
/openbmc/qemu/tests/qtest/ |
H A D | ide-test.c | 571 uint16_t cyls; in test_specify() local 594 cyls = qpci_io_readb(dev, ide_bar, reg_lba_high) << 8; in test_specify() 595 cyls |= qpci_io_readb(dev, ide_bar, reg_lba_middle); in test_specify() 596 ++cyls; in test_specify() 597 g_assert_cmpint(cyls, ==, 130); in test_specify()
|
H A D | hd-geo-test.c | 47 int cyls, heads, secs, trans; member 86 return expected_chst && expected_chst->cyls; in is_hd() 120 int c = expected_chst->cyls; in test_cmos_drive_cyl() 352 expected_chst.cyls, expected_chst.heads, in test_ide_drive_user()
|
/openbmc/linux/include/uapi/linux/ |
H A D | hdreg.h | 401 unsigned short cyls; /* Obsolete, "physical" cyls */ member
|
/openbmc/qemu/docs/about/ |
H A D | removed-features.rst | 16 ``-device ide-hd,drive=dr,cyls=c,heads=h,secs=s,bios-chs-trans=t`` 47 ``-drive secs=s``, ``-drive heads=h`` & ``-drive cyls=c`` (removed in 3.0) 51 ``-device ...,drive=dr,cyls=c,heads=h,secs=s`` (together with
|
/openbmc/qemu/docs/ |
H A D | qdev-device-use.txt | 67 * cyls, head, secs and trans go into HOST-OPTS. Future work: they
|