Lines Matching refs:clki
751 struct ufs_clk_info *clki, *clki_tmp; in ufs_mtk_init_clocks() local
758 list_for_each_entry_safe(clki, clki_tmp, head, list) { in ufs_mtk_init_clocks()
759 if (!strcmp(clki->name, "ufs_sel")) { in ufs_mtk_init_clocks()
760 host->mclk.ufs_sel_clki = clki; in ufs_mtk_init_clocks()
761 } else if (!strcmp(clki->name, "ufs_sel_max_src")) { in ufs_mtk_init_clocks()
762 host->mclk.ufs_sel_max_clki = clki; in ufs_mtk_init_clocks()
763 clk_disable_unprepare(clki->clk); in ufs_mtk_init_clocks()
764 list_del(&clki->list); in ufs_mtk_init_clocks()
765 } else if (!strcmp(clki->name, "ufs_sel_min_src")) { in ufs_mtk_init_clocks()
766 host->mclk.ufs_sel_min_clki = clki; in ufs_mtk_init_clocks()
767 clk_disable_unprepare(clki->clk); in ufs_mtk_init_clocks()
768 list_del(&clki->list); in ufs_mtk_init_clocks()
1461 struct ufs_clk_info *clki = mclk->ufs_sel_clki; in ufs_mtk_clk_scale() local
1464 ret = clk_prepare_enable(clki->clk); in ufs_mtk_clk_scale()
1472 ret = clk_set_parent(clki->clk, mclk->ufs_sel_max_clki->clk); in ufs_mtk_clk_scale()
1473 clki->curr_freq = clki->max_freq; in ufs_mtk_clk_scale()
1475 ret = clk_set_parent(clki->clk, mclk->ufs_sel_min_clki->clk); in ufs_mtk_clk_scale()
1476 clki->curr_freq = clki->min_freq; in ufs_mtk_clk_scale()
1484 clk_disable_unprepare(clki->clk); in ufs_mtk_clk_scale()
1486 trace_ufs_mtk_clk_scale(clki->name, scale_up, clk_get_rate(clki->clk)); in ufs_mtk_clk_scale()