Lines Matching refs:clk_hw
63 struct clk_hw hw;
134 struct clk_hw *clk_hw; in rzg2l_cpg_div_clk_register() local
143 clk_hw = clk_hw_register_divider_table(dev, core->name, in rzg2l_cpg_div_clk_register()
152 clk_hw = clk_hw_register_divider(dev, core->name, in rzg2l_cpg_div_clk_register()
159 if (IS_ERR(clk_hw)) in rzg2l_cpg_div_clk_register()
160 return ERR_CAST(clk_hw); in rzg2l_cpg_div_clk_register()
162 return clk_hw->clk; in rzg2l_cpg_div_clk_register()
170 const struct clk_hw *clk_hw; in rzg2l_cpg_mux_clk_register() local
172 clk_hw = devm_clk_hw_register_mux(priv->dev, core->name, in rzg2l_cpg_mux_clk_register()
179 if (IS_ERR(clk_hw)) in rzg2l_cpg_mux_clk_register()
180 return ERR_CAST(clk_hw); in rzg2l_cpg_mux_clk_register()
182 return clk_hw->clk; in rzg2l_cpg_mux_clk_register()
185 static int rzg2l_cpg_sd_clk_mux_determine_rate(struct clk_hw *hw, in rzg2l_cpg_sd_clk_mux_determine_rate()
191 static int rzg2l_cpg_sd_clk_mux_set_parent(struct clk_hw *hw, u8 index) in rzg2l_cpg_sd_clk_mux_set_parent()
234 static u8 rzg2l_cpg_sd_clk_mux_get_parent(struct clk_hw *hw) in rzg2l_cpg_sd_clk_mux_get_parent()
265 struct clk_hw *clk_hw; in rzg2l_cpg_sd_mux_clk_register() local
281 clk_hw = &clk_hw_data->hw; in rzg2l_cpg_sd_mux_clk_register()
282 clk_hw->init = &init; in rzg2l_cpg_sd_mux_clk_register()
284 ret = devm_clk_hw_register(priv->dev, clk_hw); in rzg2l_cpg_sd_mux_clk_register()
288 return clk_hw->clk; in rzg2l_cpg_sd_mux_clk_register()
313 struct clk_hw hw;
321 static unsigned long rzg2l_cpg_dsi_div_recalc_rate(struct clk_hw *hw, in rzg2l_cpg_dsi_div_recalc_rate()
333 static unsigned long rzg2l_cpg_get_vclk_parent_rate(struct clk_hw *hw, in rzg2l_cpg_get_vclk_parent_rate()
349 static int rzg2l_cpg_dsi_div_determine_rate(struct clk_hw *hw, in rzg2l_cpg_dsi_div_determine_rate()
360 static int rzg2l_cpg_dsi_div_set_rate(struct clk_hw *hw, in rzg2l_cpg_dsi_div_set_rate()
402 struct clk_hw *clk_hw; in rzg2l_cpg_dsi_div_clk_register() local
422 clk_hw = &clk_hw_data->hw; in rzg2l_cpg_dsi_div_clk_register()
423 clk_hw->init = &init; in rzg2l_cpg_dsi_div_clk_register()
425 ret = devm_clk_hw_register(priv->dev, clk_hw); in rzg2l_cpg_dsi_div_clk_register()
429 return clk_hw->clk; in rzg2l_cpg_dsi_div_clk_register()
433 struct clk_hw hw;
441 static int rzg2l_cpg_pll5_4_clk_mux_determine_rate(struct clk_hw *hw, in rzg2l_cpg_pll5_4_clk_mux_determine_rate()
444 struct clk_hw *parent; in rzg2l_cpg_pll5_4_clk_mux_determine_rate()
455 static int rzg2l_cpg_pll5_4_clk_mux_set_parent(struct clk_hw *hw, u8 index) in rzg2l_cpg_pll5_4_clk_mux_set_parent()
476 static u8 rzg2l_cpg_pll5_4_clk_mux_get_parent(struct clk_hw *hw) in rzg2l_cpg_pll5_4_clk_mux_get_parent()
496 struct clk_hw *clk_hw; in rzg2l_cpg_pll5_4_mux_clk_register() local
512 clk_hw = &clk_hw_data->hw; in rzg2l_cpg_pll5_4_mux_clk_register()
513 clk_hw->init = &init; in rzg2l_cpg_pll5_4_mux_clk_register()
515 ret = devm_clk_hw_register(priv->dev, clk_hw); in rzg2l_cpg_pll5_4_mux_clk_register()
519 return clk_hw->clk; in rzg2l_cpg_pll5_4_mux_clk_register()
523 struct clk_hw hw;
531 static unsigned long rzg2l_cpg_get_vclk_rate(struct clk_hw *hw, in rzg2l_cpg_get_vclk_rate()
547 static unsigned long rzg2l_cpg_sipll5_recalc_rate(struct clk_hw *hw, in rzg2l_cpg_sipll5_recalc_rate()
559 static long rzg2l_cpg_sipll5_round_rate(struct clk_hw *hw, in rzg2l_cpg_sipll5_round_rate()
566 static int rzg2l_cpg_sipll5_set_rate(struct clk_hw *hw, in rzg2l_cpg_sipll5_set_rate()
652 struct clk_hw *clk_hw; in rzg2l_cpg_sipll5_register() local
677 clk_hw = &sipll5->hw; in rzg2l_cpg_sipll5_register()
678 clk_hw->init = &init; in rzg2l_cpg_sipll5_register()
680 ret = devm_clk_hw_register(priv->dev, clk_hw); in rzg2l_cpg_sipll5_register()
688 return clk_hw->clk; in rzg2l_cpg_sipll5_register()
692 struct clk_hw hw;
701 static unsigned long rzg2l_cpg_pll_clk_recalc_rate(struct clk_hw *hw, in rzg2l_cpg_pll_clk_recalc_rate()
891 struct clk_hw hw;
901 static int rzg2l_mod_clock_endisable(struct clk_hw *hw, bool enable) in rzg2l_mod_clock_endisable()
950 static int rzg2l_mod_clock_enable(struct clk_hw *hw) in rzg2l_mod_clock_enable()
970 static void rzg2l_mod_clock_disable(struct clk_hw *hw) in rzg2l_mod_clock_disable()
990 static int rzg2l_mod_clock_is_enabled(struct clk_hw *hw) in rzg2l_mod_clock_is_enabled()
1023 struct clk_hw *hw; in rzg2l_mod_clock_get_sibling()