Lines Matching defs:g_sectors
86 static long g_cylinders, g_heads, g_sectors, g_sect_size;
104 if (dos_flag && (start / (g_sectors * g_heads) > 1023))
105 start = g_heads * g_sectors * ONE_K - 1;
106 p->sector = (start % g_sectors) + 1;
107 start /= g_sectors;
113 if (dos_flag && (end / (g_sectors * g_heads) > 1023))
114 end = g_heads * g_sectors * ONE_K - 1;
115 p->end_sector = (end % g_sectors) + 1;
116 end /= g_sectors;
125 if (g_heads && g_sectors && g_cylinders)
130 if (!g_sectors) printf(" sectors");
378 g_sectors = (FLAG(S) && TT.sectors) ? TT.sectors : s ? s : disk.sectors ? disk.sectors : 63;
380 g_cylinders = total_number_sectors/(g_heads * g_sectors * sector_fac);
413 if (!g_heads || !g_sectors || (partition >= 4)) return;
426 lbc = start/(g_sectors * g_heads);
427 lbh = (start/g_sectors) % g_heads;
428 lbs = (start % g_sectors) + 1;
430 lec = end/(g_sectors * g_heads);
431 leh = (end/g_sectors) % g_heads;
432 les = (end % g_sectors) + 1;
446 if (physeh != (g_heads - 1) || physes != g_sectors)
477 start_cyl = start_sec/(g_heads * g_sectors) + 1;
478 end_cyl = end_sec/(g_heads * g_sectors) + 1;
507 xprintf("%ld heads, %ld sectors/track, %ld cylinders", g_heads, g_sectors, g_cylinders);
512 g_heads * g_sectors, g_sect_size, g_heads * g_sectors * g_sect_size);
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;
818 if (dos_flag) offset = g_sectors;
820 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1;
825 begin[i] = (begin[i]/(g_heads* g_sectors)) * (g_heads* g_sectors);
843 start_cyl = start/(g_sectors * g_heads) + 1;
844 limit_cyl = limit/(g_sectors * g_heads) + 1;
857 temp = (temp-1) * g_heads * g_sectors;
873 if (disp_unit_cyl) limit = (sector_t)g_sectors * g_heads * g_cylinders - 1;
878 begin[i] = (begin[i]/(g_heads* g_sectors)) * (g_heads* g_sectors);
888 start_cyl = start/(g_sectors * g_heads) + 1;
889 limit_cyl = limit/(g_sectors * g_heads) + 1;
903 temp = temp * g_heads * g_sectors - 1;
945 if (dos_flag) pe->start_offset = start - (sector_t)g_sectors;
961 set_levalue(p->size4, end - start + 1 + (dos_flag? g_sectors: 1));
1070 total = (real_c * g_sectors + real_s) * g_heads + h;
1074 if (real_s >= g_sectors)
1075 xprintf("Partition %u: sector %u greater than maximum %lu\n", n, s, g_sectors);
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);
1377 sprintf(mesg, "Number of sectors (1 - 63, default %lu): ", g_sectors);
1378 value = ask_value(mesg, 1, 63, g_sectors);
1379 g_sectors = TT.sectors = value;