Lines Matching defs:sdev
95 struct scsi_device *sdev = to_scsi_device(dev);
97 blk_set_runtime_active(sdev->request_queue);
230 struct scsi_device *sdev = to_scsi_device(dev);
233 err = blk_pre_runtime_suspend(sdev->request_queue);
238 blk_post_runtime_suspend(sdev->request_queue, err);
258 struct scsi_device *sdev = to_scsi_device(dev);
262 blk_pre_runtime_resume(sdev->request_queue);
265 blk_post_runtime_resume(sdev->request_queue);
298 int scsi_autopm_get_device(struct scsi_device *sdev)
302 err = pm_runtime_get_sync(&sdev->sdev_gendev);
304 pm_runtime_put_sync(&sdev->sdev_gendev);
311 void scsi_autopm_put_device(struct scsi_device *sdev)
313 pm_runtime_put_sync(&sdev->sdev_gendev);