Lines Matching refs:cylinders
51 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table
54 * @geom: output in form of [hds, cylinders, sectors]
110 /* This is for >1023 cylinders */
168 * number of heads and maximizes the number of cylinders. This
180 unsigned long heads, sectors, cylinders, temp;
182 cylinders = 1024L; /* Set number of cylinders to max */
185 temp = cylinders * sectors; /* Compute divisor for heads */
189 temp = cylinders * heads; /* Compute divisor for sectors */
194 temp = heads * sectors; /* Compute divisor for cylinders */
195 cylinders = capacity / temp; /* Compute number of cylinders */
198 if (cylinders == 0)
199 rv = (unsigned) -1; /* Give error if 0 cylinders */
201 *cyls = (unsigned int) cylinders; /* Stuff return values */
208 * scsicam_bios_param - Determine geometry of a disk in cylinders/heads/sectors.
211 * @ip: return value: ip[0]=heads, ip[1]=sectors, ip[2]=cylinders
230 * Pick some standard mapping with at most 1024 cylinders, and
239 * with more than 1024 cylinders.