Lines Matching refs:ip
220 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param() argument
226 if (scsi_partsize(bdev, capacity, ip)) in scsicam_bios_param()
234 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
235 (unsigned int *)ip + 0, (unsigned int *)ip + 1); in scsicam_bios_param()
242 if (ret || ip[0] > 255 || ip[1] > 63) { in scsicam_bios_param()
244 ip[0] = 255; in scsicam_bios_param()
245 ip[1] = 63; in scsicam_bios_param()
247 ip[0] = 64; in scsicam_bios_param()
248 ip[1] = 32; in scsicam_bios_param()
252 ip[2] = 65535; in scsicam_bios_param()
254 ip[2] = (unsigned long)capacity / (ip[0] * ip[1]); in scsicam_bios_param()