Lines Matching refs:clki
822 struct ufs_clk_info *clki, *clki_tmp; in ufs_mtk_init_clocks() local
829 list_for_each_entry_safe(clki, clki_tmp, head, list) { in ufs_mtk_init_clocks()
830 if (!strcmp(clki->name, "ufs_sel")) { in ufs_mtk_init_clocks()
831 host->mclk.ufs_sel_clki = clki; in ufs_mtk_init_clocks()
832 } else if (!strcmp(clki->name, "ufs_sel_max_src")) { in ufs_mtk_init_clocks()
833 host->mclk.ufs_sel_max_clki = clki; in ufs_mtk_init_clocks()
834 clk_disable_unprepare(clki->clk); in ufs_mtk_init_clocks()
835 list_del(&clki->list); in ufs_mtk_init_clocks()
836 } else if (!strcmp(clki->name, "ufs_sel_min_src")) { in ufs_mtk_init_clocks()
837 host->mclk.ufs_sel_min_clki = clki; in ufs_mtk_init_clocks()
838 clk_disable_unprepare(clki->clk); in ufs_mtk_init_clocks()
839 list_del(&clki->list); in ufs_mtk_init_clocks()
1617 struct ufs_clk_info *clki = mclk->ufs_sel_clki; in ufs_mtk_clk_scale() local
1620 ret = clk_prepare_enable(clki->clk); in ufs_mtk_clk_scale()
1628 ret = clk_set_parent(clki->clk, mclk->ufs_sel_max_clki->clk); in ufs_mtk_clk_scale()
1629 clki->curr_freq = clki->max_freq; in ufs_mtk_clk_scale()
1631 ret = clk_set_parent(clki->clk, mclk->ufs_sel_min_clki->clk); in ufs_mtk_clk_scale()
1632 clki->curr_freq = clki->min_freq; in ufs_mtk_clk_scale()
1640 clk_disable_unprepare(clki->clk); in ufs_mtk_clk_scale()
1642 trace_ufs_mtk_clk_scale(clki->name, scale_up, clk_get_rate(clki->clk)); in ufs_mtk_clk_scale()