Lines Matching refs:g_heads

86 static long g_cylinders, g_heads, g_sectors, g_sect_size;  variable
104 if (dos_flag && (start / (g_sectors * g_heads) > 1023)) in set_hsc()
105 start = g_heads * g_sectors * ONE_K - 1; in set_hsc()
108 p->head = start % g_heads; in set_hsc()
109 start /= g_heads; in set_hsc()
113 if (dos_flag && (end / (g_sectors * g_heads) > 1023)) in set_hsc()
114 end = g_heads * g_sectors * ONE_K - 1; in set_hsc()
117 p->end_head = end % g_heads; in set_hsc()
118 end /= g_heads; in set_hsc()
125 if (g_heads && g_sectors && g_cylinders) in chs_warn()
129 if (!g_heads) printf(" heads"); in chs_warn()
379 g_heads = (FLAG(H) && TT.heads) ? TT.heads : h ? h : disk.heads ? disk.heads : 255; in read_mbr()
380 g_cylinders = total_number_sectors/(g_heads * g_sectors * sector_fac); in read_mbr()
413 if (!g_heads || !g_sectors || (partition >= 4)) return; in consistency_check()
426 lbc = start/(g_sectors * g_heads); in consistency_check()
427 lbh = (start/g_sectors) % g_heads; in consistency_check()
430 lec = end/(g_sectors * g_heads); in consistency_check()
431 leh = (end/g_sectors) % g_heads; in consistency_check()
446 if (physeh != (g_heads - 1) || physes != g_sectors) in consistency_check()
477 start_cyl = start_sec/(g_heads * g_sectors) + 1; in list_partitions()
478 end_cyl = end_sec/(g_heads * g_sectors) + 1; in list_partitions()
507 xprintf("%ld heads, %ld sectors/track, %ld cylinders", g_heads, g_sectors, g_cylinders); in print_mbr()
512 g_heads * g_sectors, g_sect_size, g_heads * g_sectors * g_sect_size); in print_mbr()
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()
825 begin[i] = (begin[i]/(g_heads* g_sectors)) * (g_heads* g_sectors); in ask_start_sector()
843 start_cyl = start/(g_sectors * g_heads) + 1; in ask_start_sector()
844 limit_cyl = limit/(g_sectors * g_heads) + 1; in ask_start_sector()
857 temp = (temp-1) * g_heads * g_sectors; in ask_start_sector()
873 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1; in ask_end_sector()
878 begin[i] = (begin[i]/(g_heads* g_sectors)) * (g_heads* g_sectors); in ask_end_sector()
888 start_cyl = start/(g_sectors * g_heads) + 1; in ask_end_sector()
889 limit_cyl = limit/(g_sectors * g_heads) + 1; in ask_end_sector()
903 temp = temp * g_heads * g_sectors - 1; in ask_end_sector()
1070 total = (real_c * g_sectors + real_s) * g_heads + h; in check()
1072 if (h >= g_heads) in check()
1073 xprintf("Partition %u: head %u greater than maximum %lu\n", n, h + 1, g_heads); 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 …xprintf("Disk %s: %lu heads, %lu sectors, %lu cylinders\n\n", disk_device, g_heads, g_sectors, g_c… in print_partitions_list()
1359 sprintf(mesg, "Number of heads (1 - 256, default %lu): ", g_heads); in expert_menu()
1360 value = ask_value(mesg, 1, 256, g_heads); in expert_menu()
1361 g_heads = TT.heads = value; in expert_menu()