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;
198 result = scsi_execute_req(ch->device, cmd, direction, buffer,
204 scsi_print_sense_hdr(ch->device, ch->name, &sshdr);
248 cmd[1] = ((ch->device->lun & 0x7) << 5) |
267 VPRINTK(KERN_INFO, "device has no volume tag support\n");
285 cmd[1] = (ch->device->lun & 0x7) << 5;
305 cmd[1] = (ch->device->lun & 0x7) << 5;
389 id = ch->device->id;
398 scsi_device_lookup(ch->device->host,
399 ch->device->channel,
403 VPRINTK(KERN_CONT, "Huh? device not found!\n");
430 cmd[1] = (ch->device->lun & 0x7) << 5;
449 cmd[1] = (ch->device->lun & 0x7) << 5;
472 cmd[1] = (ch->device->lun & 0x7) << 5;
520 cmd[1] = ((ch->device->lun & 0x7) << 5) |
571 ch->device = NULL;
581 scsi_device_put(ch->device);
601 if (scsi_device_get(ch->device)) {
627 retval = scsi_ioctl_block_when_processing_errors(ch->device, cmd,
774 ch_cmd[1] = ((ch->device->lun & 0x7) << 5) |
818 VPRINTK(KERN_INFO, "device has no volume tag support\n");
860 return scsi_ioctl(ch->device, cmd, argp);
877 int retval = scsi_ioctl_block_when_processing_errors(ch->device, cmd,
907 return scsi_compat_ioctl(ch->device, cmd, compat_ptr(arg));
915 static int ch_probe(struct device *dev)
918 struct device *class_dev;
945 sdev_printk(KERN_WARNING, sd, "ch%d: failed to get device\n",
952 ch->device = sd;
988 static int ch_remove(struct device *dev)
998 scsi_device_put(ch->device);