Searched refs:sdev_state (Results 1 – 11 of 11) sorted by relevance
254 enum scsi_device_state sdev_state; member510 return (sdev->sdev_state != SDEV_OFFLINE && in scsi_device_online()511 sdev->sdev_state != SDEV_TRANSPORT_OFFLINE && in scsi_device_online()512 sdev->sdev_state != SDEV_DEL); in scsi_device_online()516 return sdev->sdev_state == SDEV_BLOCK || in scsi_device_blocked()517 sdev->sdev_state == SDEV_CREATED_BLOCK; in scsi_device_blocked()521 return sdev->sdev_state == SDEV_CREATED || in scsi_device_created()522 sdev->sdev_state == SDEV_CREATED_BLOCK; in scsi_device_created()
266 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()
566 if (sdev->sdev_state == SDEV_DEL || sdev->sdev_state == SDEV_CANCEL) in scsi_device_get()696 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup_by_target()754 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup()
815 switch (sdev->sdev_state) { in store_state_field()823 if (sdev->sdev_state == SDEV_RUNNING && state == SDEV_RUNNING) { in store_state_field()852 const char *name = scsi_device_state_name(sdev->sdev_state); in show_state_field()1123 if (sdev->sdev_state == SDEV_CANCEL || in sdev_store_dh_state()1124 sdev->sdev_state == SDEV_DEL) in sdev_store_dh_state()1430 if (sdev->sdev_state == SDEV_DEL) in __scsi_remove_device()1522 if (sdev->sdev_state == SDEV_DEL || in __scsi_remove_target()1523 sdev->sdev_state == SDEV_CANCEL || in __scsi_remove_target()
1199 switch (sdev->sdev_state) { in scsi_device_state_check()1467 if (unlikely(cmd->device->sdev_state == SDEV_DEL)) { in scsi_dispatch_cmd()1720 if (unlikely(sdev->sdev_state != SDEV_RUNNING)) { in scsi_queue_rq()2318 enum scsi_device_state oldstate = sdev->sdev_state; in scsi_device_set_state()2421 sdev->sdev_state = state; in scsi_device_set_state()2678 if (sdev->sdev_state == SDEV_QUIESCE) in scsi_device_resume()2835 switch (sdev->sdev_state) { in scsi_internal_device_unblock_nowait()2838 sdev->sdev_state = new_state; in scsi_internal_device_unblock_nowait()2843 sdev->sdev_state = new_state; in scsi_internal_device_unblock_nowait()2845 sdev->sdev_state = SDEV_CREATED; in scsi_internal_device_unblock_nowait()
301 sdev->sdev_state = SDEV_CREATED; in scsi_alloc_sdev()1034 scsi_device_state_name(sdev->sdev_state)); in scsi_add_lun()1803 if (sdev->sdev_state == SDEV_DEL) in scsi_sysfs_add_devices()1978 if (sdev->sdev_state == SDEV_DEL) in scsi_forget_host()
569 if (sdev->sdev_state == SDEV_OFFLINE) in srp_reconnect_rport()570 sdev->sdev_state = SDEV_RUNNING; in srp_reconnect_rport()
1129 while (sdev->sdev_state == SDEV_BLOCK && timeleft > 0) { in scsi_send_eh_cmnd()1132 "%s: state %d <> %d\n", __func__, sdev->sdev_state, in scsi_send_eh_cmnd()1139 if (sdev->sdev_state != SDEV_BLOCK) in scsi_send_eh_cmnd()
278 if (sdev->sdev_state == SDEV_DEL || in zfcp_sysfs_port_in_use()279 sdev->sdev_state == SDEV_CANCEL) in zfcp_sysfs_port_in_use()
1438 if (sdev->sdev_state == SDEV_DEL || in zfcp_erp_try_rport_unblock()1439 sdev->sdev_state == SDEV_CANCEL) in zfcp_erp_try_rport_unblock()
833 scsidev->sdev_state = 0; in aac_probe_container()
Completed in 59 milliseconds