Lines Matching refs:ip
59 * @ip: return value: ip[0]=heads, ip[1]=sectors, ip[2]=cylinders
62 * SCSI-CAM system, storing the results in ip as required
68 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip)
79 ret = scsi_partsize(p, (unsigned long)capacity, (unsigned int *)ip + 2,
80 (unsigned int *)ip + 0, (unsigned int *)ip + 1);
87 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2,
88 (unsigned int *)ip + 0, (unsigned int *)ip + 1);
93 if (ret || ip[0] > 255 || ip[1] > 63) {
95 ip[0] = 255;
96 ip[1] = 63;
98 ip[0] = 64;
99 ip[1] = 32;
103 ip[2] = 65535;
105 ip[2] = (unsigned long)capacity / (ip[0] * ip[1]);