Lines Matching refs:g_sectors
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()
106 p->sector = (start % g_sectors) + 1; in set_hsc()
107 start /= g_sectors; 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()
115 p->end_sector = (end % g_sectors) + 1; in set_hsc()
116 end /= g_sectors; in set_hsc()
125 if (g_heads && g_sectors && g_cylinders) in chs_warn()
130 if (!g_sectors) printf(" sectors"); in chs_warn()
378 g_sectors = (FLAG(S) && TT.sectors) ? TT.sectors : s ? s : disk.sectors ? disk.sectors : 63; 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()
428 lbs = (start % g_sectors) + 1; in consistency_check()
430 lec = end/(g_sectors * g_heads); in consistency_check()
431 leh = (end/g_sectors) % g_heads; in consistency_check()
432 les = (end % g_sectors) + 1; 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()
818 if (dos_flag) offset = g_sectors; in ask_start_sector()
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()
945 if (dos_flag) pe->start_offset = start - (sector_t)g_sectors; in add_partition()
961 set_levalue(p->size4, end - start + 1 + (dos_flag? g_sectors: 1)); in add_partition()
1070 total = (real_c * g_sectors + real_s) * g_heads + h; in check()
1074 if (real_s >= g_sectors) in check()
1075 xprintf("Partition %u: sector %u greater than maximum %lu\n", n, s, g_sectors); 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()
1377 sprintf(mesg, "Number of sectors (1 - 63, default %lu): ", g_sectors); in expert_menu()
1378 value = ask_value(mesg, 1, 63, g_sectors); in expert_menu()
1379 g_sectors = TT.sectors = value; in expert_menu()