Lines Matching refs:disp_unit_cyl
85 static int num_parts, disp_unit_cyl, dos_flag, dev_fd = 3; variable
490 disp_unit_cyl == 0? start_sec: start_cyl, in list_partitions()
491 disp_unit_cyl == 0? end_sec: end_cyl, in list_partitions()
508 if (!disp_unit_cyl) { in print_mbr()
521 disp_unit_cyl = dos_flag = 1; in init_members()
749 if (!disp_unit_cyl) val *= g_heads * g_sectors; in ask_value()
770 unsigned long unit = (disp_unit_cyl && (g_heads * g_sectors))? g_heads * g_sectors : 1; in ask_value()
820 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1; in ask_start_sector()
823 if (disp_unit_cyl) //make the begin of every partition to cylnder boundary in ask_start_sector()
847 sprintf(mesg, "First %s (%lld - %lld, default %lld): ", disp_unit_cyl? "cylinder" : "sector", in ask_start_sector()
848 (long long int)(disp_unit_cyl? start_cyl : start), in ask_start_sector()
849 (long long int)(disp_unit_cyl? limit_cyl : limit), in ask_start_sector()
850 (long long int)(disp_unit_cyl? start_cyl : start)); in ask_start_sector()
851 temp = ask_value(mesg, disp_unit_cyl? start_cyl : start, in ask_start_sector()
852 disp_unit_cyl? limit_cyl : limit, disp_unit_cyl? start_cyl : start); in ask_start_sector()
855 if (disp_unit_cyl) { in ask_start_sector()
873 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1; in ask_end_sector()
876 if (disp_unit_cyl) //make the begin of every partition to cylnder boundary in ask_end_sector()
895 disp_unit_cyl? "cylinder" : "sector", in ask_end_sector()
896 (long long int)(disp_unit_cyl? start_cyl : start), in ask_end_sector()
897 (long long int)(disp_unit_cyl? limit_cyl : limit), in ask_end_sector()
898 (long long int)(disp_unit_cyl? limit_cyl : limit)); in ask_end_sector()
899 temp = ask_value(mesg, disp_unit_cyl? start_cyl : start, in ask_end_sector()
900 disp_unit_cyl? limit_cyl : limit, disp_unit_cyl? limit_cyl : limit); in ask_end_sector()
902 if (disp_unit_cyl) { // point to the cylinder start sector in ask_end_sector()
1472 if (FLAG(u)) disp_unit_cyl = 0; in fdisk_main()
1534 disp_unit_cyl = !disp_unit_cyl; in fdisk_main()
1535 xprintf("Changing Display/Entry units to %s\n",disp_unit_cyl?"cylinders" : "sectors"); in fdisk_main()