Lines Matching full:lpm

1158 static int ufs_mtk_unipro_set_lpm(struct ufs_hba *hba, bool lpm)  in ufs_mtk_unipro_set_lpm()  argument
1165 lpm ? 1 : 0); in ufs_mtk_unipro_set_lpm()
1166 if (!ret || !lpm) { in ufs_mtk_unipro_set_lpm()
1168 * Forcibly set as non-LPM mode if UIC commands is failed in ufs_mtk_unipro_set_lpm()
1172 host->unipro_lpm = lpm; in ufs_mtk_unipro_set_lpm()
1343 static void ufs_mtk_vccqx_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_vccqx_set_lpm() argument
1353 lpm ? REGULATOR_MODE_IDLE : REGULATOR_MODE_NORMAL); in ufs_mtk_vccqx_set_lpm()
1356 static void ufs_mtk_vsx_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_vsx_set_lpm() argument
1360 ufs_mtk_device_pwr_ctrl(!lpm, in ufs_mtk_vsx_set_lpm()
1365 static void ufs_mtk_dev_vreg_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_dev_vreg_set_lpm() argument
1369 /* Prevent entering LPM when device is still active */ in ufs_mtk_dev_vreg_set_lpm()
1370 if (lpm && ufshcd_is_ufs_dev_active(hba)) in ufs_mtk_dev_vreg_set_lpm()
1373 /* Skip vccqx lpm control and control vsx only */ in ufs_mtk_dev_vreg_set_lpm()
1382 if (lpm && hba->vreg_info.vcc && hba->vreg_info.vcc->enabled) { in ufs_mtk_dev_vreg_set_lpm()
1383 /* Some device vccqx/vsx can enter lpm */ in ufs_mtk_dev_vreg_set_lpm()
1390 if (lpm) { in ufs_mtk_dev_vreg_set_lpm()
1392 ufs_mtk_vccqx_set_lpm(hba, lpm); in ufs_mtk_dev_vreg_set_lpm()
1393 ufs_mtk_vsx_set_lpm(hba, lpm); in ufs_mtk_dev_vreg_set_lpm()
1395 ufs_mtk_vsx_set_lpm(hba, lpm); in ufs_mtk_dev_vreg_set_lpm()
1397 ufs_mtk_vccqx_set_lpm(hba, lpm); in ufs_mtk_dev_vreg_set_lpm()