Lines Matching refs:on
34 #define ufs_mtk_ref_clk_notify(on, res) \
35 ufs_mtk_smc(UFS_MTK_SIP_REF_CLK_NOTIFICATION, on, res)
215 static int ufs_mtk_setup_ref_clk(struct ufs_hba *hba, bool on)
222 if (host->ref_clk_enabled == on)
225 if (on) {
226 ufs_mtk_ref_clk_notify(on, res);
253 host->ref_clk_enabled = on;
254 if (!on) {
256 ufs_mtk_ref_clk_notify(on, res);
303 static void ufs_mtk_mphy_power_on(struct ufs_hba *hba, bool on)
311 if (on && !host->mphy_powered_on)
313 else if (!on && host->mphy_powered_on)
317 host->mphy_powered_on = on;
461 * @on: If true, enable clocks else disable them.
464 * Returns 0 on success, non-zero on failure.
466 static int ufs_mtk_setup_clocks(struct ufs_hba *hba, bool on,
481 if (!on && status == PRE_CHANGE) {
500 ufs_mtk_boost_crypt(hba, on);
501 ufs_mtk_setup_ref_clk(hba, on);
502 ufs_mtk_mphy_power_on(hba, on);
504 } else if (on && status == POST_CHANGE) {
505 ufs_mtk_mphy_power_on(hba, on);
506 ufs_mtk_setup_ref_clk(hba, on);
507 ufs_mtk_boost_crypt(hba, on);
521 * on phy power up failure and returns zero on success.
758 * To be on safe side, keep the reset low for at least 10us.