Home
last modified time | relevance | path

Searched refs:spm_lvl (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/ufs/
H A Dufshcd-pci.c171 * To support S4 (suspend-to-disk) with spm_lvl other than 5, the base in ufs_intel_resume()
260 int spm_lvl = hba->spm_lvl; in ufshcd_pci_poweroff() local
265 * Force spm_lvl to ensure that. in ufshcd_pci_poweroff()
267 hba->spm_lvl = 5; in ufshcd_pci_poweroff()
269 hba->spm_lvl = spm_lvl; in ufshcd_pci_poweroff()
H A Dufs-sysfs.c53 hba->spm_lvl = value; in ufs_sysfs_pm_lvl_store()
95 return sprintf(buf, "%d\n", hba->spm_lvl); in spm_lvl_show()
110 ufs_pm_lvl_states[hba->spm_lvl].dev_state)); in spm_target_dev_state_show()
119 ufs_pm_lvl_states[hba->spm_lvl].link_state)); in spm_target_link_state_show()
188 static DEVICE_ATTR_RW(spm_lvl);
H A Dufs-hisi.c461 hba->spm_lvl = UFS_PM_LVL_3; in ufs_hisi_set_pm_lvl()
H A Dufshcd.h706 enum ufs_pm_level spm_lvl; member
H A Dufshcd.c8507 * mode based on the "rpm_lvl" (Runtime PM level) or "spm_lvl"
8527 hba->rpm_lvl : hba->spm_lvl; in ufshcd_suspend()
8805 if ((ufs_get_pm_lvl_to_dev_pwr_mode(hba->spm_lvl) == in ufshcd_system_suspend()
8807 (ufs_get_pm_lvl_to_link_pwr_state(hba->spm_lvl) == in ufshcd_system_suspend()
9262 hba->spm_lvl = ufs_get_desired_pm_lvl_for_dev_link_state( in ufshcd_init()
/kernel/linux/linux-6.6/drivers/ufs/core/
H A Dufs-sysfs.c61 hba->spm_lvl = value; in ufs_sysfs_pm_lvl_store()
103 return sysfs_emit(buf, "%d\n", hba->spm_lvl); in spm_lvl_show()
118 ufs_pm_lvl_states[hba->spm_lvl].dev_state)); in spm_target_dev_state_show()
127 ufs_pm_lvl_states[hba->spm_lvl].link_state)); in spm_target_link_state_show()
335 static DEVICE_ATTR_RW(spm_lvl);
H A Dufshcd.c9521 hba->rpm_lvl : hba->spm_lvl; in __ufshcd_wl_suspend()
10429 hba->spm_lvl = ufs_get_desired_pm_lvl_for_dev_link_state( in ufshcd_init()
10494 dev_pwr_mode = ufs_get_pm_lvl_to_dev_pwr_mode(hba->spm_lvl); in ufshcd_rpm_ok_for_spm()
10495 link_state = ufs_get_pm_lvl_to_link_pwr_state(hba->spm_lvl); in ufshcd_rpm_ok_for_spm()
/kernel/linux/linux-6.6/drivers/ufs/host/
H A Dufshcd-pci.c412 hba->spm_lvl = UFS_PM_LVL_6; in ufs_intel_lkf_late_init()
415 hba->spm_lvl = UFS_PM_LVL_5; in ufs_intel_lkf_late_init()
H A Dufs-hisi.c462 hba->spm_lvl = UFS_PM_LVL_3; in ufs_hisi_set_pm_lvl()
/kernel/linux/linux-6.6/include/ufs/
H A Dufshcd.h812 * @spm_lvl: desired UFS power management level during system PM.
941 enum ufs_pm_level spm_lvl; member

Completed in 32 milliseconds