Lines Matching defs:sdev

4602  * @sdev: pointer to SCSI device
4609 static void ufshcd_set_queue_depth(struct scsi_device *sdev)
4615 hba = shost_priv(sdev->host);
4619 ufshcd_scsi_to_upiu_lun(sdev->lun),
4635 scsi_change_queue_depth(sdev, lun_qdepth);
4677 * @sdev: pointer to SCSI device
4681 struct scsi_device *sdev)
4687 if (!ufshcd_get_lu_wp(hba, ufshcd_scsi_to_upiu_lun(sdev->lun),
4696 * @sdev: pointer to SCSI device
4700 static int ufshcd_slave_alloc(struct scsi_device *sdev)
4704 hba = shost_priv(sdev->host);
4707 sdev->use_10_for_ms = 1;
4710 sdev->set_dbd_for_ms = 1;
4713 sdev->allow_restart = 1;
4716 sdev->no_report_opcodes = 1;
4719 sdev->no_write_same = 1;
4721 ufshcd_set_queue_depth(sdev);
4723 ufshcd_get_lu_power_on_wp_status(hba, sdev);
4730 * @sdev: pointer to SCSI device
4735 static int ufshcd_change_queue_depth(struct scsi_device *sdev, int depth)
4737 struct ufs_hba *hba = shost_priv(sdev->host);
4741 return scsi_change_queue_depth(sdev, depth);
4746 * @sdev: pointer to SCSI device
4748 static int ufshcd_slave_configure(struct scsi_device *sdev)
4750 struct ufs_hba *hba = shost_priv(sdev->host);
4751 struct request_queue *q = sdev->request_queue;
4758 sdev->rpm_autosuspend = 1;
4767 * @sdev: pointer to SCSI device
4769 static void ufshcd_slave_destroy(struct scsi_device *sdev)
4773 hba = shost_priv(sdev->host);
4775 if (ufshcd_scsi_to_upiu_lun(sdev->lun) == UFS_UPIU_UFS_DEVICE_WLUN) {
5687 struct scsi_device *sdev;
5703 shost_for_each_device(sdev, shost) {
5704 q = sdev->request_queue;
7047 static inline void ufshcd_blk_pm_runtime_init(struct scsi_device *sdev)
7049 scsi_autopm_get_device(sdev);
7050 blk_pm_runtime_init(sdev->request_queue, &sdev->sdev_gendev);
7051 if (sdev->rpm_autosuspend)
7052 pm_runtime_set_autosuspend_delay(&sdev->sdev_gendev,
7054 scsi_autopm_put_device(sdev);