Lines Matching refs:target

78 int sr_do_ioctl(int target, unsigned char *sr_cmd, void *buffer, unsigned buflength, int quiet, int…  in sr_do_ioctl()  argument
86 SDev = scsi_CDs[target].device; in sr_do_ioctl()
87 SRpnt = scsi_allocate_request(scsi_CDs[target].device); in sr_do_ioctl()
127 scsi_CDs[target].device->changed = 1; in sr_do_ioctl()
129 printk(KERN_INFO "sr%d: disc change detected.\n", target); in sr_do_ioctl()
139 printk(KERN_INFO "sr%d: CDROM not ready yet.\n", target); in sr_do_ioctl()
151 printk(KERN_INFO "sr%d: CDROM not ready. Make sure there is a disc in the drive.\n", target); in sr_do_ioctl()
160 "REQUEST.\n", target); in sr_do_ioctl()
172 printk(KERN_ERR "sr%d: CDROM (ioctl) error, command: ", target); in sr_do_ioctl()
334 int result, target = MINOR(cdi->dev); in sr_audio_ioctl() local
345 sr_cmd[1] = (scsi_CDs[target].device->scsi_level <= SCSI_2) ? in sr_audio_ioctl()
346 ((scsi_CDs[target].device->lun) << 5) : 0; in sr_audio_ioctl()
350 result = sr_do_ioctl(target, sr_cmd, buffer, 12, 1, SCSI_DATA_READ, NULL); in sr_audio_ioctl()
363 sr_cmd[1] = (scsi_CDs[target].device->scsi_level <= SCSI_2) ? in sr_audio_ioctl()
364 ((scsi_CDs[target].device->lun) << 5) : 0; in sr_audio_ioctl()
370 result = sr_do_ioctl(target, sr_cmd, buffer, 12, 0, SCSI_DATA_READ, NULL); in sr_audio_ioctl()
390 sr_cmd[1] = (scsi_CDs[target].device->scsi_level <= SCSI_2) ? in sr_audio_ioctl()
391 (scsi_CDs[target].device->lun << 5) : 0; in sr_audio_ioctl()
397 result = sr_do_ioctl(target, sr_cmd, NULL, 0, 0, SCSI_DATA_NONE, NULL); in sr_audio_ioctl()
540 int target; in sr_dev_ioctl() local
542 target = MINOR(cdi->dev); in sr_dev_ioctl()
546 return put_user(scsi_CDs[target].capacity, (unsigned long *) arg); in sr_dev_ioctl()
548 return put_user((u64)scsi_CDs[target].capacity << 9, (u64 *)arg); in sr_dev_ioctl()
558 return scsi_ioctl(scsi_CDs[target].device, cmd, (void *) arg); in sr_dev_ioctl()