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()
174 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_round_rate() local
175 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_round_rate()
194 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_set_rate() local
195 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_set_rate()
196 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_set_rate()
234 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_enable() local
235 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_enable()
236 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_enable()
265 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_disable() local
266 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_disable()
267 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_disable()
283 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_pll_is_enabled() local
284 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_pll_is_enabled()
285 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_is_enabled()
310 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_get_parent() local
311 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_get_parent()
312 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_get_parent()
336 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_set_parent() local
337 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_set_parent()
338 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_set_parent()
384 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_recalc_rate() local
385 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_recalc_rate()
386 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_recalc_rate()
474 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_round_rate() local
475 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_round_rate()
502 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_set_rate() local
503 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_set_rate()
504 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_set_rate()
554 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_enable() local
555 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_enable()
556 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_enable()
574 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_disable() local
575 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_disable()
576 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_disable()
589 struct ingenic_clk *ingenic_clk = to_ingenic_clk(hw); in ingenic_clk_is_enabled() local
590 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_clk_is_enabled()
591 struct ingenic_cgu *cgu = ingenic_clk->cgu; in ingenic_clk_is_enabled()
621 struct ingenic_clk *ingenic_clk = NULL; in ingenic_register_clock() local
652 ingenic_clk = kzalloc(sizeof(*ingenic_clk), GFP_KERNEL); in ingenic_register_clock()
653 if (!ingenic_clk) { in ingenic_register_clock()
658 ingenic_clk->hw.init = &clk_init; in ingenic_register_clock()
659 ingenic_clk->cgu = cgu; in ingenic_register_clock()
660 ingenic_clk->idx = idx; in ingenic_register_clock()
741 clk = clk_register(NULL, &ingenic_clk->hw); in ingenic_register_clock()
756 kfree(ingenic_clk); in ingenic_register_clock()