Lines Matching defs:disp_unit_cyl

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