Lines Matching refs:device
3 * SCSI Media Changer device driver for Linux 2.6
41 MODULE_DESCRIPTION("device driver for scsi media changer devices");
88 sdev_prefix_printk(prefix, (ch)->device, (ch)->name, fmt, ##a)
112 struct scsi_device *device;
200 result = scsi_execute_cmd(ch->device, cmd, op, buffer, buflength,
206 scsi_print_sense_hdr(ch->device, ch->name, &sshdr);
250 cmd[1] = ((ch->device->lun & 0x7) << 5) |
269 VPRINTK(KERN_INFO, "device has no volume tag support\n");
287 cmd[1] = (ch->device->lun & 0x7) << 5;
307 cmd[1] = (ch->device->lun & 0x7) << 5;
391 id = ch->device->id;
400 scsi_device_lookup(ch->device->host,
401 ch->device->channel,
405 VPRINTK(KERN_CONT, "Huh? device not found!\n");
432 cmd[1] = (ch->device->lun & 0x7) << 5;
451 cmd[1] = (ch->device->lun & 0x7) << 5;
474 cmd[1] = (ch->device->lun & 0x7) << 5;
522 cmd[1] = ((ch->device->lun & 0x7) << 5) |
573 ch->device = NULL;
583 scsi_device_put(ch->device);
603 if (scsi_device_get(ch->device)) {
635 retval = scsi_ioctl_block_when_processing_errors(ch->device, cmd,
795 ch_cmd[1] = ((ch->device->lun & 0x7) << 5) |
838 VPRINTK(KERN_INFO, "device has no volume tag support\n");
880 return scsi_ioctl(ch->device, file->f_mode & FMODE_WRITE, cmd,
888 static int ch_probe(struct device *dev)
891 struct device *class_dev;
918 sdev_printk(KERN_WARNING, sd, "ch%d: failed to get device\n",
925 ch->device = sd;
961 static int ch_remove(struct device *dev)
971 scsi_device_put(ch->device);