Searched refs:sdev_state (Results 1 – 7 of 7) sorted by relevance
297 enum scsi_device_state sdev_state; member624 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()
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()
791 if (sdev->sdev_state == SDEV_DEL || sdev->sdev_state == SDEV_CANCEL) in scsi_device_get()924 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup_by_target()982 if (sdev->sdev_state == SDEV_DEL) in __scsi_device_lookup()
589 if (sdev->sdev_state == SDEV_DEL || in scsi_run_host_queues()1342 switch (sdev->sdev_state) { in scsi_device_state_check()1621 if (unlikely(cmd->device->sdev_state == SDEV_DEL)) { in scsi_dispatch_cmd()1875 if (unlikely(sdev->sdev_state != SDEV_RUNNING)) { in scsi_queue_rq()2527 enum scsi_device_state oldstate = sdev->sdev_state; in scsi_device_set_state()2630 sdev->sdev_state = state; in scsi_device_set_state()2888 if (sdev->sdev_state == SDEV_QUIESCE) in scsi_device_resume()3001 state = sdev->sdev_state; in scsi_device_block()3046 switch (sdev->sdev_state) { in scsi_internal_device_unblock_nowait()3049 sdev->sdev_state = new_state; in scsi_internal_device_unblock_nowait()[all …]
1241 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()
277 if (sdev->sdev_state == SDEV_DEL || in zfcp_sysfs_port_in_use()278 sdev->sdev_state == SDEV_CANCEL) in zfcp_sysfs_port_in_use()
833 scsidev->sdev_state = 0; in aac_probe_container()