Lines Matching refs:sdev_state
1295 if (unlikely(sdev->sdev_state != SDEV_RUNNING)) { in scsi_prep_state_check()
1296 switch (sdev->sdev_state) { in scsi_prep_state_check()
1672 if (unlikely(cmd->device->sdev_state == SDEV_DEL)) { in scsi_dispatch_cmd()
2573 enum scsi_device_state oldstate = sdev->sdev_state; in scsi_device_set_state()
2673 sdev->sdev_state = state; in scsi_device_set_state()
2902 if (sdev->sdev_state != SDEV_QUIESCE || in scsi_device_resume()
3010 if ((sdev->sdev_state == SDEV_BLOCK) || in scsi_internal_device_unblock()
3011 (sdev->sdev_state == SDEV_TRANSPORT_OFFLINE)) in scsi_internal_device_unblock()
3012 sdev->sdev_state = new_state; in scsi_internal_device_unblock()
3013 else if (sdev->sdev_state == SDEV_CREATED_BLOCK) { in scsi_internal_device_unblock()
3016 sdev->sdev_state = new_state; in scsi_internal_device_unblock()
3018 sdev->sdev_state = SDEV_CREATED; in scsi_internal_device_unblock()
3019 } else if (sdev->sdev_state != SDEV_CANCEL && in scsi_internal_device_unblock()
3020 sdev->sdev_state != SDEV_OFFLINE) in scsi_internal_device_unblock()