Lines Matching refs:capacity
53 * @capacity: size of the disk in sectors
61 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3])
125 geom[2] = (unsigned long)capacity /
143 * Function : static int setsize(unsigned long capacity,unsigned int *cyls,
147 * SCSI disk in terms of lost space of size capacity, storing
166 * setsize() converts a read capacity value to int 13h
176 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds,
186 heads = capacity / temp; /* Compute value for number of heads */
187 if (capacity % temp) { /* If no remainder, done! */
190 sectors = capacity / temp; /* Compute value for sectors per
192 if (capacity % temp) { /* If no remainder, done! */
195 cylinders = capacity / temp; /* Compute number of cylinders */
210 * @capacity: size of the disk in sectors
219 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip)
221 u64 capacity64 = capacity; /* Suppress gcc warning */
225 if (scsi_partsize(bdev, capacity, ip))
233 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2,
242 if ((capacity >> 11) > 65534) {
250 if (capacity > 65535*63*255)
253 ip[2] = (unsigned long)capacity / (ip[0] * ip[1]);