Lines Matching full:heads

40 		       uint16_t heads, uint16_t sectors)  in set_offset()  argument
45 if(! heads || !sectors) in set_offset()
51 head = offset % heads; in set_offset()
52 offset = offset / heads; in set_offset()
72 uint8_t heads, sectors; in setBeginEnd() local
76 "Too many heads for partition: %d\n", in setBeginEnd()
80 heads=(uint8_t) iheads; in setBeginEnd()
89 set_offset(&partTable->start, begin, heads, sectors); in setBeginEnd()
90 set_offset(&partTable->end, end-1, heads, sectors); in setBeginEnd()
139 } else if (end < sectors * heads * 1024u) in setBeginEnd()
181 * number of heads and maximizes the number of cylinders. This
182 * will support rather large disks before the number of heads
192 unsigned long heads, sectors, cylinders, temp; in setsize() local
197 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
198 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
200 heads++; /* Else, increment number of heads */ in setsize()
201 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize()
206 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
214 *hds = (uint16_t) heads; in setsize()
251 "[-h heads] [-T type] [-b begin] [-l length] " in usage()
416 SET_INT(used_dev.heads, argheads); in mpartition()
469 if((used_dev.sectors || used_dev.heads) && in mpartition()
470 (!used_dev.sectors || !used_dev.heads)) { in mpartition()
471 …fprintf(stderr,"You should either indicate both the number of sectors and the number of heads,\n"); in mpartition()
525 /* if number of heads and sectors not known yet, set "reasonable" in mpartition()
550 if(!used_dev.sectors && !used_dev.heads) { in mpartition()
552 setsize0((uint32_t)tot_sectors,&dummy2,&used_dev.heads, in mpartition()
555 used_dev.heads = 64; in mpartition()
561 fprintf(stderr,"sectors: %d heads: %d %u\n", in mpartition()
562 used_dev.sectors, used_dev.heads, tot_sectors); in mpartition()
564 sec_per_cyl = used_dev.sectors * used_dev.heads; in mpartition()
605 used_dev.heads, used_dev.sectors, in mpartition()
666 used_dev.tracks, used_dev.heads, used_dev.sectors, in mpartition()