Lines Matching refs:cylinders
50 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table
53 * @geom: output in form of [hds, cylinders, sectors]
109 /* This is for >1023 cylinders */
167 * number of heads and maximizes the number of cylinders. This
179 unsigned long heads, sectors, cylinders, temp;
181 cylinders = 1024L; /* Set number of cylinders to max */
184 temp = cylinders * sectors; /* Compute divisor for heads */
188 temp = cylinders * heads; /* Compute divisor for sectors */
193 temp = heads * sectors; /* Compute divisor for cylinders */
194 cylinders = capacity / temp; /* Compute number of cylinders */
197 if (cylinders == 0)
198 rv = (unsigned) -1; /* Give error if 0 cylinders */
200 *cyls = (unsigned int) cylinders; /* Stuff return values */
207 * scsicam_bios_param - Determine geometry of a disk in cylinders/heads/sectors.
210 * @ip: return value: ip[0]=heads, ip[1]=sectors, ip[2]=cylinders
229 * Pick some standard mapping with at most 1024 cylinders, and
238 * with more than 1024 cylinders.