Home
last modified time | relevance | path

Searched refs:sdev_state (Results 1 – 9 of 9) sorted by relevance

/linux/include/scsi/
H A Dscsi_device.h290 enum scsi_device_state sdev_state; member
597 return (sdev->sdev_state != SDEV_OFFLINE && in scsi_device_online()
598 sdev->sdev_state != SDEV_TRANSPORT_OFFLINE && in scsi_device_online()
599 sdev->sdev_state != SDEV_DEL); in scsi_device_online()
603 return sdev->sdev_state == SDEV_BLOCK || in scsi_device_blocked()
604 sdev->sdev_state == SDEV_CREATED_BLOCK; in scsi_device_blocked()
608 return sdev->sdev_state == SDEV_CREATED || in scsi_device_created()
609 sdev->sdev_state == SDEV_CREATED_BLOCK; in scsi_device_created()
/linux/drivers/scsi/
H A Dscsi_dh.c266 if (sdev->sdev_state == SDEV_CANCEL || in scsi_dh_activate()
267 sdev->sdev_state == SDEV_DEL) in scsi_dh_activate()
271 if (sdev->sdev_state == SDEV_OFFLINE) in scsi_dh_activate()
H A Dscsi.c786 if (sdev->sdev_state == SDEV_DEL || sdev->sdev_state == SDEV_CANCEL) in scsi_device_get()
916 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup_by_target()
974 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup()
H A Dscsi_lib.c1308 switch (sdev->sdev_state) { in scsi_device_state_check()
1576 if (unlikely(cmd->device->sdev_state == SDEV_DEL)) { in scsi_dispatch_cmd()
1824 if (unlikely(sdev->sdev_state != SDEV_RUNNING)) { in scsi_queue_rq()
2436 enum scsi_device_state oldstate = sdev->sdev_state; in scsi_device_set_state()
2539 sdev->sdev_state = state; in scsi_device_set_state()
2797 if (sdev->sdev_state == SDEV_QUIESCE) in scsi_device_resume()
2910 state = sdev->sdev_state; in scsi_device_block()
2955 switch (sdev->sdev_state) { in scsi_internal_device_unblock_nowait()
2958 sdev->sdev_state = new_state; in scsi_internal_device_unblock_nowait()
2963 sdev->sdev_state in scsi_internal_device_unblock_nowait()
[all...]
H A Dscsi_scan.c304 sdev->sdev_state = SDEV_CREATED; in scsi_alloc_sdev()
1040 scsi_device_state_name(sdev->sdev_state)); in scsi_add_lun()
1684 if (sdev->sdev_state != SDEV_RUNNING || in scsi_resume_device()
1718 if (sdev->sdev_state != SDEV_RUNNING || in scsi_rescan_device()
1909 if (sdev->sdev_state == SDEV_DEL) in scsi_sysfs_add_devices()
2086 if (sdev->sdev_state == SDEV_DEL) in scsi_forget_host()
H A Dscsi_transport_srp.c569 if (sdev->sdev_state == SDEV_OFFLINE) in srp_reconnect_rport()
570 sdev->sdev_state = SDEV_RUNNING; in srp_reconnect_rport()
H A Dscsi_error.c1185 while (sdev->sdev_state == SDEV_BLOCK && timeleft > 0) { in scsi_send_eh_cmnd()
1188 "%s: state %d <> %d\n", __func__, sdev->sdev_state, in scsi_send_eh_cmnd()
1195 if (sdev->sdev_state != SDEV_BLOCK) in scsi_send_eh_cmnd()
/linux/drivers/s390/scsi/
H A Dzfcp_sysfs.c278 if (sdev->sdev_state == SDEV_DEL || in zfcp_sysfs_port_in_use()
279 sdev->sdev_state == SDEV_CANCEL) in zfcp_sysfs_port_in_use()
H A Dzfcp_erp.c1438 if (sdev->sdev_state == SDEV_DEL || in zfcp_erp_try_rport_unblock()
1439 sdev->sdev_state == SDEV_CANCEL) in zfcp_erp_try_rport_unblock()