Lines Matching refs:device
127 struct scsi_device *sdev = cmd->device;
151 struct scsi_device *sdev = scmd->device;
230 struct scsi_device *sdev = scmd->device;
284 struct Scsi_Host *shost = scmd->device->host;
300 struct Scsi_Host *shost = scmd->device->host;
337 struct Scsi_Host *host = scmd->device->host;
342 atomic_inc(&scmd->device->iotmo_cnt);
363 atomic_inc(&scmd->device->iodone_cnt);
378 * see whether the host or the device is offline.
413 if (scmd->device == sdev) {
496 "Power-on or device reset occurred\n");
541 struct scsi_device *sdev = scmd->device;
631 if (scmd->device->expecting_cc_ua) {
633 * Because some device does not queue unit
639 scmd->device->expecting_cc_ua = 0;
648 if (scmd->device->sdev_target->expecting_lun_change &&
652 * if the device is in the process of becoming ready, we
658 * if the device is not started, we need to wake
661 if (scmd->device->allow_restart &&
695 if (scmd->device->retry_hwerror)
772 * the device when we got the queue full so we start
813 scsi_handle_queue_ramp_up(scmd->device);
836 /* it is a success, we probed the device and
842 scsi_handle_queue_full(scmd->device);
863 eh_action = scmd->device->host->eh_action;
876 struct Scsi_Host *host = scmd->device->host;
906 struct Scsi_Host *host = scmd->device->host;
948 struct Scsi_Host *host = scmd->device->host;
957 __starget_for_each_device(scsi_target(scmd->device), NULL,
978 const struct scsi_host_template *hostt = scmd->device->host->hostt;
985 __scsi_report_device_reset(scmd->device, NULL);
1003 * if the device is temporarily unavailable (eg due to a
1017 if (scsi_try_to_abort_cmd(scmd->device->host->hostt, scmd) != SUCCESS)
1041 struct scsi_device *sdev = scmd->device;
1133 * This function is used to send a scsi command down to a target device
1142 struct scsi_device *sdev = scmd->device;
1160 * change the SCSI device state after we have examined it and before
1251 return scsi_send_eh_cmnd(scmd, NULL, 0, scmd->device->eh_timeout, ~0);
1284 * scsi_eh_get_sense - Get device sense data.
1319 shost = scmd->device->host;
1377 * scsi_eh_tur - Send TUR to device.
1391 scmd->device->eh_timeout, 0);
1431 sdev = scmd->device;
1439 "%s: skip test device, past eh deadline",
1445 finish_cmds = !scsi_device_online(scmd->device) ||
1451 if (scmd->device == sdev) {
1464 * scsi_eh_try_stu - Send START_UNIT to device.
1474 if (scmd->device->allow_restart) {
1480 scmd->device->eh_timeout, 0);
1497 * try revalidating the device, which will end up sending a start unit.
1517 if (scmd->device == sdev && SCSI_SENSE_VALID(scmd) &&
1536 if (scmd->device == sdev &&
1560 * Try a bus device reset. Still, look to see whether we have multiple
1584 if (scmd->device == sdev) {
1602 if (scmd->device == sdev &&
1807 sdev_printk(KERN_INFO, scmd->device, "Device offlined - "
1809 sdev = scmd->device;
1882 * if the device is offline, then we clearly just pass the result back
1885 if (!scsi_device_online(scmd->device)) {
1887 "%s: device offline - report as SUCCESS\n", __func__));
1970 * these commands if there is no device available.
1990 scsi_handle_queue_full(scmd->device);
1993 * tagged queueing device.
1998 * device can't talk to us at the moment. Should only
2001 * device.
2006 scmd->device->sdev_target->expecting_lun_change = 0;
2007 scsi_handle_queue_ramp_up(scmd->device);
2040 sdev_printk(KERN_INFO, scmd->device,
2071 * scsi_eh_lock_door - Prevent medium removal for the specified device
2072 * @sdev: SCSI device to prevent medium removal
2113 * this device. we need to 'reverse' this process.
2122 * onto the head of the SCSI request queue for the device. There
2123 * is no point trying to lock the door of an off-line device.
2134 * will be requests for character device operations, and also for
2172 * scsi_eh_ready_devs - check device ready state and recover if not.
2200 struct scsi_device *sdev = scmd->device;
2214 * If just we got sense for the device (called
2401 * they have observed a device reset on the device being handled.
2432 * scsi_ioctl_reset: explicitly reset a host/bus/target/device