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()
2568 enum scsi_device_state oldstate = sdev->sdev_state; in scsi_device_set_state()
2668 sdev->sdev_state = state; in scsi_device_set_state()
2893 if (sdev->sdev_state != SDEV_QUIESCE || in scsi_device_resume()
3001 if ((sdev->sdev_state == SDEV_BLOCK) || in scsi_internal_device_unblock()
3002 (sdev->sdev_state == SDEV_TRANSPORT_OFFLINE)) in scsi_internal_device_unblock()
3003 sdev->sdev_state = new_state; in scsi_internal_device_unblock()
3004 else if (sdev->sdev_state == SDEV_CREATED_BLOCK) { in scsi_internal_device_unblock()
3007 sdev->sdev_state = new_state; in scsi_internal_device_unblock()
3009 sdev->sdev_state = SDEV_CREATED; in scsi_internal_device_unblock()
3010 } else if (sdev->sdev_state != SDEV_CANCEL && in scsi_internal_device_unblock()
3011 sdev->sdev_state != SDEV_OFFLINE) in scsi_internal_device_unblock()