Lines Matching refs:fh
31 struct mtk_fh *fh = to_mtk_fh(hw); in mtk_fhctl_set_rate() local
37 return fh->ops->hopping(fh, pcw, postdiv); in mtk_fhctl_set_rate()
107 static void pllfh_init(struct mtk_fh *fh, struct mtk_pllfh_data *pllfh_data) in pllfh_init() argument
109 struct fh_pll_regs *regs = &fh->regs; in pllfh_init()
128 fh->pllfh_data = pllfh_data; in pllfh_init()
129 fh->lock = &pllfh_lock; in pllfh_init()
131 fh->ops = fhctl_get_ops(); in pllfh_init()
144 struct mtk_fh *fh; in mtk_clk_register_pllfh() local
146 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in mtk_clk_register_pllfh()
147 if (!fh) in mtk_clk_register_pllfh()
150 pllfh_init(fh, pllfh_data); in mtk_clk_register_pllfh()
152 hw = mtk_clk_register_pll_ops(&fh->clk_pll, pll_data, base, in mtk_clk_register_pllfh()
156 kfree(fh); in mtk_clk_register_pllfh()
158 fhctl_hw_init(fh); in mtk_clk_register_pllfh()
165 struct mtk_fh *fh; in mtk_clk_unregister_pllfh() local
170 fh = to_mtk_fh(hw); in mtk_clk_unregister_pllfh()
173 kfree(fh); in mtk_clk_unregister_pllfh()