Home
last modified time | relevance | path

Searched refs:secs (Results 1 – 20 of 20) sorted by relevance

/qemu/hw/block/
H A Dhd-geometry.c121 int cylinders, heads, secs, translation; in hd_geometry_guess() local
131 } else if (guess_disk_lchs(blk, &cylinders, &heads, &secs) < 0) { in hd_geometry_guess()
147 *psecs = secs; in hd_geometry_guess()
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 Dblock.c261 if (!conf->cyls && !conf->heads && !conf->secs) { in blkconf_geometry()
263 &conf->cyls, &conf->heads, &conf->secs, in blkconf_geometry()
266 *ptrans = hd_bios_chs_auto_trans(conf->cyls, conf->heads, conf->secs); in blkconf_geometry()
268 if (conf->cyls || conf->heads || conf->secs) { in blkconf_geometry()
277 if (conf->secs < 1 || conf->secs > secs_max) { in blkconf_geometry()
H A Dtrace-events62 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 Dvirtio-blk.c1171 if (length > 0 && length / conf->heads / conf->secs % blk_size) { in virtio_blk_update_config()
1172 blkcfg.geometry.sectors = conf->secs & ~s->sector_mask; in virtio_blk_update_config()
1174 blkcfg.geometry.sectors = conf->secs; in virtio_blk_update_config()
/qemu/include/hw/block/
H A Dblock.h30 uint32_t cyls, heads, secs; member
78 DEFINE_PROP_UINT32("secs", _state, _conf.secs, 0), \
108 int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs);
/qemu/chardev/
H A Dchar-mux.c59 int secs; in mux_chr_write() local
66 secs = ti / 1000; in mux_chr_write()
69 secs / 3600, in mux_chr_write()
70 (secs / 60) % 60, in mux_chr_write()
71 secs % 60, in mux_chr_write()
/qemu/hw/ide/
H A Dide-bus.c87 int16_t *cyls, int8_t *heads, int8_t *secs) in ide_get_geometry() argument
97 *secs = s->sectors; in ide_get_geometry()
H A Dcore.c2615 s->sectors = s->drive_sectors = dev->conf.secs; in ide_init_drive()
/qemu/hw/core/
H A Dloader.c1410 static GList *add_romsec_to_list(GList *secs, hwaddr base, int se) in add_romsec_to_list() argument
1415 return g_list_prepend(secs, cand); in add_romsec_to_list()
1424 GList *it, *secs = NULL; in rom_find_largest_gap_between() local
1442 secs = add_romsec_to_list(secs, rom->addr, 1); in rom_find_largest_gap_between()
1445 secs = add_romsec_to_list(secs, rom->addr + rom->romsize, -1); in rom_find_largest_gap_between()
1450 secs = add_romsec_to_list(secs, base + size, 1); in rom_find_largest_gap_between()
1452 secs = g_list_sort_with_data(secs, sort_secs, NULL); in rom_find_largest_gap_between()
1454 for (it = g_list_first(secs); it; it = g_list_next(it)) { in rom_find_largest_gap_between()
1468 g_list_free_full(secs, g_free); in rom_find_largest_gap_between()
/qemu/tests/qtest/
H A Dhd-geo-test.c28 static char *create_test_img(int secs) in create_test_img() argument
35 ret = ftruncate(fd, (off_t)secs * 512); in create_test_img()
47 int cyls, heads, secs, trans; member
122 int s = expected_chst->secs; in test_cmos_drive_cyl()
345 int secs = img_secs[backend_small]; in test_ide_drive_user() local
346 const CHST expected_chst = { secs / (4 * 32) , 4, 32, trans }; in test_ide_drive_user()
353 expected_chst.secs); in test_ide_drive_user()
H A Dtco-test.c39 #define TCO_SECS_TO_TICKS(secs) (((secs) * 10) / 6) argument
/qemu/hw/cxl/
H A Dcxl-mailbox-utils.c1744 int secs = 0; in get_sanitize_duration() local
1747 secs = 4; in get_sanitize_duration()
1749 secs = 8; in get_sanitize_duration()
1751 secs = 15; in get_sanitize_duration()
1753 secs = 30; in get_sanitize_duration()
1755 secs = 60; in get_sanitize_duration()
1757 secs = 2 * 60; in get_sanitize_duration()
1759 secs = 4 * 60; in get_sanitize_duration()
1761 secs = 8 * 60; in get_sanitize_duration()
1763 secs = 15 * 60; in get_sanitize_duration()
[all …]
/qemu/include/hw/ide/
H A Dide-bus.h39 int16_t *cyls, int8_t *heads, int8_t *secs);
/qemu/block/
H A Dvvfat.c345 static int sector2CHS(mbr_chs_t *chs, int spos, int cyls, int heads, int secs) in sector2CHS() argument
348 sector = spos % secs; spos /= secs; 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()
896 const char *dirname, int heads, int secs, in init_directories() argument
1029 bootsector->sectors_per_track = cpu_to_le16(secs); in init_directories()
1140 int cyls, heads, secs; in vvfat_open() local
1186 secs = 36; in vvfat_open()
1189 secs = s->fat_type == 12 ? 18 : 36; in vvfat_open()
[all …]
H A Dqapi.c742 int64_t secs; in bdrv_snapshot_dump() local
752 secs = sn->vm_clock_nsec / 1000000000; in bdrv_snapshot_dump()
755 (int)(secs / 3600), in bdrv_snapshot_dump()
756 (int)((secs / 60) % 60), in bdrv_snapshot_dump()
757 (int)(secs % 60), in bdrv_snapshot_dump()
/qemu/hw/virtio/
H A Dvirtio-balloon.c232 static void balloon_stats_change_timer(VirtIOBalloon *s, int64_t secs) in balloon_stats_change_timer() argument
234 timer_mod(s->stats_timer, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + secs * 1000); in balloon_stats_change_timer()
/qemu/roms/
H A Dedk2-build.py139 secs = int(time.time() - start)
/qemu/docs/about/
H A Dremoved-features.rst16 ``-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
/qemu/docs/
H A Dqdev-device-use.txt67 * cyls, head, secs and trans go into HOST-OPTS. Future work: they
/qemu/hw/scsi/
H A Dscsi-disk.c1203 p[3] = s->qdev.conf.secs & 0xff; in mode_sense_page()