Lines Matching refs:ingenic_clk
28 to_clk_info(struct ingenic_clk *clk) in to_clk_info()
82 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_recalc_rate() local
83 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_recalc_rate()
84 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_recalc_rate()
181 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_round_rate() local
182 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_round_rate()
204 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_set_rate() local
205 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_set_rate()
206 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_set_rate()
249 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_enable() local
250 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_enable()
251 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_enable()
283 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_disable() local
284 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_disable()
285 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_disable()
304 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_is_enabled() local
305 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_is_enabled()
306 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_is_enabled()
334 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_get_parent() local
335 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_get_parent()
336 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_get_parent()
360 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_set_parent() local
361 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_set_parent()
362 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_set_parent()
408 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_recalc_rate() local
409 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_recalc_rate()
410 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_recalc_rate()
497 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_determine_rate() local
498 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_determine_rate()
527 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_set_rate() local
528 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_set_rate()
529 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_set_rate()
579 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_enable() local
580 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_enable()
581 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_enable()
599 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_disable() local
600 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_disable()
601 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_disable()
614 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_is_enabled() local
615 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_is_enabled()
616 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_is_enabled()
646 struct ingenic_clk *ingenic_clk = NULL; in ingenic_register_clock() local
677 ingenic_clk = kzalloc(sizeof(*ingenic_clk), GFP_KERNEL); in ingenic_register_clock()
678 if (!ingenic_clk) { in ingenic_register_clock()
683 ingenic_clk->hw.init = &clk_init; in ingenic_register_clock()
684 ingenic_clk->cgu = cgu; in ingenic_register_clock()
685 ingenic_clk->idx = idx; in ingenic_register_clock()
766 clk = clk_register(NULL, &ingenic_clk->hw); in ingenic_register_clock()
781 kfree(ingenic_clk); in ingenic_register_clock()