Lines Matching refs:scsi_CDs

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()
196 sr_cmd[1] = (scsi_CDs[minor].device->scsi_level <= SCSI_2) ? in test_unit_ready()
197 ((scsi_CDs[minor].device->lun) << 5) : 0; in test_unit_ready()
207 sr_cmd[1] = (scsi_CDs[MINOR(cdi->dev)].device->scsi_level <= SCSI_2) ? in sr_tray_move()
208 ((scsi_CDs[MINOR(cdi->dev)].device->lun) << 5) : 0; in sr_tray_move()
217 return scsi_ioctl(scsi_CDs[MINOR(cdi->dev)].device, in sr_lock_door()
257 if (scsi_CDs[MINOR(cdi->dev)].xa_flag) in sr_disk_status()
266 ms_info->addr.lba = scsi_CDs[MINOR(cdi->dev)].ms_offset; in sr_get_last_session()
267 ms_info->xa_flag = scsi_CDs[MINOR(cdi->dev)].xa_flag || in sr_get_last_session()
268 (scsi_CDs[MINOR(cdi->dev)].ms_offset > 0); in sr_get_last_session()
280 sr_cmd[1] = (scsi_CDs[MINOR(cdi->dev)].device->scsi_level <= SCSI_2) ? in sr_get_mcn()
281 ((scsi_CDs[MINOR(cdi->dev)].device->lun) << 5) : 0; in sr_get_mcn()
315 sr_cmd[1] = (scsi_CDs[MINOR(cdi->dev)].device->scsi_level <= SCSI_2) ? in sr_select_speed()
316 ((scsi_CDs[MINOR(cdi->dev)].device->lun) << 5) : 0; in sr_select_speed()
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()
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()
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()
441 cmd[1] = (scsi_CDs[minor].device->scsi_level <= SCSI_2) ? in sr_read_cd()
442 (scsi_CDs[minor].device->lun << 5) : 0; in sr_read_cd()
476 if (scsi_CDs[minor].readcd_known) { in sr_read_sector()
480 scsi_CDs[minor].readcd_known = 0; in sr_read_sector()
485 if (blksize != scsi_CDs[minor].device->sector_size) { in sr_read_sector()
495 cmd[1] = (scsi_CDs[minor].device->scsi_level <= SCSI_2) ? in sr_read_sector()
496 (scsi_CDs[minor].device->lun << 5) : 0; in sr_read_sector()
523 if (0 == sr_read_sector(minor, scsi_CDs[minor].ms_offset + 16, in sr_is_xa()
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()