Home
last modified time | relevance | path

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

/openbmc/qemu/block/
H A Dvpc.c790 uint32_t cyls_times_heads; in calculate_geometry() local
797 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry()
800 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry()
801 *heads = DIV_ROUND_UP(cyls_times_heads, 1024); in calculate_geometry()
807 if (cyls_times_heads >= (*heads * 1024) || *heads > 16) { in calculate_geometry()
810 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry()
813 if (cyls_times_heads >= (*heads * 1024)) { in calculate_geometry()
816 cyls_times_heads = total_sectors / *secs_per_cyl; in calculate_geometry()
820 *cyls = cyls_times_heads / *heads; in calculate_geometry()