Home
last modified time | relevance | path

Searched refs:clk_hw (Results 1 – 200 of 213) sorted by relevance

12

/linux-4.4.14/include/linux/
Dclk-provider.h36 struct clk_hw;
59 struct clk_hw *best_parent_hw;
189 int (*prepare)(struct clk_hw *hw);
190 void (*unprepare)(struct clk_hw *hw);
191 int (*is_prepared)(struct clk_hw *hw);
192 void (*unprepare_unused)(struct clk_hw *hw);
193 int (*enable)(struct clk_hw *hw);
194 void (*disable)(struct clk_hw *hw);
195 int (*is_enabled)(struct clk_hw *hw);
196 void (*disable_unused)(struct clk_hw *hw);
[all …]
Dclkdev.h25 struct clk_hw *clk_hw; member
/linux-4.4.14/drivers/clk/ti/
Dclock.h184 typedef void (*ti_of_clk_init_cb_t)(struct clk_hw *, struct device_node *);
193 struct clk_hw *ti_clk_build_component_div(struct ti_clk_divider *setup);
194 struct clk_hw *ti_clk_build_component_gate(struct ti_clk_gate *setup);
195 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup);
203 int ti_clk_retry_init(struct device_node *node, struct clk_hw *hw,
205 int ti_clk_add_component(struct device_node *node, struct clk_hw *hw, int type);
207 void omap2_init_clk_hw_omap_clocks(struct clk_hw *hw);
227 int omap2_clkops_enable_clkdm(struct clk_hw *hw);
228 void omap2_clkops_disable_clkdm(struct clk_hw *hw);
230 int omap2_dflt_clk_enable(struct clk_hw *hw);
[all …]
Dapll.c40 static int dra7_apll_enable(struct clk_hw *hw) in dra7_apll_enable()
91 static void dra7_apll_disable(struct clk_hw *hw) in dra7_apll_disable()
108 static int dra7_apll_is_enabled(struct clk_hw *hw) in dra7_apll_is_enabled()
124 static u8 dra7_init_apll_parent(struct clk_hw *hw) in dra7_init_apll_parent()
136 static void __init omap_clk_register_apll(struct clk_hw *hw, in omap_clk_register_apll()
139 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local
140 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll()
155 clk = clk_register(NULL, &clk_hw->hw); in omap_clk_register_apll()
158 kfree(clk_hw->hw.init->parent_names); in omap_clk_register_apll()
159 kfree(clk_hw->hw.init); in omap_clk_register_apll()
[all …]
Ddpll.c143 static void __init _register_dpll(struct clk_hw *hw, in _register_dpll()
146 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in _register_dpll() local
147 struct dpll_data *dd = clk_hw->dpll_data; in _register_dpll()
163 clk = clk_register(NULL, &clk_hw->hw); in _register_dpll()
166 omap2_init_clk_hw_omap_clocks(&clk_hw->hw); in _register_dpll()
168 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
169 kfree(clk_hw->hw.init); in _register_dpll()
174 kfree(clk_hw->dpll_data); in _register_dpll()
175 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
176 kfree(clk_hw->hw.init); in _register_dpll()
[all …]
Dinterface.c41 struct clk_hw_omap *clk_hw; in _register_interface() local
44 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_interface()
45 if (!clk_hw) in _register_interface()
48 clk_hw->hw.init = &init; in _register_interface()
49 clk_hw->ops = ops; in _register_interface()
50 clk_hw->flags = MEMMAP_ADDRESSING; in _register_interface()
51 clk_hw->enable_reg = reg; in _register_interface()
52 clk_hw->enable_bit = bit_idx; in _register_interface()
61 clk = clk_register(NULL, &clk_hw->hw); in _register_interface()
64 kfree(clk_hw); in _register_interface()
[all …]
Dclk-dra7-atl.c45 struct clk_hw hw;
77 static int atl_clk_enable(struct clk_hw *hw) in atl_clk_enable()
99 static void atl_clk_disable(struct clk_hw *hw) in atl_clk_disable()
113 static int atl_clk_is_enabled(struct clk_hw *hw) in atl_clk_is_enabled()
120 static unsigned long atl_clk_recalc_rate(struct clk_hw *hw, in atl_clk_recalc_rate()
128 static long atl_clk_round_rate(struct clk_hw *hw, unsigned long rate, in atl_clk_round_rate()
140 static int atl_clk_set_rate(struct clk_hw *hw, unsigned long rate, in atl_clk_set_rate()
170 struct dra7_atl_desc *clk_hw = NULL; in of_dra7_atl_clock_setup() local
175 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_atl_clock_setup()
176 if (!clk_hw) { in of_dra7_atl_clock_setup()
[all …]
Dclockdomain.c42 int omap2_clkops_enable_clkdm(struct clk_hw *hw) in omap2_clkops_enable_clkdm()
81 void omap2_clkops_disable_clkdm(struct clk_hw *hw) in omap2_clkops_disable_clkdm()
109 struct clk_hw *clk_hw; in of_ti_clockdomain_setup() local
123 clk_hw = __clk_get_hw(clk); in of_ti_clockdomain_setup()
124 if (clk_hw_get_flags(clk_hw) & CLK_IS_BASIC) { in of_ti_clockdomain_setup()
129 to_clk_hw_omap(clk_hw)->clkdm_name = clkdm_name; in of_ti_clockdomain_setup()
130 omap2_init_clk_clkdm(clk_hw); in of_ti_clockdomain_setup()
Dgate.c32 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *clk);
65 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *hw) in omap36xx_gate_clk_enable_with_hsdiv_restore()
68 struct clk_hw *parent_hw; in omap36xx_gate_clk_enable_with_hsdiv_restore()
102 struct clk_hw_omap *clk_hw; in _register_gate() local
105 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_gate()
106 if (!clk_hw) in _register_gate()
109 clk_hw->hw.init = &init; in _register_gate()
114 clk_hw->enable_reg = reg; in _register_gate()
115 clk_hw->enable_bit = bit_idx; in _register_gate()
116 clk_hw->ops = hw_ops; in _register_gate()
[all …]
Dcomposite.c33 static unsigned long ti_composite_recalc_rate(struct clk_hw *hw, in ti_composite_recalc_rate()
39 static long ti_composite_round_rate(struct clk_hw *hw, unsigned long rate, in ti_composite_round_rate()
45 static int ti_composite_set_rate(struct clk_hw *hw, unsigned long rate, in ti_composite_set_rate()
68 struct clk_hw *hw;
103 struct clk_hw hw;
108 static inline struct clk_hw *_get_hw(struct clk_hw_omap_comp *clk, int idx) in _get_hw()
125 struct clk_hw *gate; in ti_clk_register_composite()
126 struct clk_hw *mux; in ti_clk_register_composite()
127 struct clk_hw *div; in ti_clk_register_composite()
159 static void __init _register_composite(struct clk_hw *hw, in _register_composite()
[all …]
Dfapll.c66 struct clk_hw hw;
76 struct clk_hw hw;
137 static int ti_fapll_enable(struct clk_hw *hw) in ti_fapll_enable()
149 static void ti_fapll_disable(struct clk_hw *hw) in ti_fapll_disable()
158 static int ti_fapll_is_enabled(struct clk_hw *hw) in ti_fapll_is_enabled()
166 static unsigned long ti_fapll_recalc_rate(struct clk_hw *hw, in ti_fapll_recalc_rate()
190 static u8 ti_fapll_get_parent(struct clk_hw *hw) in ti_fapll_get_parent()
223 static long ti_fapll_round_rate(struct clk_hw *hw, unsigned long rate, in ti_fapll_round_rate()
243 static int ti_fapll_set_rate(struct clk_hw *hw, unsigned long rate, in ti_fapll_set_rate()
281 static int ti_fapll_synth_enable(struct clk_hw *hw) in ti_fapll_synth_enable()
[all …]
Ddpll3xxx.c393 unsigned long omap3_dpll_recalc(struct clk_hw *hw, unsigned long parent_rate) in omap3_dpll_recalc()
416 int omap3_noncore_dpll_enable(struct clk_hw *hw) in omap3_noncore_dpll_enable()
421 struct clk_hw *parent; in omap3_noncore_dpll_enable()
458 void omap3_noncore_dpll_disable(struct clk_hw *hw) in omap3_noncore_dpll_disable()
479 int omap3_noncore_dpll_determine_rate(struct clk_hw *hw, in omap3_noncore_dpll_determine_rate()
514 int omap3_noncore_dpll_set_parent(struct clk_hw *hw, u8 index) in omap3_noncore_dpll_set_parent()
541 int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate, in omap3_noncore_dpll_set_rate()
589 int omap3_noncore_dpll_set_rate_and_parent(struct clk_hw *hw, in omap3_noncore_dpll_set_rate_and_parent()
703 static struct clk_hw_omap *omap3_find_clkoutx2_dpll(struct clk_hw *hw) in omap3_find_clkoutx2_dpll()
733 unsigned long omap3_clkoutx2_recalc(struct clk_hw *hw, in omap3_clkoutx2_recalc()
[all …]
Dclk.c126 struct clk_hw *hw;
142 int __init ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, in ti_clk_retry_init()
299 struct clk_hw *clk_hw; in ti_clk_register_clk() local
342 clk_hw = __clk_get_hw(clk); in ti_clk_register_clk()
343 if (clk_hw_get_flags(clk_hw) & CLK_IS_BASIC) { in ti_clk_register_clk()
347 to_clk_hw_omap(clk_hw)->clkdm_name = in ti_clk_register_clk()
349 omap2_init_clk_clkdm(clk_hw); in ti_clk_register_clk()
Ddpll44xx.c115 unsigned long omap4_dpll_regm4xen_recalc(struct clk_hw *hw, in omap4_dpll_regm4xen_recalc()
150 long omap4_dpll_regm4xen_round_rate(struct clk_hw *hw, in omap4_dpll_regm4xen_round_rate()
202 int omap4_dpll_regm4xen_determine_rate(struct clk_hw *hw, in omap4_dpll_regm4xen_determine_rate()
Dclkt_dflt.c200 int omap2_dflt_clk_enable(struct clk_hw *hw) in omap2_dflt_clk_enable()
261 void omap2_dflt_clk_disable(struct clk_hw *hw) in omap2_dflt_clk_disable()
298 int omap2_dflt_clk_is_enabled(struct clk_hw *hw) in omap2_dflt_clk_is_enabled()
Dmux.c31 static u8 ti_clk_mux_get_parent(struct clk_hw *hw) in ti_clk_mux_get_parent()
68 static int ti_clk_mux_set_parent(struct clk_hw *hw, u8 index) in ti_clk_mux_set_parent()
232 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup) in ti_clk_build_component_mux()
Ddivider.c99 static unsigned long ti_clk_divider_recalc_rate(struct clk_hw *hw, in ti_clk_divider_recalc_rate()
145 static int ti_clk_divider_bestdiv(struct clk_hw *hw, unsigned long rate, in ti_clk_divider_bestdiv()
203 static long ti_clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, in ti_clk_divider_round_rate()
212 static int ti_clk_divider_set_rate(struct clk_hw *hw, unsigned long rate, in ti_clk_divider_set_rate()
353 struct clk_hw *ti_clk_build_component_div(struct ti_clk_divider *setup) in ti_clk_build_component_div()
Dclkt_dpll.c206 u8 omap2_init_dpll_parent(struct clk_hw *hw) in omap2_init_dpll_parent()
285 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate, in omap2_dpll_round_rate()
/linux-4.4.14/drivers/clk/
Dclk-composite.c24 static u8 clk_composite_get_parent(struct clk_hw *hw) in clk_composite_get_parent()
28 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_get_parent()
35 static int clk_composite_set_parent(struct clk_hw *hw, u8 index) in clk_composite_set_parent()
39 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_set_parent()
46 static unsigned long clk_composite_recalc_rate(struct clk_hw *hw, in clk_composite_recalc_rate()
51 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_recalc_rate()
58 static int clk_composite_determine_rate(struct clk_hw *hw, in clk_composite_determine_rate()
64 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_determine_rate()
65 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_determine_rate()
66 struct clk_hw *parent; in clk_composite_determine_rate()
[all …]
Dclk-wm831x.c24 struct clk_hw xtal_hw;
25 struct clk_hw fll_hw;
26 struct clk_hw clkout_hw;
33 static int wm831x_xtal_is_prepared(struct clk_hw *hw) in wm831x_xtal_is_prepared()
41 static unsigned long wm831x_xtal_recalc_rate(struct clk_hw *hw, in wm831x_xtal_recalc_rate()
75 static int wm831x_fll_is_prepared(struct clk_hw *hw) in wm831x_fll_is_prepared()
92 static int wm831x_fll_prepare(struct clk_hw *hw) in wm831x_fll_prepare()
109 static void wm831x_fll_unprepare(struct clk_hw *hw) in wm831x_fll_unprepare()
121 static unsigned long wm831x_fll_recalc_rate(struct clk_hw *hw, in wm831x_fll_recalc_rate()
144 static long wm831x_fll_round_rate(struct clk_hw *hw, unsigned long rate, in wm831x_fll_round_rate()
[all …]
Dclk-axi-clkgen.c67 struct clk_hw clk_hw; member
352 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument
354 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen()
357 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument
360 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate()
407 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate()
420 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument
423 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate()
447 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument
449 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_enable()
[all …]
Dclk.h12 struct clk_hw;
20 struct clk *__clk_create_clk(struct clk_hw *hw, const char *dev_id,
26 __clk_create_clk(struct clk_hw *hw, const char *dev_id, const char *con_id) in __clk_create_clk()
31 static struct clk_hw *__clk_get_hw(struct clk *clk) in __clk_get_hw()
33 return (struct clk_hw *)clk; in __clk_get_hw()
Dclk-highbank.c50 struct clk_hw hw;
56 static int clk_pll_prepare(struct clk_hw *hwclk) in clk_pll_prepare()
73 static void clk_pll_unprepare(struct clk_hw *hwclk) in clk_pll_unprepare()
83 static int clk_pll_enable(struct clk_hw *hwclk) in clk_pll_enable()
95 static void clk_pll_disable(struct clk_hw *hwclk) in clk_pll_disable()
105 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate()
146 static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_round_rate()
157 static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_set_rate()
205 static unsigned long clk_cpu_periphclk_recalc_rate(struct clk_hw *hwclk, in clk_cpu_periphclk_recalc_rate()
217 static unsigned long clk_cpu_a9bclk_recalc_rate(struct clk_hw *hwclk, in clk_cpu_a9bclk_recalc_rate()
[all …]
Dclk-mb86s7x.c48 struct clk_hw hw;
52 static int crg_gate_control(struct clk_hw *hw, int en) in crg_gate_control()
92 static int crg_port_prepare(struct clk_hw *hw) in crg_port_prepare()
97 static void crg_port_unprepare(struct clk_hw *hw) in crg_port_unprepare()
103 crg_rate_control(struct clk_hw *hw, int set, unsigned long *rate) in crg_rate_control()
147 crg_port_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in crg_port_recalc_rate()
157 crg_port_round_rate(struct clk_hw *hw, in crg_port_round_rate()
164 crg_port_set_rate(struct clk_hw *hw, in crg_port_set_rate()
251 struct clk_hw hw;
263 static void mhu_cluster_rate(struct clk_hw *hw, unsigned long *rate, int get) in mhu_cluster_rate()
[all …]
Dclk-rk808.c30 struct clk_hw clkout1_hw;
31 struct clk_hw clkout2_hw;
34 static unsigned long rk808_clkout_recalc_rate(struct clk_hw *hw, in rk808_clkout_recalc_rate()
40 static int rk808_clkout2_enable(struct clk_hw *hw, bool enable) in rk808_clkout2_enable()
51 static int rk808_clkout2_prepare(struct clk_hw *hw) in rk808_clkout2_prepare()
56 static void rk808_clkout2_unprepare(struct clk_hw *hw) in rk808_clkout2_unprepare()
61 static int rk808_clkout2_is_prepared(struct clk_hw *hw) in rk808_clkout2_is_prepared()
Dclk-max-gen.c40 struct clk_hw hw;
43 static struct max_gen_clk *to_max_gen_clk(struct clk_hw *hw) in to_max_gen_clk()
48 static int max_gen_clk_prepare(struct clk_hw *hw) in max_gen_clk_prepare()
56 static void max_gen_clk_unprepare(struct clk_hw *hw) in max_gen_clk_unprepare()
64 static int max_gen_clk_is_prepared(struct clk_hw *hw) in max_gen_clk_is_prepared()
78 static unsigned long max_gen_recalc_rate(struct clk_hw *hw, in max_gen_recalc_rate()
96 struct clk_hw *hw = &max_gen->hw; in max_gen_clk_register()
Dclk-cdce706.c75 struct clk_hw hw;
148 static int cdce706_clkin_set_parent(struct clk_hw *hw, u8 index) in cdce706_clkin_set_parent()
156 static u8 cdce706_clkin_get_parent(struct clk_hw *hw) in cdce706_clkin_get_parent()
168 static unsigned long cdce706_pll_recalc_rate(struct clk_hw *hw, in cdce706_pll_recalc_rate()
191 static long cdce706_pll_round_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_round_rate()
217 static int cdce706_pll_set_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_set_rate()
263 static int cdce706_divider_set_parent(struct clk_hw *hw, u8 index) in cdce706_divider_set_parent()
276 static u8 cdce706_divider_get_parent(struct clk_hw *hw) in cdce706_divider_get_parent()
283 static unsigned long cdce706_divider_recalc_rate(struct clk_hw *hw, in cdce706_divider_recalc_rate()
296 static long cdce706_divider_round_rate(struct clk_hw *hw, unsigned long rate, in cdce706_divider_round_rate()
[all …]
Dclk-pwm.c18 struct clk_hw hw;
23 static inline struct clk_pwm *to_clk_pwm(struct clk_hw *hw) in to_clk_pwm()
28 static int clk_pwm_prepare(struct clk_hw *hw) in clk_pwm_prepare()
35 static void clk_pwm_unprepare(struct clk_hw *hw) in clk_pwm_unprepare()
42 static unsigned long clk_pwm_recalc_rate(struct clk_hw *hw, in clk_pwm_recalc_rate()
Dclk-ls1x.c23 static int ls1x_pll_clk_enable(struct clk_hw *hw) in ls1x_pll_clk_enable()
28 static void ls1x_pll_clk_disable(struct clk_hw *hw) in ls1x_pll_clk_disable()
32 static unsigned long ls1x_pll_recalc_rate(struct clk_hw *hw, in ls1x_pll_recalc_rate()
56 struct clk_hw *hw; in clk_register_pll()
61 hw = kzalloc(sizeof(struct clk_hw), GFP_KERNEL); in clk_register_pll()
Dclk-twl6040.c32 struct clk_hw mcpdm_fclk;
37 static int twl6040_bitclk_is_enabled(struct clk_hw *hw) in twl6040_bitclk_is_enabled()
44 static int twl6040_bitclk_prepare(struct clk_hw *hw) in twl6040_bitclk_prepare()
57 static void twl6040_bitclk_unprepare(struct clk_hw *hw) in twl6040_bitclk_unprepare()
Dclk-gate.c44 static void clk_gate_endisable(struct clk_hw *hw, int enable) in clk_gate_endisable()
79 static int clk_gate_enable(struct clk_hw *hw) in clk_gate_enable()
86 static void clk_gate_disable(struct clk_hw *hw) in clk_gate_disable()
91 static int clk_gate_is_enabled(struct clk_hw *hw) in clk_gate_is_enabled()
171 struct clk_hw *hw; in clk_unregister_gate()
Dclk-cdce925.c43 struct clk_hw hw;
52 struct clk_hw hw;
79 static unsigned long cdce925_pll_recalc_rate(struct clk_hw *hw, in cdce925_pll_recalc_rate()
125 static long cdce925_pll_round_rate(struct clk_hw *hw, unsigned long rate, in cdce925_pll_round_rate()
134 static int cdce925_pll_set_rate(struct clk_hw *hw, unsigned long rate, in cdce925_pll_set_rate()
179 static u8 cdce925_pll_calc_range_bits(struct clk_hw *hw, u16 n, u16 m) in cdce925_pll_calc_range_bits()
196 static int cdce925_pll_prepare(struct clk_hw *hw) in cdce925_pll_prepare()
250 static void cdce925_pll_unprepare(struct clk_hw *hw) in cdce925_pll_unprepare()
310 static int cdce925_clk_prepare(struct clk_hw *hw) in cdce925_clk_prepare()
319 static void cdce925_clk_unprepare(struct clk_hw *hw) in cdce925_clk_unprepare()
[all …]
Dclk-si5351.c47 struct clk_hw hw;
61 struct clk_hw xtal;
64 struct clk_hw clkin;
222 static int si5351_xtal_prepare(struct clk_hw *hw) in si5351_xtal_prepare()
231 static void si5351_xtal_unprepare(struct clk_hw *hw) in si5351_xtal_unprepare()
247 static int si5351_clkin_prepare(struct clk_hw *hw) in si5351_clkin_prepare()
256 static void si5351_clkin_unprepare(struct clk_hw *hw) in si5351_clkin_unprepare()
269 static unsigned long si5351_clkin_recalc_rate(struct clk_hw *hw, in si5351_clkin_recalc_rate()
310 static int si5351_vxco_prepare(struct clk_hw *hw) in si5351_vxco_prepare()
320 static void si5351_vxco_unprepare(struct clk_hw *hw) in si5351_vxco_unprepare()
[all …]
Dclkdev.c180 clk = __clk_create_clk(cl->clk_hw, dev_id, con_id); in clk_get_sys()
227 if (!cl->clk_hw) in clkdev_add()
228 cl->clk_hw = __clk_get_hw(cl->clk); in clkdev_add()
237 cl->clk_hw = __clk_get_hw(cl->clk); in clkdev_add_table()
254 vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, in vclkdev_alloc()
263 cla->cl.clk_hw = hw; in vclkdev_alloc()
278 vclkdev_create(struct clk_hw *hw, const char *con_id, const char *dev_fmt, in vclkdev_create()
406 cl->clk_hw = __clk_get_hw(clk); in clk_register_clkdevs()
Dclk-u300.c435 struct clk_hw hw;
487 static int syscon_clk_prepare(struct clk_hw *hw) in syscon_clk_prepare()
497 static void syscon_clk_unprepare(struct clk_hw *hw) in syscon_clk_unprepare()
509 static int syscon_clk_enable(struct clk_hw *hw) in syscon_clk_enable()
524 static void syscon_clk_disable(struct clk_hw *hw) in syscon_clk_disable()
540 static int syscon_clk_is_enabled(struct clk_hw *hw) in syscon_clk_is_enabled()
565 syscon_clk_recalc_rate(struct clk_hw *hw, in syscon_clk_recalc_rate()
633 syscon_clk_round_rate(struct clk_hw *hw, unsigned long rate, in syscon_clk_round_rate()
650 static int syscon_clk_set_rate(struct clk_hw *hw, unsigned long rate, in syscon_clk_set_rate()
945 struct clk_hw hw;
[all …]
Dclk-nomadik.c143 struct clk_hw hw;
155 struct clk_hw hw;
164 static int pll_clk_enable(struct clk_hw *hw) in pll_clk_enable()
184 static void pll_clk_disable(struct clk_hw *hw) in pll_clk_disable()
203 static int pll_clk_is_enabled(struct clk_hw *hw) in pll_clk_is_enabled()
218 static unsigned long pll_clk_recalc_rate(struct clk_hw *hw, in pll_clk_recalc_rate()
300 static int src_clk_enable(struct clk_hw *hw) in src_clk_enable()
313 static void src_clk_disable(struct clk_hw *hw) in src_clk_disable()
325 static int src_clk_is_enabled(struct clk_hw *hw) in src_clk_is_enabled()
335 src_clk_recalc_rate(struct clk_hw *hw, in src_clk_recalc_rate()
Dclk-multiplier.c29 static unsigned long clk_multiplier_recalc_rate(struct clk_hw *hw, in clk_multiplier_recalc_rate()
53 static unsigned long __bestmult(struct clk_hw *hw, unsigned long rate, in __bestmult()
89 static long clk_multiplier_round_rate(struct clk_hw *hw, unsigned long rate, in clk_multiplier_round_rate()
99 static int clk_multiplier_set_rate(struct clk_hw *hw, unsigned long rate, in clk_multiplier_set_rate()
Dclk-scpi.c30 struct clk_hw hw;
39 static unsigned long scpi_clk_recalc_rate(struct clk_hw *hw, in scpi_clk_recalc_rate()
47 static long scpi_clk_round_rate(struct clk_hw *hw, unsigned long rate, in scpi_clk_round_rate()
59 static int scpi_clk_set_rate(struct clk_hw *hw, unsigned long rate, in scpi_clk_set_rate()
93 static unsigned long scpi_dvfs_recalc_rate(struct clk_hw *hw, in scpi_dvfs_recalc_rate()
107 static long scpi_dvfs_round_rate(struct clk_hw *hw, unsigned long rate, in scpi_dvfs_round_rate()
126 static int scpi_dvfs_set_rate(struct clk_hw *hw, unsigned long rate, in scpi_dvfs_set_rate()
Dclk-s2mps11.c46 struct clk_hw hw;
53 static struct s2mps11_clk *to_s2mps11_clk(struct clk_hw *hw) in to_s2mps11_clk()
58 static int s2mps11_clk_prepare(struct clk_hw *hw) in s2mps11_clk_prepare()
67 static void s2mps11_clk_unprepare(struct clk_hw *hw) in s2mps11_clk_unprepare()
75 static int s2mps11_clk_is_prepared(struct clk_hw *hw) in s2mps11_clk_is_prepared()
89 static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw, in s2mps11_clk_recalc_rate()
Dclk-palmas.c45 struct clk_hw hw;
51 static inline struct palmas_clock_info *to_palmas_clks_info(struct clk_hw *hw) in to_palmas_clks_info()
56 static unsigned long palmas_clks_recalc_rate(struct clk_hw *hw, in palmas_clks_recalc_rate()
62 static int palmas_clks_prepare(struct clk_hw *hw) in palmas_clks_prepare()
80 static void palmas_clks_unprepare(struct clk_hw *hw) in palmas_clks_unprepare()
100 static int palmas_clks_is_prepared(struct clk_hw *hw) in palmas_clks_is_prepared()
Dclk-xgene.c61 struct clk_hw hw;
70 static int xgene_clk_pll_is_enabled(struct clk_hw *hw) in xgene_clk_pll_is_enabled()
82 static unsigned long xgene_clk_pll_recalc_rate(struct clk_hw *hw, in xgene_clk_pll_recalc_rate()
209 struct clk_hw hw;
216 static int xgene_clk_enable(struct clk_hw *hw) in xgene_clk_enable()
258 static void xgene_clk_disable(struct clk_hw *hw) in xgene_clk_disable()
288 static int xgene_clk_is_enabled(struct clk_hw *hw) in xgene_clk_is_enabled()
307 static unsigned long xgene_clk_recalc_rate(struct clk_hw *hw, in xgene_clk_recalc_rate()
331 static int xgene_clk_set_rate(struct clk_hw *hw, unsigned long rate, in xgene_clk_set_rate()
370 static long xgene_clk_round_rate(struct clk_hw *hw, unsigned long rate, in xgene_clk_round_rate()
Dclk-vt8500.c30 struct clk_hw hw;
51 struct clk_hw hw;
84 static int vt8500_dclk_enable(struct clk_hw *hw) in vt8500_dclk_enable()
100 static void vt8500_dclk_disable(struct clk_hw *hw) in vt8500_dclk_disable()
115 static int vt8500_dclk_is_enabled(struct clk_hw *hw) in vt8500_dclk_is_enabled()
123 static unsigned long vt8500_dclk_recalc_rate(struct clk_hw *hw, in vt8500_dclk_recalc_rate()
140 static long vt8500_dclk_round_rate(struct clk_hw *hw, unsigned long rate, in vt8500_dclk_round_rate()
166 static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate, in vt8500_dclk_set_rate()
539 static int vtwm_pll_set_rate(struct clk_hw *hw, unsigned long rate, in vtwm_pll_set_rate()
582 static long vtwm_pll_round_rate(struct clk_hw *hw, unsigned long rate, in vtwm_pll_round_rate()
[all …]
Dclk-fixed-factor.c28 static unsigned long clk_factor_recalc_rate(struct clk_hw *hw, in clk_factor_recalc_rate()
39 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long rate, in clk_factor_round_rate()
54 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factor_set_rate()
Dclk-gpio.c36 static int clk_gpio_gate_enable(struct clk_hw *hw) in clk_gpio_gate_enable()
45 static void clk_gpio_gate_disable(struct clk_hw *hw) in clk_gpio_gate_disable()
52 static int clk_gpio_gate_is_enabled(struct clk_hw *hw) in clk_gpio_gate_is_enabled()
74 static u8 clk_gpio_mux_get_parent(struct clk_hw *hw) in clk_gpio_mux_get_parent()
81 static int clk_gpio_mux_set_parent(struct clk_hw *hw, u8 index) in clk_gpio_mux_set_parent()
Dclk.c47 struct clk_hw *hw;
281 const char *clk_hw_get_name(const struct clk_hw *hw) in clk_hw_get_name()
287 struct clk_hw *__clk_get_hw(struct clk *clk) in __clk_get_hw()
293 unsigned int clk_hw_get_num_parents(const struct clk_hw *hw) in clk_hw_get_num_parents()
299 struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw) in clk_hw_get_parent()
362 struct clk_hw *
363 clk_hw_get_parent_by_index(const struct clk_hw *hw, unsigned int index) in clk_hw_get_parent_by_index()
399 unsigned long clk_hw_get_rate(const struct clk_hw *hw) in clk_hw_get_rate()
419 unsigned long clk_hw_get_flags(const struct clk_hw *hw) in clk_hw_get_flags()
425 bool clk_hw_is_prepared(const struct clk_hw *hw) in clk_hw_is_prepared()
[all …]
Dclk-divider.c119 unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate, in divider_recalc_rate()
139 static unsigned long clk_divider_recalc_rate(struct clk_hw *hw, in clk_divider_recalc_rate()
279 static int clk_divider_bestdiv(struct clk_hw *hw, unsigned long rate, in clk_divider_bestdiv()
337 long divider_round_rate(struct clk_hw *hw, unsigned long rate, in divider_round_rate()
349 static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, in clk_divider_round_rate()
385 static int clk_divider_set_rate(struct clk_hw *hw, unsigned long rate, in clk_divider_set_rate()
530 struct clk_hw *hw; in clk_unregister_divider()
Dclk-fractional-divider.c21 static unsigned long clk_fd_recalc_rate(struct clk_hw *hw, in clk_fd_recalc_rate()
54 static long clk_fd_round_rate(struct clk_hw *hw, unsigned long rate, in clk_fd_round_rate()
84 static int clk_fd_set_rate(struct clk_hw *hw, unsigned long rate, in clk_fd_set_rate()
Dclk-mux.c31 static u8 clk_mux_get_parent(struct clk_hw *hw) in clk_mux_get_parent()
68 static int clk_mux_set_parent(struct clk_hw *hw, u8 index) in clk_mux_set_parent()
189 struct clk_hw *hw; in clk_unregister_mux()
Dclk-stm32f4.c152 struct clk_hw hw;
158 static unsigned long clk_apb_mul_recalc_rate(struct clk_hw *hw, in clk_apb_mul_recalc_rate()
169 static long clk_apb_mul_round_rate(struct clk_hw *hw, unsigned long rate, in clk_apb_mul_round_rate()
187 static int clk_apb_mul_set_rate(struct clk_hw *hw, unsigned long rate, in clk_apb_mul_set_rate()
Dclk-si514.c56 struct clk_hw hw;
196 static unsigned long si514_recalc_rate(struct clk_hw *hw, in si514_recalc_rate()
212 static long si514_round_rate(struct clk_hw *hw, unsigned long rate, in si514_round_rate()
233 static int si514_set_rate(struct clk_hw *hw, unsigned long rate, in si514_set_rate()
Dclk-fixed-rate.c31 static unsigned long clk_fixed_rate_recalc_rate(struct clk_hw *hw, in clk_fixed_rate_recalc_rate()
37 static unsigned long clk_fixed_rate_recalc_accuracy(struct clk_hw *hw, in clk_fixed_rate_recalc_accuracy()
Dclk-axm5516.c30 struct clk_hw hw;
51 axxia_pllclk_recalc(struct clk_hw *hw, unsigned long parent_rate) in axxia_pllclk_recalc()
90 axxia_divclk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in axxia_divclk_recalc_rate()
124 static u8 axxia_clkmux_get_parent(struct clk_hw *hw) in axxia_clkmux_get_parent()
Dclk-si570.c75 struct clk_hw hw;
229 static unsigned long si570_recalc_rate(struct clk_hw *hw, in si570_recalc_rate()
249 static long si570_round_rate(struct clk_hw *hw, unsigned long rate, in si570_round_rate()
342 static int si570_set_rate(struct clk_hw *hw, unsigned long rate, in si570_set_rate()
/linux-4.4.14/arch/arm/mach-omap2/
Dclock2xxx.h14 unsigned long omap2_table_mpu_recalc(struct clk_hw *clk,
16 int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate,
18 long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate,
20 unsigned long omap2xxx_sys_clk_recalc(struct clk_hw *clk,
22 unsigned long omap2_osc_clk_recalc(struct clk_hw *clk,
24 void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw);
43 extern struct clk_hw *dclk_hw;
Dclkt2xxx_dpllcore.c105 unsigned long omap2_dpllcore_recalc(struct clk_hw *hw, in omap2_dpllcore_recalc()
111 int omap2_reprogram_dpllcore(struct clk_hw *hw, unsigned long rate, in omap2_reprogram_dpllcore()
191 void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw) in omap2xxx_clkt_dpllcore_init()
Dclkt2xxx_virt_prcm_set.c61 unsigned long omap2_table_mpu_recalc(struct clk_hw *clk, in omap2_table_mpu_recalc()
74 long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate, in omap2_round_to_table_rate()
98 int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate, in omap2_select_table_rate()
Dclock3xxx.h12 int omap3_core_dpll_m2_set_rate(struct clk_hw *clk, unsigned long rate,
Dclock.c93 void omap2_init_clk_clkdm(struct clk_hw *hw) in omap2_init_clk_clkdm()
/linux-4.4.14/drivers/clk/tegra/
Dclk-periph.c24 static u8 clk_periph_get_parent(struct clk_hw *hw) in clk_periph_get_parent()
28 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent()
35 static int clk_periph_set_parent(struct clk_hw *hw, u8 index) in clk_periph_set_parent()
39 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent()
46 static unsigned long clk_periph_recalc_rate(struct clk_hw *hw, in clk_periph_recalc_rate()
51 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate()
58 static long clk_periph_round_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_round_rate()
63 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_round_rate()
70 static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_set_rate()
75 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate()
[all …]
Dclk-audio-sync.c23 static unsigned long clk_sync_source_recalc_rate(struct clk_hw *hw, in clk_sync_source_recalc_rate()
31 static long clk_sync_source_round_rate(struct clk_hw *hw, unsigned long rate, in clk_sync_source_round_rate()
42 static int clk_sync_source_set_rate(struct clk_hw *hw, unsigned long rate, in clk_sync_source_set_rate()
Dclk-pll.c272 static int clk_pll_is_enabled(struct clk_hw *hw) in clk_pll_is_enabled()
288 static void _clk_pll_enable(struct clk_hw *hw) in _clk_pll_enable()
308 static void _clk_pll_disable(struct clk_hw *hw) in _clk_pll_disable()
326 static int clk_pll_enable(struct clk_hw *hw) in clk_pll_enable()
345 static void clk_pll_disable(struct clk_hw *hw) in clk_pll_disable()
359 static int _p_div_to_hw(struct clk_hw *hw, u8 p_div) in _p_div_to_hw()
375 static int _hw_to_p_div(struct clk_hw *hw, u8 p_div_hw) in _hw_to_p_div()
392 static int _get_table_rate(struct clk_hw *hw, in _get_table_rate()
417 static int _calc_rate(struct clk_hw *hw, struct tegra_clk_pll_freq_table *cfg, in _calc_rate()
563 static int _program_pll(struct clk_hw *hw, struct tegra_clk_pll_freq_table *cfg, in _program_pll()
[all …]
Dclk-pll-out.c29 static int clk_pll_out_is_enabled(struct clk_hw *hw) in clk_pll_out_is_enabled()
41 static int clk_pll_out_enable(struct clk_hw *hw) in clk_pll_out_enable()
63 static void clk_pll_out_disable(struct clk_hw *hw) in clk_pll_out_disable()
Dclk.h31 struct clk_hw hw;
68 struct clk_hw hw;
264 struct clk_hw hw;
346 struct clk_hw hw;
405 struct clk_hw hw;
444 struct clk_hw hw;
558 struct clk_hw hw;
Dclk-periph-gate.c47 static int clk_periph_is_enabled(struct clk_hw *hw) in clk_periph_is_enabled()
62 static int clk_periph_enable(struct clk_hw *hw) in clk_periph_enable()
98 static void clk_periph_disable(struct clk_hw *hw) in clk_periph_disable()
Dclk-divider.c66 static unsigned long clk_frac_div_recalc_rate(struct clk_hw *hw, in clk_frac_div_recalc_rate()
87 static long clk_frac_div_round_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_round_rate()
106 static int clk_frac_div_set_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_set_rate()
Dclk-emc.c79 struct clk_hw hw;
94 static unsigned long emc_recalc_rate(struct clk_hw *hw, in emc_recalc_rate()
119 static int emc_determine_rate(struct clk_hw *hw, struct clk_rate_request *req) in emc_determine_rate()
158 static u8 emc_get_parent(struct clk_hw *hw) in emc_get_parent()
307 static int emc_set_rate(struct clk_hw *hw, unsigned long rate, in emc_set_rate()
Dclk-super.c42 static u8 clk_super_get_parent(struct clk_hw *hw) in clk_super_get_parent()
71 static int clk_super_set_parent(struct clk_hw *hw, u8 index) in clk_super_set_parent()
Dclk-dfll.c283 struct clk_hw dfll_clk_hw;
918 static int dfll_clk_is_enabled(struct clk_hw *hw) in dfll_clk_is_enabled()
925 static int dfll_clk_enable(struct clk_hw *hw) in dfll_clk_enable()
941 static void dfll_clk_disable(struct clk_hw *hw) in dfll_clk_disable()
951 static unsigned long dfll_clk_recalc_rate(struct clk_hw *hw, in dfll_clk_recalc_rate()
960 static int dfll_clk_determine_rate(struct clk_hw *hw, in dfll_clk_determine_rate()
980 static int dfll_clk_set_rate(struct clk_hw *hw, unsigned long rate, in dfll_clk_set_rate()
/linux-4.4.14/drivers/clk/st/
Dclk-flexgen.c19 struct clk_hw hw;
35 static int flexgen_enable(struct clk_hw *hw) in flexgen_enable()
38 struct clk_hw *pgate_hw = &flexgen->pgate.hw; in flexgen_enable()
39 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_enable()
52 static void flexgen_disable(struct clk_hw *hw) in flexgen_disable()
55 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_disable()
65 static int flexgen_is_enabled(struct clk_hw *hw) in flexgen_is_enabled()
68 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_is_enabled()
78 static u8 flexgen_get_parent(struct clk_hw *hw) in flexgen_get_parent()
81 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_get_parent()
[all …]
Dclkgen-mux.c57 struct clk_hw hw;
89 static int clkgena_divmux_enable(struct clk_hw *hw) in clkgena_divmux_enable()
92 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_enable()
113 static void clkgena_divmux_disable(struct clk_hw *hw) in clkgena_divmux_disable()
116 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_disable()
123 static int clkgena_divmux_is_enabled(struct clk_hw *hw) in clkgena_divmux_is_enabled()
126 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_is_enabled()
133 static u8 clkgena_divmux_get_parent(struct clk_hw *hw) in clkgena_divmux_get_parent()
136 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_get_parent()
150 static int clkgena_divmux_set_parent(struct clk_hw *hw, u8 index) in clkgena_divmux_set_parent()
[all …]
Dclkgen-pll.c303 struct clk_hw hw;
326 static int clkgen_pll_is_locked(struct clk_hw *hw) in clkgen_pll_is_locked()
334 static int clkgen_pll_is_enabled(struct clk_hw *hw) in clkgen_pll_is_enabled()
341 static int __clkgen_pll_enable(struct clk_hw *hw) in __clkgen_pll_enable()
367 static int clkgen_pll_enable(struct clk_hw *hw) in clkgen_pll_enable()
384 static void __clkgen_pll_disable(struct clk_hw *hw) in __clkgen_pll_disable()
399 static void clkgen_pll_disable(struct clk_hw *hw) in clkgen_pll_disable()
413 static unsigned long recalc_stm_pll800c65(struct clk_hw *hw, in recalc_stm_pll800c65()
440 static unsigned long recalc_stm_pll1600c65(struct clk_hw *hw, in recalc_stm_pll1600c65()
525 static unsigned long recalc_stm_pll3200c32(struct clk_hw *hw, in recalc_stm_pll3200c32()
[all …]
Dclkgen-fsyn.c417 struct clk_hw hw;
426 static int quadfs_pll_enable(struct clk_hw *hw) in quadfs_pll_enable()
467 static void quadfs_pll_disable(struct clk_hw *hw) in quadfs_pll_disable()
488 static int quadfs_pll_is_enabled(struct clk_hw *hw) in quadfs_pll_is_enabled()
506 static unsigned long quadfs_pll_fs660c32_recalc_rate(struct clk_hw *hw, in quadfs_pll_fs660c32_recalc_rate()
552 static long quadfs_pll_fs660c32_round_rate(struct clk_hw *hw, unsigned long rate in quadfs_pll_fs660c32_round_rate()
569 static int quadfs_pll_fs660c32_set_rate(struct clk_hw *hw, unsigned long rate, in quadfs_pll_fs660c32_set_rate()
682 struct clk_hw hw;
743 static int quadfs_fsynth_enable(struct clk_hw *hw) in quadfs_fsynth_enable()
768 static void quadfs_fsynth_disable(struct clk_hw *hw) in quadfs_fsynth_disable()
[all …]
/linux-4.4.14/drivers/clk/qcom/
Dclk-rcg2.c50 static int clk_rcg2_is_enabled(struct clk_hw *hw) in clk_rcg2_is_enabled()
63 static u8 clk_rcg2_get_parent(struct clk_hw *hw) in clk_rcg2_get_parent()
91 struct clk_hw *hw = &rcg->clkr.hw; in update_config()
113 static int clk_rcg2_set_parent(struct clk_hw *hw, u8 index) in clk_rcg2_set_parent()
153 clk_rcg2_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_rcg2_recalc_rate()
179 static int _freq_tbl_determine_rate(struct clk_hw *hw, in _freq_tbl_determine_rate()
183 struct clk_hw *p; in _freq_tbl_determine_rate()
219 static int clk_rcg2_determine_rate(struct clk_hw *hw, in clk_rcg2_determine_rate()
230 struct clk_hw *hw = &rcg->clkr.hw; in clk_rcg2_configure()
268 static int __clk_rcg2_set_rate(struct clk_hw *hw, unsigned long rate) in __clk_rcg2_set_rate()
[all …]
Dclk-regmap.h31 struct clk_hw hw;
39 int clk_is_enabled_regmap(struct clk_hw *hw);
40 int clk_enable_regmap(struct clk_hw *hw);
41 void clk_disable_regmap(struct clk_hw *hw);
Dclk-rcg.c45 static u8 clk_rcg_get_parent(struct clk_hw *hw) in clk_rcg_get_parent()
72 static u8 clk_dyn_rcg_get_parent(struct clk_hw *hw) in clk_dyn_rcg_get_parent()
102 static int clk_rcg_set_parent(struct clk_hw *hw, u8 index) in clk_rcg_set_parent()
217 struct clk_hw *hw = &rcg->clkr.hw; in configure_bank()
299 static int clk_dyn_rcg_set_parent(struct clk_hw *hw, u8 index) in clk_dyn_rcg_set_parent()
350 clk_rcg_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_rcg_recalc_rate()
375 clk_dyn_rcg_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_dyn_rcg_recalc_rate()
407 static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f, in _freq_tbl_determine_rate()
412 struct clk_hw *p; in _freq_tbl_determine_rate()
443 static int clk_rcg_determine_rate(struct clk_hw *hw, in clk_rcg_determine_rate()
[all …]
Dclk-regmap-divider.c21 static inline struct clk_regmap_div *to_clk_regmap_div(struct clk_hw *hw) in to_clk_regmap_div()
26 static long div_round_rate(struct clk_hw *hw, unsigned long rate, in div_round_rate()
35 static int div_set_rate(struct clk_hw *hw, unsigned long rate, in div_set_rate()
50 static unsigned long div_recalc_rate(struct clk_hw *hw, in div_recalc_rate()
Dclk-branch.c103 static int clk_branch_toggle(struct clk_hw *hw, bool en, in clk_branch_toggle()
120 static int clk_branch_enable(struct clk_hw *hw) in clk_branch_enable()
125 static void clk_branch_disable(struct clk_hw *hw) in clk_branch_disable()
137 static int clk_branch2_enable(struct clk_hw *hw) in clk_branch2_enable()
142 static void clk_branch2_disable(struct clk_hw *hw) in clk_branch2_disable()
Dclk-regmap-mux.c21 static inline struct clk_regmap_mux *to_clk_regmap_mux(struct clk_hw *hw) in to_clk_regmap_mux()
26 static u8 mux_get_parent(struct clk_hw *hw) in mux_get_parent()
41 static int mux_set_parent(struct clk_hw *hw, u8 index) in mux_set_parent()
Dclk-pll.c37 static int clk_pll_enable(struct clk_hw *hw) in clk_pll_enable()
78 static void clk_pll_disable(struct clk_hw *hw) in clk_pll_disable()
93 clk_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_pll_recalc_rate()
139 clk_pll_determine_rate(struct clk_hw *hw, struct clk_rate_request *req) in clk_pll_determine_rate()
154 clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long p_rate) in clk_pll_set_rate()
213 static int clk_pll_vote_enable(struct clk_hw *hw) in clk_pll_vote_enable()
296 static int clk_pll_sr2_enable(struct clk_hw *hw) in clk_pll_sr2_enable()
334 clk_pll_sr2_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) in clk_pll_sr2_set_rate()
Dclk-regmap.c30 int clk_is_enabled_regmap(struct clk_hw *hw) in clk_is_enabled_regmap()
56 int clk_enable_regmap(struct clk_hw *hw) in clk_enable_regmap()
80 void clk_disable_regmap(struct clk_hw *hw) in clk_disable_regmap()
Dcommon.h22 struct clk_hw;
37 extern int qcom_find_src_index(struct clk_hw *hw, const struct parent_map *map,
/linux-4.4.14/drivers/clk/mediatek/
Dclk-gate.c26 static int mtk_cg_bit_is_cleared(struct clk_hw *hw) in mtk_cg_bit_is_cleared()
38 static int mtk_cg_bit_is_set(struct clk_hw *hw) in mtk_cg_bit_is_set()
50 static void mtk_cg_set_bit(struct clk_hw *hw) in mtk_cg_set_bit()
57 static void mtk_cg_clr_bit(struct clk_hw *hw) in mtk_cg_clr_bit()
64 static int mtk_cg_enable(struct clk_hw *hw) in mtk_cg_enable()
71 static void mtk_cg_disable(struct clk_hw *hw) in mtk_cg_disable()
76 static int mtk_cg_enable_inv(struct clk_hw *hw) in mtk_cg_enable_inv()
83 static void mtk_cg_disable_inv(struct clk_hw *hw) in mtk_cg_disable_inv()
Dclk-apmixed.c28 struct clk_hw hw;
32 static inline struct mtk_ref2usb_tx *to_mtk_ref2usb_tx(struct clk_hw *hw) in to_mtk_ref2usb_tx()
37 static int mtk_ref2usb_tx_is_prepared(struct clk_hw *hw) in mtk_ref2usb_tx_is_prepared()
44 static int mtk_ref2usb_tx_prepare(struct clk_hw *hw) in mtk_ref2usb_tx_prepare()
64 static void mtk_ref2usb_tx_unprepare(struct clk_hw *hw) in mtk_ref2usb_tx_unprepare()
Dclk-pll.c45 struct clk_hw hw;
54 static inline struct mtk_clk_pll *to_mtk_clk_pll(struct clk_hw *hw) in to_mtk_clk_pll()
59 static int mtk_pll_is_prepared(struct clk_hw *hw) in mtk_pll_is_prepared()
172 static int mtk_pll_set_rate(struct clk_hw *hw, unsigned long rate, in mtk_pll_set_rate()
185 static unsigned long mtk_pll_recalc_rate(struct clk_hw *hw, in mtk_pll_recalc_rate()
201 static long mtk_pll_round_rate(struct clk_hw *hw, unsigned long rate, in mtk_pll_round_rate()
213 static int mtk_pll_prepare(struct clk_hw *hw) in mtk_pll_prepare()
246 static void mtk_pll_unprepare(struct clk_hw *hw) in mtk_pll_unprepare()
Dclk-gate.h24 struct clk_hw hw;
32 static inline struct mtk_clk_gate *to_clk_gate(struct clk_hw *hw) in to_clk_gate()
/linux-4.4.14/drivers/clk/ux500/
Dclk-prcmu.c20 struct clk_hw hw;
29 static int clk_prcmu_prepare(struct clk_hw *hw) in clk_prcmu_prepare()
41 static void clk_prcmu_unprepare(struct clk_hw *hw) in clk_prcmu_unprepare()
51 static int clk_prcmu_is_prepared(struct clk_hw *hw) in clk_prcmu_is_prepared()
57 static int clk_prcmu_enable(struct clk_hw *hw) in clk_prcmu_enable()
64 static void clk_prcmu_disable(struct clk_hw *hw) in clk_prcmu_disable()
70 static int clk_prcmu_is_enabled(struct clk_hw *hw) in clk_prcmu_is_enabled()
76 static unsigned long clk_prcmu_recalc_rate(struct clk_hw *hw, in clk_prcmu_recalc_rate()
83 static long clk_prcmu_round_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_round_rate()
90 static int clk_prcmu_set_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_set_rate()
[all …]
Dclk-prcc.c28 struct clk_hw hw;
36 static int clk_prcc_pclk_enable(struct clk_hw *hw) in clk_prcc_pclk_enable()
48 static void clk_prcc_pclk_disable(struct clk_hw *hw) in clk_prcc_pclk_disable()
56 static int clk_prcc_kclk_enable(struct clk_hw *hw) in clk_prcc_kclk_enable()
68 static void clk_prcc_kclk_disable(struct clk_hw *hw) in clk_prcc_kclk_disable()
76 static int clk_prcc_is_enabled(struct clk_hw *hw) in clk_prcc_is_enabled()
Dclk-sysctrl.c24 struct clk_hw hw;
36 static int clk_sysctrl_prepare(struct clk_hw *hw) in clk_sysctrl_prepare()
50 static void clk_sysctrl_unprepare(struct clk_hw *hw) in clk_sysctrl_unprepare()
58 static unsigned long clk_sysctrl_recalc_rate(struct clk_hw *hw, in clk_sysctrl_recalc_rate()
65 static int clk_sysctrl_set_parent(struct clk_hw *hw, u8 index) in clk_sysctrl_set_parent()
95 static u8 clk_sysctrl_get_parent(struct clk_hw *hw) in clk_sysctrl_get_parent()
/linux-4.4.14/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll.h28 struct clk_hw clk_hw; member
46 #define hw_clk_to_pll(x) container_of(x, struct msm_dsi_pll, clk_hw)
75 long msm_dsi_pll_helper_clk_round_rate(struct clk_hw *hw,
77 int msm_dsi_pll_helper_clk_prepare(struct clk_hw *hw);
78 void msm_dsi_pll_helper_clk_unprepare(struct clk_hw *hw);
Ddsi_pll.c59 long msm_dsi_pll_helper_clk_round_rate(struct clk_hw *hw, in msm_dsi_pll_helper_clk_round_rate()
72 int msm_dsi_pll_helper_clk_prepare(struct clk_hw *hw) in msm_dsi_pll_helper_clk_prepare()
79 void msm_dsi_pll_helper_clk_unprepare(struct clk_hw *hw) in msm_dsi_pll_helper_clk_unprepare()
Ddsi_pll_28nm.c135 static int dsi_pll_28nm_clk_set_rate(struct clk_hw *hw, unsigned long rate, in dsi_pll_28nm_clk_set_rate()
251 static int dsi_pll_28nm_clk_is_enabled(struct clk_hw *hw) in dsi_pll_28nm_clk_is_enabled()
260 static unsigned long dsi_pll_28nm_clk_recalc_rate(struct clk_hw *hw, in dsi_pll_28nm_clk_recalc_rate()
458 cached_state->vco_rate = clk_hw_get_rate(&pll->clk_hw); in dsi_pll_28nm_save_state()
468 ret = dsi_pll_28nm_clk_set_rate(&pll->clk_hw, in dsi_pll_28nm_restore_state()
535 pll_28nm->base.clk_hw.init = &vco_init; in pll_28nm_register()
536 clks[num++] = clk_register(dev, &pll_28nm->base.clk_hw); in pll_28nm_register()
/linux-4.4.14/arch/mips/alchemy/common/
Dclock.c117 static unsigned long alchemy_clk_cpu_recalc(struct clk_hw *hw, in alchemy_clk_cpu_recalc()
153 struct clk_hw *h; in alchemy_clk_setup_cpu()
172 struct clk_hw hw;
178 static unsigned long alchemy_clk_aux_recalc(struct clk_hw *hw, in alchemy_clk_aux_recalc()
186 static int alchemy_clk_aux_setr(struct clk_hw *hw, in alchemy_clk_aux_setr()
206 static long alchemy_clk_aux_roundr(struct clk_hw *hw, in alchemy_clk_aux_roundr()
358 struct clk_hw hw;
393 static int alchemy_clk_fgcs_detr(struct clk_hw *hw, in alchemy_clk_fgcs_detr()
397 struct clk_hw *pc, *bpc, *free; in alchemy_clk_fgcs_detr()
483 static int alchemy_clk_fgv1_en(struct clk_hw *hw) in alchemy_clk_fgv1_en()
[all …]
/linux-4.4.14/drivers/clk/imx/
Dclk-pllv3.c41 struct clk_hw hw;
72 static int clk_pllv3_prepare(struct clk_hw *hw) in clk_pllv3_prepare()
87 static void clk_pllv3_unprepare(struct clk_hw *hw) in clk_pllv3_unprepare()
100 static unsigned long clk_pllv3_recalc_rate(struct clk_hw *hw, in clk_pllv3_recalc_rate()
109 static long clk_pllv3_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_round_rate()
118 static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_set_rate()
147 static unsigned long clk_pllv3_sys_recalc_rate(struct clk_hw *hw, in clk_pllv3_sys_recalc_rate()
156 static long clk_pllv3_sys_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_sys_round_rate()
173 static int clk_pllv3_sys_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_sys_set_rate()
201 static unsigned long clk_pllv3_av_recalc_rate(struct clk_hw *hw, in clk_pllv3_av_recalc_rate()
[all …]
Dclk-pfd.c30 struct clk_hw hw;
41 static int clk_pfd_enable(struct clk_hw *hw) in clk_pfd_enable()
50 static void clk_pfd_disable(struct clk_hw *hw) in clk_pfd_disable()
57 static unsigned long clk_pfd_recalc_rate(struct clk_hw *hw, in clk_pfd_recalc_rate()
70 static long clk_pfd_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pfd_round_rate()
90 static int clk_pfd_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pfd_set_rate()
111 static int clk_pfd_is_enabled(struct clk_hw *hw) in clk_pfd_is_enabled()
Dclk-cpu.c18 struct clk_hw hw;
25 static inline struct clk_cpu *to_clk_cpu(struct clk_hw *hw) in to_clk_cpu()
30 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hw, in clk_cpu_recalc_rate()
38 static long clk_cpu_round_rate(struct clk_hw *hw, unsigned long rate, in clk_cpu_round_rate()
46 static int clk_cpu_set_rate(struct clk_hw *hw, unsigned long rate, in clk_cpu_set_rate()
Dclk-busy.c39 static inline struct clk_busy_divider *to_clk_busy_divider(struct clk_hw *hw) in to_clk_busy_divider()
46 static unsigned long clk_busy_divider_recalc_rate(struct clk_hw *hw, in clk_busy_divider_recalc_rate()
54 static long clk_busy_divider_round_rate(struct clk_hw *hw, unsigned long rate, in clk_busy_divider_round_rate()
62 static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate, in clk_busy_divider_set_rate()
124 static inline struct clk_busy_mux *to_clk_busy_mux(struct clk_hw *hw) in to_clk_busy_mux()
131 static u8 clk_busy_mux_get_parent(struct clk_hw *hw) in clk_busy_mux_get_parent()
138 static int clk_busy_mux_set_parent(struct clk_hw *hw, u8 index) in clk_busy_mux_set_parent()
Dclk-gate2.c31 struct clk_hw hw;
41 static int clk_gate2_enable(struct clk_hw *hw) in clk_gate2_enable()
62 static void clk_gate2_disable(struct clk_hw *hw) in clk_gate2_disable()
95 static int clk_gate2_is_enabled(struct clk_hw *hw) in clk_gate2_is_enabled()
102 static void clk_gate2_disable_unused(struct clk_hw *hw) in clk_gate2_disable_unused()
Dclk-pllv2.c73 struct clk_hw hw;
108 static unsigned long clk_pllv2_recalc_rate(struct clk_hw *hw, in clk_pllv2_recalc_rate()
154 static int clk_pllv2_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv2_set_rate()
180 static long clk_pllv2_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv2_round_rate()
190 static int clk_pllv2_prepare(struct clk_hw *hw) in clk_pllv2_prepare()
218 static void clk_pllv2_unprepare(struct clk_hw *hw) in clk_pllv2_unprepare()
Dclk-fixup-div.c36 static inline struct clk_fixup_div *to_clk_fixup_div(struct clk_hw *hw) in to_clk_fixup_div()
43 static unsigned long clk_fixup_div_recalc_rate(struct clk_hw *hw, in clk_fixup_div_recalc_rate()
51 static long clk_fixup_div_round_rate(struct clk_hw *hw, unsigned long rate, in clk_fixup_div_round_rate()
59 static int clk_fixup_div_set_rate(struct clk_hw *hw, unsigned long rate, in clk_fixup_div_set_rate()
Dclk-gate-exclusive.c32 static int clk_gate_exclusive_enable(struct clk_hw *hw) in clk_gate_exclusive_enable()
45 static void clk_gate_exclusive_disable(struct clk_hw *hw) in clk_gate_exclusive_disable()
50 static int clk_gate_exclusive_is_enabled(struct clk_hw *hw) in clk_gate_exclusive_is_enabled()
Dclk-fixup-mux.c35 static inline struct clk_fixup_mux *to_clk_fixup_mux(struct clk_hw *hw) in to_clk_fixup_mux()
42 static u8 clk_fixup_mux_get_parent(struct clk_hw *hw) in clk_fixup_mux_get_parent()
49 static int clk_fixup_mux_set_parent(struct clk_hw *hw, u8 index) in clk_fixup_mux_set_parent()
Dclk-pllv1.c24 struct clk_hw hw;
51 static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw, in clk_pllv1_recalc_rate()
/linux-4.4.14/drivers/clk/spear/
Dclk.h50 struct clk_hw hw;
64 struct clk_hw hw;
78 struct clk_hw hw;
94 struct clk_hw hw;
103 struct clk_hw hw;
109 typedef unsigned long (*clk_calc_rate)(struct clk_hw *hw, unsigned long prate,
130 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
Dclk-vco-pll.c84 static long clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate_index()
116 static long clk_pll_round_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate()
124 static unsigned long clk_pll_recalc_rate(struct clk_hw *hw, unsigned long in clk_pll_recalc_rate()
144 static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_set_rate()
174 static inline unsigned long vco_calc_rate(struct clk_hw *hw, in vco_calc_rate()
182 static long clk_vco_round_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_round_rate()
192 static unsigned long clk_vco_recalc_rate(struct clk_hw *hw, in clk_vco_recalc_rate()
230 static int clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_set_rate()
Dclk-frac-synth.c44 static unsigned long frac_calc_rate(struct clk_hw *hw, unsigned long prate, in frac_calc_rate()
58 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_round_rate()
68 static unsigned long clk_frac_recalc_rate(struct clk_hw *hw, in clk_frac_recalc_rate()
95 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_set_rate()
Dclk-gpt-synth.c34 static unsigned long gpt_calc_rate(struct clk_hw *hw, unsigned long prate, in gpt_calc_rate()
45 static long clk_gpt_round_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_round_rate()
55 static unsigned long clk_gpt_recalc_rate(struct clk_hw *hw, in clk_gpt_recalc_rate()
80 static int clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_set_rate()
Dclk-aux-synth.c44 static unsigned long aux_calc_rate(struct clk_hw *hw, unsigned long prate, in aux_calc_rate()
55 static long clk_aux_round_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_round_rate()
65 static unsigned long clk_aux_recalc_rate(struct clk_hw *hw, in clk_aux_recalc_rate()
99 static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_set_rate()
Dclk.c16 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_round_rate_index()
/linux-4.4.14/drivers/clk/sirf/
Dclk-common.c35 struct clk_hw hw;
42 struct clk_hw hw;
50 struct clk_hw hw;
56 static int std_clk_is_enabled(struct clk_hw *hw);
57 static int std_clk_enable(struct clk_hw *hw);
58 static void std_clk_disable(struct clk_hw *hw);
74 static unsigned long pll_clk_recalc_rate(struct clk_hw *hw, in pll_clk_recalc_rate()
96 static long pll_clk_round_rate(struct clk_hw *hw, unsigned long rate, in pll_clk_round_rate()
127 static int pll_clk_set_rate(struct clk_hw *hw, unsigned long rate, in pll_clk_set_rate()
163 static long cpu_clk_round_rate(struct clk_hw *hw, unsigned long rate, in cpu_clk_round_rate()
[all …]
Dclk-atlas7.c215 struct clk_hw hw;
221 struct clk_hw hw;
234 struct clk_hw hw;
353 static unsigned long pll_clk_recalc_rate(struct clk_hw *hw, in pll_clk_recalc_rate()
487 static int dto_clk_is_enabled(struct clk_hw *hw) in dto_clk_is_enabled()
497 static int dto_clk_enable(struct clk_hw *hw) in dto_clk_enable()
509 static void dto_clk_disable(struct clk_hw *hw) in dto_clk_disable()
520 static unsigned long dto_clk_recalc_rate(struct clk_hw *hw, in dto_clk_recalc_rate()
538 static long dto_clk_round_rate(struct clk_hw *hw, unsigned long rate, in dto_clk_round_rate()
550 static int dto_clk_set_rate(struct clk_hw *hw, unsigned long rate, in dto_clk_set_rate()
[all …]
/linux-4.4.14/drivers/clk/mxs/
Dclk-pll.c30 struct clk_hw hw;
38 static int clk_pll_prepare(struct clk_hw *hw) in clk_pll_prepare()
49 static void clk_pll_unprepare(struct clk_hw *hw) in clk_pll_unprepare()
56 static int clk_pll_enable(struct clk_hw *hw) in clk_pll_enable()
65 static void clk_pll_disable(struct clk_hw *hw) in clk_pll_disable()
72 static unsigned long clk_pll_recalc_rate(struct clk_hw *hw, in clk_pll_recalc_rate()
Dclk-ref.c30 struct clk_hw hw;
37 static int clk_ref_enable(struct clk_hw *hw) in clk_ref_enable()
46 static void clk_ref_disable(struct clk_hw *hw) in clk_ref_disable()
53 static unsigned long clk_ref_recalc_rate(struct clk_hw *hw, in clk_ref_recalc_rate()
66 static long clk_ref_round_rate(struct clk_hw *hw, unsigned long rate, in clk_ref_round_rate()
89 static int clk_ref_set_rate(struct clk_hw *hw, unsigned long rate, in clk_ref_set_rate()
Dclk-div.c34 static inline struct clk_div *to_clk_div(struct clk_hw *hw) in to_clk_div()
41 static unsigned long clk_div_recalc_rate(struct clk_hw *hw, in clk_div_recalc_rate()
49 static long clk_div_round_rate(struct clk_hw *hw, unsigned long rate, in clk_div_round_rate()
57 static int clk_div_set_rate(struct clk_hw *hw, unsigned long rate, in clk_div_set_rate()
Dclk-frac.c30 struct clk_hw hw;
39 static unsigned long clk_frac_recalc_rate(struct clk_hw *hw, in clk_frac_recalc_rate()
53 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_round_rate()
79 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_set_rate()
/linux-4.4.14/drivers/clk/at91/
Dclk-slow.c43 struct clk_hw hw;
51 struct clk_hw hw;
61 struct clk_hw hw;
68 struct clk_hw hw;
77 static int clk_slow_osc_prepare(struct clk_hw *hw) in clk_slow_osc_prepare()
93 static void clk_slow_osc_unprepare(struct clk_hw *hw) in clk_slow_osc_unprepare()
105 static int clk_slow_osc_is_prepared(struct clk_hw *hw) in clk_slow_osc_is_prepared()
184 static unsigned long clk_slow_rc_osc_recalc_rate(struct clk_hw *hw, in clk_slow_rc_osc_recalc_rate()
192 static unsigned long clk_slow_rc_osc_recalc_accuracy(struct clk_hw *hw, in clk_slow_rc_osc_recalc_accuracy()
200 static int clk_slow_rc_osc_prepare(struct clk_hw *hw) in clk_slow_rc_osc_prepare()
[all …]
Dclk-usb.c29 struct clk_hw hw;
37 struct clk_hw hw;
45 static unsigned long at91sam9x5_clk_usb_recalc_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_recalc_rate()
59 static int at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_determine_rate()
62 struct clk_hw *parent; in at91sam9x5_clk_usb_determine_rate()
110 static int at91sam9x5_clk_usb_set_parent(struct clk_hw *hw, u8 index) in at91sam9x5_clk_usb_set_parent()
125 static u8 at91sam9x5_clk_usb_get_parent(struct clk_hw *hw) in at91sam9x5_clk_usb_get_parent()
133 static int at91sam9x5_clk_usb_set_rate(struct clk_hw *hw, unsigned long rate, in at91sam9x5_clk_usb_set_rate()
163 static int at91sam9n12_clk_usb_enable(struct clk_hw *hw) in at91sam9n12_clk_usb_enable()
173 static void at91sam9n12_clk_usb_disable(struct clk_hw *hw) in at91sam9n12_clk_usb_disable()
[all …]
Dclk-main.c36 struct clk_hw hw;
45 struct clk_hw hw;
56 struct clk_hw hw;
63 struct clk_hw hw;
82 static int clk_main_osc_prepare(struct clk_hw *hw) in clk_main_osc_prepare()
106 static void clk_main_osc_unprepare(struct clk_hw *hw) in clk_main_osc_unprepare()
122 static int clk_main_osc_is_prepared(struct clk_hw *hw) in clk_main_osc_is_prepared()
228 static int clk_main_rc_osc_prepare(struct clk_hw *hw) in clk_main_rc_osc_prepare()
250 static void clk_main_rc_osc_unprepare(struct clk_hw *hw) in clk_main_rc_osc_unprepare()
263 static int clk_main_rc_osc_is_prepared(struct clk_hw *hw) in clk_main_rc_osc_is_prepared()
[all …]
Dclk-generated.c30 struct clk_hw hw;
41 static int clk_generated_enable(struct clk_hw *hw) in clk_generated_enable()
62 static void clk_generated_disable(struct clk_hw *hw) in clk_generated_disable()
75 static int clk_generated_is_enabled(struct clk_hw *hw) in clk_generated_is_enabled()
90 clk_generated_recalc_rate(struct clk_hw *hw, in clk_generated_recalc_rate()
98 static int clk_generated_determine_rate(struct clk_hw *hw, in clk_generated_determine_rate()
102 struct clk_hw *parent = NULL; in clk_generated_determine_rate()
155 static int clk_generated_set_parent(struct clk_hw *hw, u8 index) in clk_generated_set_parent()
166 static u8 clk_generated_get_parent(struct clk_hw *hw) in clk_generated_get_parent()
174 static int clk_generated_set_rate(struct clk_hw *hw, in clk_generated_set_rate()
Dclk-peripheral.c35 struct clk_hw hw;
43 struct clk_hw hw;
54 static int clk_peripheral_enable(struct clk_hw *hw) in clk_peripheral_enable()
69 static void clk_peripheral_disable(struct clk_hw *hw) in clk_peripheral_disable()
83 static int clk_peripheral_is_enabled(struct clk_hw *hw) in clk_peripheral_is_enabled()
137 struct clk_hw *parent; in clk_sam9x5_peripheral_autodiv()
160 static int clk_sam9x5_peripheral_enable(struct clk_hw *hw) in clk_sam9x5_peripheral_enable()
179 static void clk_sam9x5_peripheral_disable(struct clk_hw *hw) in clk_sam9x5_peripheral_disable()
195 static int clk_sam9x5_peripheral_is_enabled(struct clk_hw *hw) in clk_sam9x5_peripheral_is_enabled()
213 clk_sam9x5_peripheral_recalc_rate(struct clk_hw *hw, in clk_sam9x5_peripheral_recalc_rate()
[all …]
Dclk-smd.c26 struct clk_hw hw;
33 static unsigned long at91sam9x5_clk_smd_recalc_rate(struct clk_hw *hw, in at91sam9x5_clk_smd_recalc_rate()
46 static long at91sam9x5_clk_smd_round_rate(struct clk_hw *hw, unsigned long rate, in at91sam9x5_clk_smd_round_rate()
68 static int at91sam9x5_clk_smd_set_parent(struct clk_hw *hw, u8 index) in at91sam9x5_clk_smd_set_parent()
83 static u8 at91sam9x5_clk_smd_get_parent(struct clk_hw *hw) in at91sam9x5_clk_smd_get_parent()
91 static int at91sam9x5_clk_smd_set_rate(struct clk_hw *hw, unsigned long rate, in at91sam9x5_clk_smd_set_rate()
Dclk-utmi.c28 struct clk_hw hw;
46 static int clk_utmi_prepare(struct clk_hw *hw) in clk_utmi_prepare()
64 static int clk_utmi_is_prepared(struct clk_hw *hw) in clk_utmi_is_prepared()
72 static void clk_utmi_unprepare(struct clk_hw *hw) in clk_utmi_unprepare()
81 static unsigned long clk_utmi_recalc_rate(struct clk_hw *hw, in clk_utmi_recalc_rate()
Dclk-h32mx.c33 struct clk_hw hw;
39 static unsigned long clk_sama5d4_h32mx_recalc_rate(struct clk_hw *hw, in clk_sama5d4_h32mx_recalc_rate()
52 static long clk_sama5d4_h32mx_round_rate(struct clk_hw *hw, unsigned long rate, in clk_sama5d4_h32mx_round_rate()
69 static int clk_sama5d4_h32mx_set_rate(struct clk_hw *hw, unsigned long rate, in clk_sama5d4_h32mx_set_rate()
Dclk-programmable.c36 struct clk_hw hw;
44 static unsigned long clk_programmable_recalc_rate(struct clk_hw *hw, in clk_programmable_recalc_rate()
57 static int clk_programmable_determine_rate(struct clk_hw *hw, in clk_programmable_determine_rate()
60 struct clk_hw *parent; in clk_programmable_determine_rate()
100 static int clk_programmable_set_parent(struct clk_hw *hw, u8 index) in clk_programmable_set_parent()
123 static u8 clk_programmable_get_parent(struct clk_hw *hw) in clk_programmable_get_parent()
139 static int clk_programmable_set_rate(struct clk_hw *hw, unsigned long rate, in clk_programmable_set_rate()
Dclk-plldiv.c23 struct clk_hw hw;
27 static unsigned long clk_plldiv_recalc_rate(struct clk_hw *hw, in clk_plldiv_recalc_rate()
39 static long clk_plldiv_round_rate(struct clk_hw *hw, unsigned long rate, in clk_plldiv_round_rate()
56 static int clk_plldiv_set_rate(struct clk_hw *hw, unsigned long rate, in clk_plldiv_set_rate()
Dclk-master.c46 struct clk_hw hw;
63 static int clk_master_prepare(struct clk_hw *hw) in clk_master_prepare()
77 static int clk_master_is_prepared(struct clk_hw *hw) in clk_master_is_prepared()
84 static unsigned long clk_master_recalc_rate(struct clk_hw *hw, in clk_master_recalc_rate()
119 static u8 clk_master_get_parent(struct clk_hw *hw) in clk_master_get_parent()
Dclk-system.c31 struct clk_hw hw;
52 static int clk_system_prepare(struct clk_hw *hw) in clk_system_prepare()
74 static void clk_system_unprepare(struct clk_hw *hw) in clk_system_unprepare()
82 static int clk_system_is_prepared(struct clk_hw *hw) in clk_system_is_prepared()
Dclk-pll.c60 struct clk_hw hw;
82 static int clk_pll_prepare(struct clk_hw *hw) in clk_pll_prepare()
130 static int clk_pll_is_prepared(struct clk_hw *hw) in clk_pll_is_prepared()
139 static void clk_pll_unprepare(struct clk_hw *hw) in clk_pll_unprepare()
150 static unsigned long clk_pll_recalc_rate(struct clk_hw *hw, in clk_pll_recalc_rate()
271 static long clk_pll_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pll_round_rate()
280 static int clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pll_set_rate()
/linux-4.4.14/drivers/clk/sunxi/
Dclk-sun6i-ar100.c27 struct clk_hw hw;
31 static inline struct ar100_clk *to_ar100_clk(struct clk_hw *hw) in to_ar100_clk()
36 static unsigned long ar100_recalc_rate(struct clk_hw *hw, in ar100_recalc_rate()
47 static int ar100_determine_rate(struct clk_hw *hw, in ar100_determine_rate()
59 struct clk_hw *parent; in ar100_determine_rate()
116 static int ar100_set_parent(struct clk_hw *hw, u8 index) in ar100_set_parent()
131 static u8 ar100_get_parent(struct clk_hw *hw) in ar100_get_parent()
138 static int ar100_set_rate(struct clk_hw *hw, unsigned long rate, in ar100_set_rate()
Dclk-factors.c44 static unsigned long clk_factors_recalc_rate(struct clk_hw *hw, in clk_factors_recalc_rate()
72 static long clk_factors_round_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_round_rate()
82 static int clk_factors_determine_rate(struct clk_hw *hw, in clk_factors_determine_rate()
85 struct clk_hw *parent, *best_parent = NULL; in clk_factors_determine_rate()
120 static int clk_factors_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_set_rate()
171 struct clk_hw *gate_hw = NULL; in sunxi_factors_register()
172 struct clk_hw *mux_hw = NULL; in sunxi_factors_register()
Dclk-mod0.c181 struct clk_hw hw;
189 static int mmc_get_phase(struct clk_hw *hw) in mmc_get_phase()
231 static int mmc_set_phase(struct clk_hw *hw, int degrees) in mmc_set_phase()
Dclk-factors.h32 struct clk_hw hw;
Dclk-sunxi.c57 struct clk_hw hw;
63 static unsigned long sun6i_ahb1_clk_recalc_rate(struct clk_hw *hw, in sun6i_ahb1_clk_recalc_rate()
123 static int sun6i_ahb1_clk_determine_rate(struct clk_hw *hw, in sun6i_ahb1_clk_determine_rate()
126 struct clk_hw *parent, *best_parent = NULL; in sun6i_ahb1_clk_determine_rate()
161 static int sun6i_ahb1_clk_set_rate(struct clk_hw *hw, unsigned long rate, in sun6i_ahb1_clk_set_rate()
981 struct clk_hw *gate_hw, *rate_hw; in sunxi_divs_clk_setup()
/linux-4.4.14/drivers/clk/shmobile/
Dclk-div6.c32 struct clk_hw hw;
42 static int cpg_div6_clock_enable(struct clk_hw *hw) in cpg_div6_clock_enable()
54 static void cpg_div6_clock_disable(struct clk_hw *hw) in cpg_div6_clock_disable()
72 static int cpg_div6_clock_is_enabled(struct clk_hw *hw) in cpg_div6_clock_is_enabled()
79 static unsigned long cpg_div6_clock_recalc_rate(struct clk_hw *hw, in cpg_div6_clock_recalc_rate()
100 static long cpg_div6_clock_round_rate(struct clk_hw *hw, unsigned long rate, in cpg_div6_clock_round_rate()
108 static int cpg_div6_clock_set_rate(struct clk_hw *hw, unsigned long rate, in cpg_div6_clock_set_rate()
125 static u8 cpg_div6_clock_get_parent(struct clk_hw *hw) in cpg_div6_clock_get_parent()
146 static int cpg_div6_clock_set_parent(struct clk_hw *hw, u8 index) in cpg_div6_clock_set_parent()
Dclk-mstp.c55 struct clk_hw hw;
62 static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable) in cpg_mstp_clock_endisable()
100 static int cpg_mstp_clock_enable(struct clk_hw *hw) in cpg_mstp_clock_enable()
105 static void cpg_mstp_clock_disable(struct clk_hw *hw) in cpg_mstp_clock_disable()
110 static int cpg_mstp_clock_is_enabled(struct clk_hw *hw) in cpg_mstp_clock_is_enabled()
Dclk-rcar-gen2.c50 struct clk_hw hw;
57 static unsigned long cpg_z_clk_recalc_rate(struct clk_hw *hw, in cpg_z_clk_recalc_rate()
71 static long cpg_z_clk_round_rate(struct clk_hw *hw, unsigned long rate, in cpg_z_clk_round_rate()
86 static int cpg_z_clk_set_rate(struct clk_hw *hw, unsigned long rate, in cpg_z_clk_set_rate()
/linux-4.4.14/drivers/clk/zte/
Dclk.c64 static unsigned long zx_pll_recalc_rate(struct clk_hw *hw, in zx_pll_recalc_rate()
77 static long zx_pll_round_rate(struct clk_hw *hw, unsigned long rate, in zx_pll_round_rate()
88 static int zx_pll_set_rate(struct clk_hw *hw, unsigned long rate, in zx_pll_set_rate()
105 static int zx_pll_enable(struct clk_hw *hw) in zx_pll_enable()
117 static void zx_pll_disable(struct clk_hw *hw) in zx_pll_disable()
126 static int zx_pll_is_enabled(struct clk_hw *hw) in zx_pll_is_enabled()
220 static unsigned long zx_audio_recalc_rate(struct clk_hw *hw, in zx_audio_recalc_rate()
230 static long zx_audio_round_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_round_rate()
242 static int zx_audio_set_rate(struct clk_hw *hw, unsigned long rate, in zx_audio_set_rate()
255 static int zx_audio_enable(struct clk_hw *hw) in zx_audio_enable()
[all …]
Dclk.h22 struct clk_hw hw;
34 struct clk_hw hw;
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_lvds_pll.c24 struct clk_hw pll_hw;
68 static int mpd4_lvds_pll_enable(struct clk_hw *hw) in mpd4_lvds_pll_enable()
94 static void mpd4_lvds_pll_disable(struct clk_hw *hw) in mpd4_lvds_pll_disable()
105 static unsigned long mpd4_lvds_pll_recalc_rate(struct clk_hw *hw, in mpd4_lvds_pll_recalc_rate()
112 static long mpd4_lvds_pll_round_rate(struct clk_hw *hw, unsigned long rate, in mpd4_lvds_pll_round_rate()
119 static int mpd4_lvds_pll_set_rate(struct clk_hw *hw, unsigned long rate, in mpd4_lvds_pll_set_rate()
/linux-4.4.14/drivers/clk/pistachio/
Dclk-pll.c75 struct clk_hw hw;
103 static inline struct pistachio_clk_pll *to_pistachio_pll(struct clk_hw *hw) in to_pistachio_pll()
108 static inline enum pll_mode pll_frac_get_mode(struct clk_hw *hw) in pll_frac_get_mode()
117 static inline void pll_frac_set_mode(struct clk_hw *hw, enum pll_mode mode) in pll_frac_set_mode()
145 static long pll_round_rate(struct clk_hw *hw, unsigned long rate, in pll_round_rate()
160 static int pll_gf40lp_frac_enable(struct clk_hw *hw) in pll_gf40lp_frac_enable()
179 static void pll_gf40lp_frac_disable(struct clk_hw *hw) in pll_gf40lp_frac_disable()
189 static int pll_gf40lp_frac_is_enabled(struct clk_hw *hw) in pll_gf40lp_frac_is_enabled()
196 static int pll_gf40lp_frac_set_rate(struct clk_hw *hw, unsigned long rate, in pll_gf40lp_frac_set_rate()
272 static unsigned long pll_gf40lp_frac_recalc_rate(struct clk_hw *hw, in pll_gf40lp_frac_recalc_rate()
[all …]
/linux-4.4.14/Documentation/
Dclk.txt33 Tying the two halves of this interface together is struct clk_hw, which
46 struct clk_hw *hw;
64 int (*prepare)(struct clk_hw *hw);
65 void (*unprepare)(struct clk_hw *hw);
66 int (*enable)(struct clk_hw *hw);
67 void (*disable)(struct clk_hw *hw);
68 int (*is_enabled)(struct clk_hw *hw);
69 unsigned long (*recalc_rate)(struct clk_hw *hw,
71 long (*round_rate)(struct clk_hw *hw,
74 int (*determine_rate)(struct clk_hw *hw,
[all …]
/linux-4.4.14/drivers/clk/pxa/
Dclk-pxa.h19 static struct clk_hw name ## _mux_hw; \
20 static struct clk_hw name ## _rate_hw; \
39 static struct clk_hw name ## _rate_hw; \
70 struct clk_hw hw;
98 static int dummy_clk_set_parent(struct clk_hw *hw, u8 index) in dummy_clk_set_parent()
Dclk-pxa27x.c148 static unsigned long clk_pxa27x_cpll_get_rate(struct clk_hw *hw, in clk_pxa27x_cpll_get_rate()
170 static unsigned long clk_pxa27x_lcd_base_get_rate(struct clk_hw *hw, in clk_pxa27x_lcd_base_get_rate()
193 static u8 clk_pxa27x_lcd_base_get_parent(struct clk_hw *hw) in clk_pxa27x_lcd_base_get_parent()
220 static unsigned long clk_pxa27x_core_get_rate(struct clk_hw *hw, in clk_pxa27x_core_get_rate()
241 static u8 clk_pxa27x_core_get_parent(struct clk_hw *hw) in clk_pxa27x_core_get_parent()
263 static unsigned long clk_pxa27x_run_get_rate(struct clk_hw *hw, in clk_pxa27x_run_get_rate()
283 static unsigned long clk_pxa27x_system_bus_get_rate(struct clk_hw *hw, in clk_pxa27x_system_bus_get_rate()
302 static u8 clk_pxa27x_system_bus_get_parent(struct clk_hw *hw) in clk_pxa27x_system_bus_get_parent()
317 static unsigned long clk_pxa27x_memory_get_rate(struct clk_hw *hw, in clk_pxa27x_memory_get_rate()
337 static u8 clk_pxa27x_memory_get_parent(struct clk_hw *hw) in clk_pxa27x_memory_get_parent()
Dclk-pxa3xx.c84 static unsigned long clk_pxa3xx_ac97_get_rate(struct clk_hw *hw, in clk_pxa3xx_ac97_get_rate()
103 static unsigned long clk_pxa3xx_smemc_get_rate(struct clk_hw *hw, in clk_pxa3xx_smemc_get_rate()
194 static unsigned long clk_pxa3xx_system_bus_get_rate(struct clk_hw *hw, in clk_pxa3xx_system_bus_get_rate()
205 static u8 clk_pxa3xx_system_bus_get_parent(struct clk_hw *hw) in clk_pxa3xx_system_bus_get_parent()
216 static unsigned long clk_pxa3xx_core_get_rate(struct clk_hw *hw, in clk_pxa3xx_core_get_rate()
222 static u8 clk_pxa3xx_core_get_parent(struct clk_hw *hw) in clk_pxa3xx_core_get_parent()
241 static unsigned long clk_pxa3xx_run_get_rate(struct clk_hw *hw, in clk_pxa3xx_run_get_rate()
257 static unsigned long clk_pxa3xx_cpll_get_rate(struct clk_hw *hw, in clk_pxa3xx_cpll_get_rate()
Dclk-pxa25x.c85 static unsigned long clk_pxa25x_memory_get_rate(struct clk_hw *hw, in clk_pxa25x_memory_get_rate()
143 static u8 clk_pxa25x_core_get_parent(struct clk_hw *hw) in clk_pxa25x_core_get_parent()
155 static unsigned long clk_pxa25x_core_get_rate(struct clk_hw *hw, in clk_pxa25x_core_get_rate()
163 static unsigned long clk_pxa25x_run_get_rate(struct clk_hw *hw, in clk_pxa25x_run_get_rate()
174 static unsigned long clk_pxa25x_cpll_get_rate(struct clk_hw *hw, in clk_pxa25x_cpll_get_rate()
Dclk-pxa.c30 struct clk_hw hw;
39 static unsigned long cken_recalc_rate(struct clk_hw *hw, in cken_recalc_rate()
57 static u8 cken_get_parent(struct clk_hw *hw) in cken_get_parent()
/linux-4.4.14/drivers/clk/zynq/
Dpll.c36 struct clk_hw hw;
63 static long zynq_pll_round_rate(struct clk_hw *hw, unsigned long rate, in zynq_pll_round_rate()
83 static unsigned long zynq_pll_recalc_rate(struct clk_hw *hw, in zynq_pll_recalc_rate()
107 static int zynq_pll_is_enabled(struct clk_hw *hw) in zynq_pll_is_enabled()
127 static int zynq_pll_enable(struct clk_hw *hw) in zynq_pll_enable()
157 static void zynq_pll_disable(struct clk_hw *hw) in zynq_pll_disable()
/linux-4.4.14/drivers/clk/berlin/
Dberlin2-avpll.c117 struct clk_hw hw;
124 static int berlin2_avpll_vco_is_enabled(struct clk_hw *hw) in berlin2_avpll_vco_is_enabled()
136 static int berlin2_avpll_vco_enable(struct clk_hw *hw) in berlin2_avpll_vco_enable()
151 static void berlin2_avpll_vco_disable(struct clk_hw *hw) in berlin2_avpll_vco_disable()
167 berlin2_avpll_vco_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in berlin2_avpll_vco_recalc_rate()
215 struct clk_hw hw;
223 static int berlin2_avpll_channel_is_enabled(struct clk_hw *hw) in berlin2_avpll_channel_is_enabled()
237 static int berlin2_avpll_channel_enable(struct clk_hw *hw) in berlin2_avpll_channel_enable()
249 static void berlin2_avpll_channel_disable(struct clk_hw *hw) in berlin2_avpll_channel_disable()
263 berlin2_avpll_channel_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in berlin2_avpll_channel_recalc_rate()
Dberlin2-div.c65 struct clk_hw hw;
75 static int berlin2_div_is_enabled(struct clk_hw *hw) in berlin2_div_is_enabled()
93 static int berlin2_div_enable(struct clk_hw *hw) in berlin2_div_enable()
112 static void berlin2_div_disable(struct clk_hw *hw) in berlin2_div_disable()
129 static int berlin2_div_set_parent(struct clk_hw *hw, u8 index) in berlin2_div_set_parent()
160 static u8 berlin2_div_get_parent(struct clk_hw *hw) in berlin2_div_get_parent()
186 static unsigned long berlin2_div_recalc_rate(struct clk_hw *hw, in berlin2_div_recalc_rate()
Dberlin2-pll.c31 struct clk_hw hw;
53 berlin2_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in berlin2_pll_recalc_rate()
/linux-4.4.14/drivers/clk/samsung/
Dclk-pll.c23 struct clk_hw hw;
47 static long samsung_pll_round_rate(struct clk_hw *hw, in samsung_pll_round_rate()
75 static unsigned long samsung_pll2126_recalc_rate(struct clk_hw *hw, in samsung_pll2126_recalc_rate()
108 static unsigned long samsung_pll3000_recalc_rate(struct clk_hw *hw, in samsung_pll3000_recalc_rate()
145 static unsigned long samsung_pll35xx_recalc_rate(struct clk_hw *hw, in samsung_pll35xx_recalc_rate()
174 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate()
248 static unsigned long samsung_pll36xx_recalc_rate(struct clk_hw *hw, in samsung_pll36xx_recalc_rate()
283 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate()
362 static unsigned long samsung_pll45xx_recalc_rate(struct clk_hw *hw, in samsung_pll45xx_recalc_rate()
396 static int samsung_pll45xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll45xx_set_rate()
[all …]
Dclk-cpu.c100 static long exynos_cpuclk_round_rate(struct clk_hw *hw, in exynos_cpuclk_round_rate()
103 struct clk_hw *parent = clk_hw_get_parent(hw); in exynos_cpuclk_round_rate()
109 static unsigned long exynos_cpuclk_recalc_rate(struct clk_hw *hw, in exynos_cpuclk_recalc_rate()
Dclk-cpu.h51 struct clk_hw hw;
Dclk-s3c2410-dclk.c54 struct clk_hw hw;
61 static u8 s3c24xx_clkout_get_parent(struct clk_hw *hw) in s3c24xx_clkout_get_parent()
77 static int s3c24xx_clkout_set_parent(struct clk_hw *hw, u8 index) in s3c24xx_clkout_set_parent()
/linux-4.4.14/drivers/clk/versatile/
Dclk-vexpress-osc.c24 struct clk_hw hw;
31 static unsigned long vexpress_osc_recalc_rate(struct clk_hw *hw, in vexpress_osc_recalc_rate()
42 static long vexpress_osc_round_rate(struct clk_hw *hw, unsigned long rate, in vexpress_osc_round_rate()
56 static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate, in vexpress_osc_set_rate()
Dclk-icst.c34 struct clk_hw hw;
82 static unsigned long icst_recalc_rate(struct clk_hw *hw, in icst_recalc_rate()
95 static long icst_round_rate(struct clk_hw *hw, unsigned long rate, in icst_round_rate()
105 static int icst_set_rate(struct clk_hw *hw, unsigned long rate, in icst_set_rate()
Dclk-sp810.c28 struct clk_hw hw;
41 static u8 clk_sp810_timerclken_get_parent(struct clk_hw *hw) in clk_sp810_timerclken_get_parent()
49 static int clk_sp810_timerclken_set_parent(struct clk_hw *hw, u8 index) in clk_sp810_timerclken_set_parent()
/linux-4.4.14/include/linux/clk/
Dti.h138 struct clk_hw hw;
240 void omap2_init_clk_clkdm(struct clk_hw *clk);
245 unsigned long omap2_dpllcore_recalc(struct clk_hw *hw,
247 int omap2_reprogram_dpllcore(struct clk_hw *clk, unsigned long rate,
249 void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw);
/linux-4.4.14/drivers/clk/hisilicon/
Dclkgate-separated.c39 struct clk_hw hw;
46 static int clkgate_separated_enable(struct clk_hw *hw) in clkgate_separated_enable()
63 static void clkgate_separated_disable(struct clk_hw *hw) in clkgate_separated_disable()
79 static int clkgate_separated_is_enabled(struct clk_hw *hw) in clkgate_separated_is_enabled()
Dclkdivider-hi6220.c35 struct clk_hw hw;
47 static unsigned long hi6220_clkdiv_recalc_rate(struct clk_hw *hw, in hi6220_clkdiv_recalc_rate()
60 static long hi6220_clkdiv_round_rate(struct clk_hw *hw, unsigned long rate, in hi6220_clkdiv_round_rate()
69 static int hi6220_clkdiv_set_rate(struct clk_hw *hw, unsigned long rate, in hi6220_clkdiv_set_rate()
Dclk-hi6220-stub.c51 struct clk_hw hw;
120 static unsigned long hi6220_stub_clk_recalc_rate(struct clk_hw *hw, in hi6220_stub_clk_recalc_rate()
143 static int hi6220_stub_clk_set_rate(struct clk_hw *hw, unsigned long rate, in hi6220_stub_clk_set_rate()
168 static long hi6220_stub_clk_round_rate(struct clk_hw *hw, unsigned long rate, in hi6220_stub_clk_round_rate()
Dclk-hix5hd2.c149 struct clk_hw hw;
172 static int clk_ether_prepare(struct clk_hw *hw) in clk_ether_prepare()
201 static void clk_ether_unprepare(struct clk_hw *hw) in clk_ether_unprepare()
216 static int clk_complex_enable(struct clk_hw *hw) in clk_complex_enable()
234 static void clk_complex_disable(struct clk_hw *hw) in clk_complex_disable()
Dclk-hi3620.c252 struct clk_hw hw;
276 static unsigned long mmc_clk_recalc_rate(struct clk_hw *hw, in mmc_clk_recalc_rate()
295 static int mmc_clk_determine_rate(struct clk_hw *hw, in mmc_clk_determine_rate()
335 static int mmc_clk_set_timing(struct clk_hw *hw, unsigned long rate) in mmc_clk_set_timing()
399 static int mmc_clk_prepare(struct clk_hw *hw) in mmc_clk_prepare()
412 static int mmc_clk_set_rate(struct clk_hw *hw, unsigned long rate, in mmc_clk_set_rate()
/linux-4.4.14/drivers/clk/nxp/
Dclk-lpc18xx-ccu.c138 static int lpc18xx_ccu_gate_endisable(struct clk_hw *hw, bool enable) in lpc18xx_ccu_gate_endisable()
170 static int lpc18xx_ccu_gate_enable(struct clk_hw *hw) in lpc18xx_ccu_gate_enable()
175 static void lpc18xx_ccu_gate_disable(struct clk_hw *hw) in lpc18xx_ccu_gate_disable()
180 static int lpc18xx_ccu_gate_is_enabled(struct clk_hw *hw) in lpc18xx_ccu_gate_is_enabled()
182 const struct clk_hw *parent; in lpc18xx_ccu_gate_is_enabled()
212 struct clk_hw *div_hw = NULL; in lpc18xx_ccu_register_branch_gate_div()
Dclk-lpc18xx-cgu.c253 struct clk_hw hw;
349 static unsigned long lpc18xx_pll0_recalc_rate(struct clk_hw *hw, in lpc18xx_pll0_recalc_rate()
376 static long lpc18xx_pll0_round_rate(struct clk_hw *hw, unsigned long rate, in lpc18xx_pll0_round_rate()
395 static int lpc18xx_pll0_set_rate(struct clk_hw *hw, unsigned long rate, in lpc18xx_pll0_set_rate()
453 static unsigned long lpc18xx_pll1_recalc_rate(struct clk_hw *hw, in lpc18xx_pll1_recalc_rate()
483 static int lpc18xx_cgu_gate_enable(struct clk_hw *hw) in lpc18xx_cgu_gate_enable()
488 static void lpc18xx_cgu_gate_disable(struct clk_hw *hw) in lpc18xx_cgu_gate_disable()
493 static int lpc18xx_cgu_gate_is_enabled(struct clk_hw *hw) in lpc18xx_cgu_gate_is_enabled()
495 const struct clk_hw *parent; in lpc18xx_cgu_gate_is_enabled()
/linux-4.4.14/drivers/clk/mvebu/
Dclk-cpu.c36 struct clk_hw hw;
50 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hwclk, in clk_cpu_recalc_rate()
61 static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_round_rate()
76 static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_off_set_rate()
110 static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_on_set_rate()
153 static int clk_cpu_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_set_rate()
Dclk-corediv.c56 struct clk_hw hw;
76 static int clk_corediv_is_enabled(struct clk_hw *hwclk) in clk_corediv_is_enabled()
86 static int clk_corediv_enable(struct clk_hw *hwclk) in clk_corediv_enable()
105 static void clk_corediv_disable(struct clk_hw *hwclk) in clk_corediv_disable()
122 static unsigned long clk_corediv_recalc_rate(struct clk_hw *hwclk, in clk_corediv_recalc_rate()
135 static long clk_corediv_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_round_rate()
150 static int clk_corediv_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_set_rate()
/linux-4.4.14/drivers/clk/rockchip/
Dclk-mmc-phase.c24 struct clk_hw hw;
34 static unsigned long rockchip_mmc_recalc(struct clk_hw *hw, in rockchip_mmc_recalc()
55 static int rockchip_mmc_get_phase(struct clk_hw *hw) in rockchip_mmc_get_phase()
80 static int rockchip_mmc_set_phase(struct clk_hw *hw, int degrees) in rockchip_mmc_set_phase()
Dclk-pll.c30 struct clk_hw hw;
65 static long rockchip_pll_round_rate(struct clk_hw *hw, in rockchip_pll_round_rate()
149 static unsigned long rockchip_rk3066_pll_recalc_rate(struct clk_hw *hw, in rockchip_rk3066_pll_recalc_rate()
232 static int rockchip_rk3066_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3066_pll_set_rate()
260 static int rockchip_rk3066_pll_enable(struct clk_hw *hw) in rockchip_rk3066_pll_enable()
270 static void rockchip_rk3066_pll_disable(struct clk_hw *hw) in rockchip_rk3066_pll_disable()
279 static int rockchip_rk3066_pll_is_enabled(struct clk_hw *hw) in rockchip_rk3066_pll_is_enabled()
287 static void rockchip_rk3066_pll_init(struct clk_hw *hw) in rockchip_rk3066_pll_init()
Dclk-inverter.c23 struct clk_hw hw;
34 static int rockchip_inv_get_phase(struct clk_hw *hw) in rockchip_inv_get_phase()
44 static int rockchip_inv_set_phase(struct clk_hw *hw, int degrees) in rockchip_inv_set_phase()
Dclk-cpu.c56 struct clk_hw hw;
89 static unsigned long rockchip_cpuclk_recalc_rate(struct clk_hw *hw, in rockchip_cpuclk_recalc_rate()
/linux-4.4.14/drivers/clk/h8300/
Dclk-h8s2678.c19 struct clk_hw hw;
26 static unsigned long pll_recalc_rate(struct clk_hw *hw, in pll_recalc_rate()
35 static long pll_round_rate(struct clk_hw *hw, unsigned long rate, in pll_round_rate()
57 static int pll_set_rate(struct clk_hw *hw, unsigned long rate, in pll_set_rate()
/linux-4.4.14/drivers/clk/bcm/
Dclk-bcm2835.c811 struct clk_hw hw;
816 static int bcm2835_pll_is_on(struct clk_hw *hw) in bcm2835_pll_is_on()
852 static long bcm2835_pll_round_rate(struct clk_hw *hw, unsigned long rate, in bcm2835_pll_round_rate()
862 static unsigned long bcm2835_pll_get_rate(struct clk_hw *hw, in bcm2835_pll_get_rate()
887 static void bcm2835_pll_off(struct clk_hw *hw) in bcm2835_pll_off()
903 static int bcm2835_pll_on(struct clk_hw *hw) in bcm2835_pll_on()
950 static int bcm2835_pll_set_rate(struct clk_hw *hw, in bcm2835_pll_set_rate()
1039 bcm2835_pll_divider_from_hw(struct clk_hw *hw) in bcm2835_pll_divider_from_hw()
1044 static int bcm2835_pll_divider_is_on(struct clk_hw *hw) in bcm2835_pll_divider_is_on()
1053 static long bcm2835_pll_divider_round_rate(struct clk_hw *hw, in bcm2835_pll_divider_round_rate()
[all …]
Dclk-iproc-asiu.c28 struct clk_hw hw;
46 static int iproc_asiu_clk_enable(struct clk_hw *hw) in iproc_asiu_clk_enable()
63 static void iproc_asiu_clk_disable(struct clk_hw *hw) in iproc_asiu_clk_disable()
78 static unsigned long iproc_asiu_clk_recalc_rate(struct clk_hw *hw, in iproc_asiu_clk_recalc_rate()
111 static long iproc_asiu_clk_round_rate(struct clk_hw *hw, unsigned long rate, in iproc_asiu_clk_round_rate()
129 static int iproc_asiu_clk_set_rate(struct clk_hw *hw, unsigned long rate, in iproc_asiu_clk_set_rate()
Dclk-iproc-pll.c69 struct clk_hw hw;
342 static int iproc_pll_enable(struct clk_hw *hw) in iproc_pll_enable()
350 static void iproc_pll_disable(struct clk_hw *hw) in iproc_pll_disable()
362 static unsigned long iproc_pll_recalc_rate(struct clk_hw *hw, in iproc_pll_recalc_rate()
412 static long iproc_pll_round_rate(struct clk_hw *hw, unsigned long rate, in iproc_pll_round_rate()
433 static int iproc_pll_set_rate(struct clk_hw *hw, unsigned long rate, in iproc_pll_set_rate()
456 static int iproc_clk_enable(struct clk_hw *hw) in iproc_clk_enable()
476 static void iproc_clk_disable(struct clk_hw *hw) in iproc_clk_disable()
491 static unsigned long iproc_clk_recalc_rate(struct clk_hw *hw, in iproc_clk_recalc_rate()
513 static long iproc_clk_round_rate(struct clk_hw *hw, unsigned long rate, in iproc_clk_round_rate()
[all …]
Dclk-kona.c973 static int kona_peri_clk_enable(struct clk_hw *hw) in kona_peri_clk_enable()
981 static void kona_peri_clk_disable(struct clk_hw *hw) in kona_peri_clk_disable()
989 static int kona_peri_clk_is_enabled(struct clk_hw *hw) in kona_peri_clk_is_enabled()
997 static unsigned long kona_peri_clk_recalc_rate(struct clk_hw *hw, in kona_peri_clk_recalc_rate()
1007 static long kona_peri_clk_round_rate(struct clk_hw *hw, unsigned long rate, in kona_peri_clk_round_rate()
1021 static int kona_peri_clk_determine_rate(struct clk_hw *hw, in kona_peri_clk_determine_rate()
1025 struct clk_hw *current_parent; in kona_peri_clk_determine_rate()
1057 struct clk_hw *parent = clk_hw_get_parent_by_index(hw, which); in kona_peri_clk_determine_rate()
1082 static int kona_peri_clk_set_parent(struct clk_hw *hw, u8 index) in kona_peri_clk_set_parent()
1117 static u8 kona_peri_clk_get_parent(struct clk_hw *hw) in kona_peri_clk_get_parent()
[all …]
Dclk-iproc-armpll.c67 struct clk_hw hw;
193 static unsigned long iproc_arm_pll_recalc_rate(struct clk_hw *hw, in iproc_arm_pll_recalc_rate()
/linux-4.4.14/drivers/clk/mmp/
Dclk-mix.c116 struct clk_hw *parent, *hw; in _filter_clk_table()
204 static int mmp_clk_mix_determine_rate(struct clk_hw *hw, in mmp_clk_mix_determine_rate()
209 struct clk_hw *parent, *parent_best; in mmp_clk_mix_determine_rate()
273 static int mmp_clk_mix_set_rate_and_parent(struct clk_hw *hw, in mmp_clk_mix_set_rate_and_parent()
289 static u8 mmp_clk_mix_get_parent(struct clk_hw *hw) in mmp_clk_mix_get_parent()
318 static unsigned long mmp_clk_mix_recalc_rate(struct clk_hw *hw, in mmp_clk_mix_recalc_rate()
348 static int mmp_clk_set_parent(struct clk_hw *hw, u8 index) in mmp_clk_set_parent()
376 static int mmp_clk_set_rate(struct clk_hw *hw, unsigned long rate, in mmp_clk_set_rate()
383 struct clk_hw *parent; in mmp_clk_set_rate()
422 static void mmp_clk_mix_init(struct clk_hw *hw) in mmp_clk_mix_init()
Dclk-apmu.c22 struct clk_hw hw;
29 static int clk_apmu_enable(struct clk_hw *hw) in clk_apmu_enable()
47 static void clk_apmu_disable(struct clk_hw *hw) in clk_apmu_disable()
Dclk-gate.c27 static int mmp_clk_gate_enable(struct clk_hw *hw) in mmp_clk_gate_enable()
54 static void mmp_clk_gate_disable(struct clk_hw *hw) in mmp_clk_gate_disable()
72 static int mmp_clk_gate_is_enabled(struct clk_hw *hw) in mmp_clk_gate_is_enabled()
Dclk-frac.c27 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_round_rate()
51 static unsigned long clk_factor_recalc_rate(struct clk_hw *hw, in clk_factor_recalc_rate()
74 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_set_rate()
113 static void clk_factor_init(struct clk_hw *hw) in clk_factor_init()
Dclk-apbc.c28 struct clk_hw hw;
35 static int clk_apbc_prepare(struct clk_hw *hw) in clk_apbc_prepare()
86 static void clk_apbc_unprepare(struct clk_hw *hw) in clk_apbc_unprepare()
Dclk.h26 struct clk_hw hw;
84 struct clk_hw hw;
110 struct clk_hw hw;
/linux-4.4.14/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8960.c29 struct clk_hw pll_hw;
252 static int hdmi_pll_enable(struct clk_hw *hw) in hdmi_pll_enable()
337 static void hdmi_pll_disable(struct clk_hw *hw) in hdmi_pll_disable()
366 static unsigned long hdmi_pll_recalc_rate(struct clk_hw *hw, in hdmi_pll_recalc_rate()
373 static long hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate, in hdmi_pll_round_rate()
380 static int hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate, in hdmi_pll_set_rate()
/linux-4.4.14/drivers/rtc/
Drtc-hym8563.c91 struct clk_hw clkout_hw;
305 static unsigned long hym8563_clkout_recalc_rate(struct clk_hw *hw, in hym8563_clkout_recalc_rate()
319 static long hym8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate, in hym8563_clkout_round_rate()
331 static int hym8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate, in hym8563_clkout_set_rate()
353 static int hym8563_clkout_control(struct clk_hw *hw, bool enable) in hym8563_clkout_control()
370 static int hym8563_clkout_prepare(struct clk_hw *hw) in hym8563_clkout_prepare()
375 static void hym8563_clkout_unprepare(struct clk_hw *hw) in hym8563_clkout_unprepare()
380 static int hym8563_clkout_is_prepared(struct clk_hw *hw) in hym8563_clkout_is_prepared()
Drtc-pcf8563.c88 struct clk_hw clkout_hw;
418 static unsigned long pcf8563_clkout_recalc_rate(struct clk_hw *hw, in pcf8563_clkout_recalc_rate()
433 static long pcf8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate, in pcf8563_clkout_round_rate()
445 static int pcf8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate, in pcf8563_clkout_set_rate()
470 static int pcf8563_clkout_control(struct clk_hw *hw, bool enable) in pcf8563_clkout_control()
489 static int pcf8563_clkout_prepare(struct clk_hw *hw) in pcf8563_clkout_prepare()
494 static void pcf8563_clkout_unprepare(struct clk_hw *hw) in pcf8563_clkout_unprepare()
499 static int pcf8563_clkout_is_prepared(struct clk_hw *hw) in pcf8563_clkout_is_prepared()
/linux-4.4.14/drivers/clk/ingenic/
Dcgu.c78 ingenic_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in ingenic_pll_recalc_rate()
156 ingenic_pll_round_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_pll_round_rate()
170 ingenic_pll_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_pll_set_rate()
235 static u8 ingenic_clk_get_parent(struct clk_hw *hw) in ingenic_clk_get_parent()
263 static int ingenic_clk_set_parent(struct clk_hw *hw, u8 idx) in ingenic_clk_set_parent()
313 ingenic_clk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in ingenic_clk_recalc_rate()
352 ingenic_clk_round_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_clk_round_rate()
371 ingenic_clk_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_clk_set_rate()
430 static int ingenic_clk_enable(struct clk_hw *hw) in ingenic_clk_enable()
449 static void ingenic_clk_disable(struct clk_hw *hw) in ingenic_clk_disable()
[all …]
Djz4780-cgu.c100 static u8 jz4780_otg_phy_get_parent(struct clk_hw *hw) in jz4780_otg_phy_get_parent()
106 static int jz4780_otg_phy_set_parent(struct clk_hw *hw, u8 idx) in jz4780_otg_phy_set_parent()
126 static unsigned long jz4780_otg_phy_recalc_rate(struct clk_hw *hw, in jz4780_otg_phy_recalc_rate()
153 static long jz4780_otg_phy_round_rate(struct clk_hw *hw, unsigned long req_rate, in jz4780_otg_phy_round_rate()
168 static int jz4780_otg_phy_set_rate(struct clk_hw *hw, unsigned long req_rate, in jz4780_otg_phy_set_rate()
Dcgu.h192 struct clk_hw hw;
/linux-4.4.14/drivers/clk/keystone/
Dgate.c66 struct clk_hw hw;
108 static int keystone_clk_is_enabled(struct clk_hw *hw) in keystone_clk_is_enabled()
117 static int keystone_clk_enable(struct clk_hw *hw) in keystone_clk_enable()
135 static void keystone_clk_disable(struct clk_hw *hw) in keystone_clk_disable()
Dpll.c73 struct clk_hw hw;
79 static unsigned long clk_pllclk_recalc(struct clk_hw *hw, in clk_pllclk_recalc()
/linux-4.4.14/drivers/clk/meson/
Dclk-cpu.c57 struct clk_hw hw;
64 static long meson_clk_cpu_round_rate(struct clk_hw *hw, unsigned long rate, in meson_clk_cpu_round_rate()
73 static int meson_clk_cpu_set_rate(struct clk_hw *hw, unsigned long rate, in meson_clk_cpu_set_rate()
100 static unsigned long meson_clk_cpu_recalc_rate(struct clk_hw *hw, in meson_clk_cpu_recalc_rate()
Dclk-pll.c48 struct clk_hw hw;
56 static unsigned long meson_clk_pll_recalc_rate(struct clk_hw *hw, in meson_clk_pll_recalc_rate()
83 static long meson_clk_pll_round_rate(struct clk_hw *hw, unsigned long rate, in meson_clk_pll_round_rate()
128 static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, in meson_clk_pll_set_rate()
/linux-4.4.14/drivers/clk/socfpga/
Dclk-gate.c39 static u8 socfpga_clk_get_parent(struct clk_hw *hwclk) in socfpga_clk_get_parent()
65 static int socfpga_clk_set_parent(struct clk_hw *hwclk, u8 parent) in socfpga_clk_set_parent()
98 static unsigned long socfpga_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_clk_recalc_rate()
119 static int socfpga_clk_prepare(struct clk_hw *hwclk) in socfpga_clk_prepare()
Dclk-periph.c27 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate()
47 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent()
Dclk-pll.c48 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate()
68 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent()
Dclk-pll-a10.c45 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate()
61 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent()
Dclk-periph-a10.c31 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate()
50 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent()
Dclk-gate-a10.c32 static unsigned long socfpga_gate_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_gate_clk_recalc_rate()
49 static int socfpga_clk_prepare(struct clk_hw *hwclk) in socfpga_clk_prepare()
/linux-4.4.14/arch/arm/mach-vexpress/
Dspc.c493 struct clk_hw hw;
498 static unsigned long spc_recalc_rate(struct clk_hw *hw, in spc_recalc_rate()
510 static long spc_round_rate(struct clk_hw *hw, unsigned long drate, in spc_round_rate()
518 static int spc_set_rate(struct clk_hw *hw, unsigned long rate, in spc_set_rate()
/linux-4.4.14/drivers/gpu/drm/imx/
Dimx-tve.c121 struct clk_hw clk_hw_di;
402 static unsigned long clk_tve_di_recalc_rate(struct clk_hw *hw, in clk_tve_di_recalc_rate()
426 static long clk_tve_di_round_rate(struct clk_hw *hw, unsigned long rate, in clk_tve_di_round_rate()
439 static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate, in clk_tve_di_set_rate()

12