Home
last modified time | relevance | path

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

/Linux-v5.10/include/scsi/
Dscsi_device.h238 enum scsi_device_state sdev_state; member
500 return (sdev->sdev_state != SDEV_OFFLINE && in scsi_device_online()
501 sdev->sdev_state != SDEV_TRANSPORT_OFFLINE && in scsi_device_online()
502 sdev->sdev_state != SDEV_DEL); in scsi_device_online()
506 return sdev->sdev_state == SDEV_BLOCK || in scsi_device_blocked()
507 sdev->sdev_state == SDEV_CREATED_BLOCK; in scsi_device_blocked()
511 return sdev->sdev_state == SDEV_CREATED || in scsi_device_created()
512 sdev->sdev_state == SDEV_CREATED_BLOCK; in scsi_device_created()
/Linux-v5.10/drivers/scsi/
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()
Dscsi.c523 if (sdev->sdev_state == SDEV_DEL || sdev->sdev_state == SDEV_CANCEL) in scsi_device_get()
651 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup_by_target()
709 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup()
Dscsi_lib.c1205 switch (sdev->sdev_state) { in scsi_device_state_check()
1472 if (unlikely(cmd->device->sdev_state == SDEV_DEL)) { in scsi_dispatch_cmd()
1653 if (unlikely(sdev->sdev_state != SDEV_RUNNING)) { in scsi_queue_rq()
2219 enum scsi_device_state oldstate = sdev->sdev_state; in scsi_device_set_state()
2322 sdev->sdev_state = state; in scsi_device_set_state()
2585 if (sdev->sdev_state == SDEV_QUIESCE) in scsi_device_resume()
2720 switch (sdev->sdev_state) { in scsi_internal_device_unblock_nowait()
2723 sdev->sdev_state = new_state; in scsi_internal_device_unblock_nowait()
2728 sdev->sdev_state = new_state; in scsi_internal_device_unblock_nowait()
2730 sdev->sdev_state = SDEV_CREATED; in scsi_internal_device_unblock_nowait()
Dscsi_sysfs.c824 const char *name = scsi_device_state_name(sdev->sdev_state); in show_state_field()
1091 if (sdev->sdev_state == SDEV_CANCEL || in sdev_store_dh_state()
1092 sdev->sdev_state == SDEV_DEL) in sdev_store_dh_state()
1407 if (sdev->sdev_state == SDEV_DEL) in __scsi_remove_device()
1501 if (sdev->sdev_state == SDEV_DEL || in __scsi_remove_target()
1502 sdev->sdev_state == SDEV_CANCEL || in __scsi_remove_target()
Dscsi_scan.c236 sdev->sdev_state = SDEV_CREATED; in scsi_alloc_sdev()
938 scsi_device_state_name(sdev->sdev_state)); in scsi_add_lun()
1694 if (sdev->sdev_state == SDEV_DEL) in scsi_sysfs_add_devices()
1869 if (sdev->sdev_state == SDEV_DEL) in scsi_forget_host()
Dscsi_transport_srp.c562 if (sdev->sdev_state == SDEV_OFFLINE) in srp_reconnect_rport()
563 sdev->sdev_state = SDEV_RUNNING; in srp_reconnect_rport()
Dscsi_error.c1087 while (sdev->sdev_state == SDEV_BLOCK && timeleft > 0) { in scsi_send_eh_cmnd()
1090 "%s: state %d <> %d\n", __func__, sdev->sdev_state, in scsi_send_eh_cmnd()
1097 if (sdev->sdev_state != SDEV_BLOCK) in scsi_send_eh_cmnd()
/Linux-v5.10/drivers/s390/scsi/
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()
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()
/Linux-v5.10/drivers/scsi/aacraid/
Daachba.c820 scsidev->sdev_state = 0; in aac_probe_container()