Lines Matching refs:sdev
219 struct scsi_device *sdev = to_scsi_device(dev); in sdev_runtime_suspend() local
222 err = blk_pre_runtime_suspend(sdev->request_queue); in sdev_runtime_suspend()
227 blk_post_runtime_suspend(sdev->request_queue, err); in sdev_runtime_suspend()
247 struct scsi_device *sdev = to_scsi_device(dev); in sdev_runtime_resume() local
251 blk_pre_runtime_resume(sdev->request_queue); in sdev_runtime_resume()
254 blk_post_runtime_resume(sdev->request_queue, err); in sdev_runtime_resume()
287 int scsi_autopm_get_device(struct scsi_device *sdev) in scsi_autopm_get_device() argument
291 err = pm_runtime_get_sync(&sdev->sdev_gendev); in scsi_autopm_get_device()
293 pm_runtime_put_sync(&sdev->sdev_gendev); in scsi_autopm_get_device()
300 void scsi_autopm_put_device(struct scsi_device *sdev) in scsi_autopm_put_device() argument
302 pm_runtime_put_sync(&sdev->sdev_gendev); in scsi_autopm_put_device()