Lines Matching refs:g_cylinders

86 static long g_cylinders, g_heads, g_sectors, g_sect_size;  variable
125 if (g_heads && g_sectors && g_cylinders) in chs_warn()
131 if (!g_cylinders) printf(" cylinders"); in chs_warn()
380 g_cylinders = total_number_sectors/(g_heads * g_sectors * sector_fac); in read_mbr()
382 if (!g_cylinders) g_cylinders = toys.optflags & FLAG_C? TT.cylinders : 0; in read_mbr()
383 if ((g_cylinders > ONE_K) && !(toys.optflags & (FLAG_l | FLAG_S))) in read_mbr()
386 "and could in certain setups cause problems.\n", g_cylinders); in read_mbr()
435 if (g_cylinders <= ONE_K && (physbc != lbc || physbh != lbh || physbs != lbs)) { in consistency_check()
440 if (g_cylinders <= ONE_K && (physec != lec || physeh != leh || physes != les)) { in consistency_check()
507 xprintf("%ld heads, %ld sectors/track, %ld cylinders", g_heads, g_sectors, g_cylinders); in print_mbr()
820 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1; in ask_start_sector()
873 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1; in ask_end_sector()
1076 if (real_c >= g_cylinders) in check()
1077 xprintf("Partition %u: cylinder %lld greater than maximum %lu\n", n, real_c + 1, g_cylinders); in check()
1078 if (g_cylinders <= ONE_K && start != total) in check()
1135 if (total > g_heads * g_sectors * g_cylinders) in verify_table()
1137 "%lu\n", total, g_heads * g_sectors * g_cylinders); in verify_table()
1139 total = g_heads * g_sectors * g_cylinders - total; in verify_table()
1194 …Disk %s: %lu heads, %lu sectors, %lu cylinders\n\n", disk_device, g_heads, g_sectors, g_cylinders); in print_partitions_list()
1340 sprintf(mesg, "Number of cylinders (1 - 1048576, default %lu): ", g_cylinders); in expert_menu()
1341 value = ask_value(mesg, 1, 1048576, g_cylinders); in expert_menu()
1342 g_cylinders = TT.cylinders = value; in expert_menu()
1344 if(g_cylinders > ONE_K) in expert_menu()
1347 "and could in certain setups cause problems.\n", g_cylinders); in expert_menu()