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.h297 enum scsi_device_state sdev_state; member
624 return (sdev->sdev_state != SDEV_OFFLINE && in scsi_device_online()
625 sdev->sdev_state != SDEV_TRANSPORT_OFFLINE && in scsi_device_online()
626 sdev->sdev_state != SDEV_DEL); in scsi_device_online()
630 return sdev->sdev_state == SDEV_BLOCK || in scsi_device_blocked()
631 sdev->sdev_state == SDEV_CREATED_BLOCK; in scsi_device_blocked()
635 return sdev->sdev_state == SDEV_CREATED || in scsi_device_created()
636 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.c805 if (sdev->sdev_state == SDEV_DEL || sdev->sdev_state == SDEV_CANCEL) in scsi_device_get()
938 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup_by_target()
996 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup()
H A Dscsi_lib.c589 if (sdev->sdev_state == SDEV_DEL || in scsi_run_host_queues()
1344 switch (sdev->sdev_state) { in scsi_device_state_check()
1623 if (unlikely(cmd->device->sdev_state == SDEV_DEL)) { in scsi_dispatch_cmd()
1876 if (unlikely(sdev->sdev_state != SDEV_RUNNING)) { in scsi_queue_rq()
2528 enum scsi_device_state oldstate = sdev->sdev_state; in scsi_device_set_state()
2631 sdev->sdev_state = state; in scsi_device_set_state()
2889 if (sdev->sdev_state == SDEV_QUIESCE) in scsi_device_resume()
3002 state = sdev->sdev_state; in scsi_device_block()
3047 switch (sdev->sdev_state) { in scsi_internal_device_unblock_nowait()
3050 sdev->sdev_state = new_state; in scsi_internal_device_unblock_nowait()
[all …]
H A Dscsi_sysfs.c802 switch (sdev->sdev_state) { in store_state_field()
810 if (sdev->sdev_state == SDEV_RUNNING && state == SDEV_RUNNING) { in store_state_field()
839 const char *name = scsi_device_state_name(sdev->sdev_state); in show_state_field()
1126 if (sdev->sdev_state == SDEV_CANCEL || in sdev_store_dh_state()
1127 sdev->sdev_state == SDEV_DEL) in sdev_store_dh_state()
1470 if (sdev->sdev_state == SDEV_DEL) in __scsi_remove_device()
1562 if (sdev->sdev_state == SDEV_DEL || in __scsi_remove_target()
1563 sdev->sdev_state == SDEV_CANCEL || in __scsi_remove_target()
H A Dscsi_scan.c304 sdev->sdev_state = SDEV_CREATED; in scsi_alloc_sdev()
1051 scsi_device_state_name(sdev->sdev_state)); in scsi_add_lun()
1711 if (sdev->sdev_state != SDEV_RUNNING || in scsi_resume_device()
1745 if (sdev->sdev_state != SDEV_RUNNING || in scsi_rescan_device()
1940 if (sdev->sdev_state == SDEV_DEL) in scsi_sysfs_add_devices()
2112 sdev->sdev_state == SDEV_DEL) in scsi_forget_host()
H A Dscsi_error.c1241 while (sdev->sdev_state == SDEV_BLOCK && timeleft > 0) { in scsi_send_eh_cmnd()
1244 "%s: state %d <> %d\n", __func__, sdev->sdev_state, in scsi_send_eh_cmnd()
1251 if (sdev->sdev_state != SDEV_BLOCK) in scsi_send_eh_cmnd()
/linux/drivers/scsi/aacraid/
H A Daachba.c833 scsidev->sdev_state = 0; in aac_probe_container()
/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_scsih.c4066 if (sdev->sdev_state == SDEV_OFFLINE) { in _scsih_ublock_io_device_wait()