Lines Matching defs:g_cylinders

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