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()
115 static int pllfh_init(struct mtk_fh *fh, struct mtk_pllfh_data *pllfh_data) in pllfh_init() argument
117 struct fh_pll_regs *regs = &fh->regs; in pllfh_init()
138 fh->pllfh_data = pllfh_data; in pllfh_init()
139 fh->lock = &pllfh_lock; in pllfh_init()
141 fh->ops = fhctl_get_ops(); in pllfh_init()
156 struct mtk_fh *fh; in mtk_clk_register_pllfh() local
159 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in mtk_clk_register_pllfh()
160 if (!fh) in mtk_clk_register_pllfh()
163 ret = pllfh_init(fh, pllfh_data); in mtk_clk_register_pllfh()
169 hw = mtk_clk_register_pll_ops(&fh->clk_pll, pll_data, base, in mtk_clk_register_pllfh()
175 fhctl_hw_init(fh); in mtk_clk_register_pllfh()
179 kfree(fh); in mtk_clk_register_pllfh()
186 struct mtk_fh *fh; in mtk_clk_unregister_pllfh() local
191 fh = to_mtk_fh(hw); in mtk_clk_unregister_pllfh()
194 kfree(fh); in mtk_clk_unregister_pllfh()