Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Dclk-provider.h35 struct clk_hw;
166 int (*prepare)(struct clk_hw *hw);
167 void (*unprepare)(struct clk_hw *hw);
168 int (*is_prepared)(struct clk_hw *hw);
169 void (*unprepare_unused)(struct clk_hw *hw);
170 int (*enable)(struct clk_hw *hw);
171 void (*disable)(struct clk_hw *hw);
172 int (*is_enabled)(struct clk_hw *hw);
173 void (*disable_unused)(struct clk_hw *hw);
174 unsigned long (*recalc_rate)(struct clk_hw *hw,
[all …]
/linux-4.1.27/include/linux/clk/
Dti.h138 struct clk_hw hw;
228 typedef void (*ti_of_clk_init_cb_t)(struct clk_hw *, struct device_node *);
263 int omap3_noncore_dpll_enable(struct clk_hw *hw);
264 void omap3_noncore_dpll_disable(struct clk_hw *hw);
265 int omap3_noncore_dpll_set_parent(struct clk_hw *hw, u8 index);
266 int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
268 int omap3_noncore_dpll_set_rate_and_parent(struct clk_hw *hw,
272 long omap3_noncore_dpll_determine_rate(struct clk_hw *hw,
277 struct clk_hw **best_parent_clk);
278 unsigned long omap4_dpll_regm4xen_recalc(struct clk_hw *hw,
[all …]
/linux-4.1.27/drivers/clk/ti/
Dapll.c37 static int dra7_apll_enable(struct clk_hw *hw) in dra7_apll_enable()
88 static void dra7_apll_disable(struct clk_hw *hw) in dra7_apll_disable()
105 static int dra7_apll_is_enabled(struct clk_hw *hw) in dra7_apll_is_enabled()
121 static u8 dra7_init_apll_parent(struct clk_hw *hw) in dra7_init_apll_parent()
133 static void __init omap_clk_register_apll(struct clk_hw *hw, in omap_clk_register_apll()
136 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local
137 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll()
152 clk = clk_register(NULL, &clk_hw->hw); in omap_clk_register_apll()
155 kfree(clk_hw->hw.init->parent_names); in omap_clk_register_apll()
156 kfree(clk_hw->hw.init); in omap_clk_register_apll()
[all …]
Ddpll.c142 static void __init _register_dpll(struct clk_hw *hw, in _register_dpll()
145 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in _register_dpll() local
146 struct dpll_data *dd = clk_hw->dpll_data; in _register_dpll()
162 clk = clk_register(NULL, &clk_hw->hw); in _register_dpll()
167 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
168 kfree(clk_hw->hw.init); in _register_dpll()
173 kfree(clk_hw->dpll_data); in _register_dpll()
174 kfree(clk_hw->hw.init->parent_names); in _register_dpll()
175 kfree(clk_hw->hw.init); in _register_dpll()
176 kfree(clk_hw); 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()
Dclk-dra7-atl.c44 struct clk_hw hw;
76 static int atl_clk_enable(struct clk_hw *hw) in atl_clk_enable()
98 static void atl_clk_disable(struct clk_hw *hw) in atl_clk_disable()
112 static int atl_clk_is_enabled(struct clk_hw *hw) in atl_clk_is_enabled()
119 static unsigned long atl_clk_recalc_rate(struct clk_hw *hw, in atl_clk_recalc_rate()
127 static long atl_clk_round_rate(struct clk_hw *hw, unsigned long rate, in atl_clk_round_rate()
139 static int atl_clk_set_rate(struct clk_hw *hw, unsigned long rate, in atl_clk_set_rate()
169 struct dra7_atl_desc *clk_hw = NULL; in of_dra7_atl_clock_setup() local
174 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_atl_clock_setup()
175 if (!clk_hw) { in of_dra7_atl_clock_setup()
[all …]
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 *clk) 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 …]
Dclockdomain.c30 struct clk_hw *clk_hw; in of_ti_clockdomain_setup() local
49 clk_hw = __clk_get_hw(clk); in of_ti_clockdomain_setup()
50 to_clk_hw_omap(clk_hw)->clkdm_name = clkdm_name; in of_ti_clockdomain_setup()
51 omap2_init_clk_clkdm(clk_hw); in of_ti_clockdomain_setup()
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.c65 struct clk_hw hw;
75 struct clk_hw hw;
136 static int ti_fapll_enable(struct clk_hw *hw) in ti_fapll_enable()
148 static void ti_fapll_disable(struct clk_hw *hw) in ti_fapll_disable()
157 static int ti_fapll_is_enabled(struct clk_hw *hw) in ti_fapll_is_enabled()
165 static unsigned long ti_fapll_recalc_rate(struct clk_hw *hw, in ti_fapll_recalc_rate()
189 static u8 ti_fapll_get_parent(struct clk_hw *hw) in ti_fapll_get_parent()
222 static long ti_fapll_round_rate(struct clk_hw *hw, unsigned long rate, in ti_fapll_round_rate()
242 static int ti_fapll_set_rate(struct clk_hw *hw, unsigned long rate, in ti_fapll_set_rate()
280 static int ti_fapll_synth_enable(struct clk_hw *hw) in ti_fapll_synth_enable()
[all …]
Dclk.c66 struct clk_hw *hw;
82 int __init ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, in ti_clk_retry_init()
204 struct clk_hw *clk_hw; in ti_clk_register_clk() local
251 clk_hw = __clk_get_hw(clk); in ti_clk_register_clk()
252 to_clk_hw_omap(clk_hw)->clkdm_name = in ti_clk_register_clk()
254 omap2_init_clk_clkdm(clk_hw); in ti_clk_register_clk()
Dclock.h164 struct clk_hw *ti_clk_build_component_div(struct ti_clk_divider *setup);
165 struct clk_hw *ti_clk_build_component_gate(struct ti_clk_gate *setup);
166 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup);
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()
243 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()
362 struct clk_hw *ti_clk_build_component_div(struct ti_clk_divider *setup) in ti_clk_build_component_div()
/linux-4.1.27/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 long clk_composite_determine_rate(struct clk_hw *hw, unsigned long rate, in clk_composite_determine_rate()
62 struct clk_hw **best_parent_p) in clk_composite_determine_rate()
67 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_determine_rate()
68 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_determine_rate()
[all …]
Dclk-wm831x.c25 struct clk_hw xtal_hw;
26 struct clk_hw fll_hw;
27 struct clk_hw clkout_hw;
34 static int wm831x_xtal_is_prepared(struct clk_hw *hw) in wm831x_xtal_is_prepared()
42 static unsigned long wm831x_xtal_recalc_rate(struct clk_hw *hw, in wm831x_xtal_recalc_rate()
76 static int wm831x_fll_is_prepared(struct clk_hw *hw) in wm831x_fll_is_prepared()
93 static int wm831x_fll_prepare(struct clk_hw *hw) in wm831x_fll_prepare()
110 static void wm831x_fll_unprepare(struct clk_hw *hw) in wm831x_fll_unprepare()
122 static unsigned long wm831x_fll_recalc_rate(struct clk_hw *hw, in wm831x_fll_recalc_rate()
145 static long wm831x_fll_round_rate(struct clk_hw *hw, unsigned long rate, in wm831x_fll_round_rate()
[all …]
Dclk-axi-clkgen.c68 struct clk_hw clk_hw; member
353 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument
355 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen()
358 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument
361 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate()
408 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate()
421 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument
424 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate()
448 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument
450 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.c49 struct clk_hw hw;
55 static int clk_pll_prepare(struct clk_hw *hwclk) in clk_pll_prepare()
72 static void clk_pll_unprepare(struct clk_hw *hwclk) in clk_pll_unprepare()
82 static int clk_pll_enable(struct clk_hw *hwclk) in clk_pll_enable()
94 static void clk_pll_disable(struct clk_hw *hwclk) in clk_pll_disable()
104 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate()
145 static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_round_rate()
156 static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_set_rate()
204 static unsigned long clk_cpu_periphclk_recalc_rate(struct clk_hw *hwclk, in clk_cpu_periphclk_recalc_rate()
216 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.c31 struct clk_hw clkout1_hw;
32 struct clk_hw clkout2_hw;
35 static unsigned long rk808_clkout_recalc_rate(struct clk_hw *hw, in rk808_clkout_recalc_rate()
41 static int rk808_clkout2_enable(struct clk_hw *hw, bool enable) in rk808_clkout2_enable()
52 static int rk808_clkout2_prepare(struct clk_hw *hw) in rk808_clkout2_prepare()
57 static void rk808_clkout2_unprepare(struct clk_hw *hw) in rk808_clkout2_unprepare()
62 static int rk808_clkout2_is_prepared(struct clk_hw *hw) in rk808_clkout2_is_prepared()
Dclk-max-gen.c38 struct clk_hw hw;
41 static struct max_gen_clk *to_max_gen_clk(struct clk_hw *hw) in to_max_gen_clk()
46 static int max_gen_clk_prepare(struct clk_hw *hw) in max_gen_clk_prepare()
54 static void max_gen_clk_unprepare(struct clk_hw *hw) in max_gen_clk_unprepare()
62 static int max_gen_clk_is_prepared(struct clk_hw *hw) in max_gen_clk_is_prepared()
76 static unsigned long max_gen_recalc_rate(struct clk_hw *hw, in max_gen_recalc_rate()
94 struct clk_hw *hw = &max_gen->hw; in max_gen_clk_register()
Dclk-cdce706.c74 struct clk_hw hw;
147 static int cdce706_clkin_set_parent(struct clk_hw *hw, u8 index) in cdce706_clkin_set_parent()
155 static u8 cdce706_clkin_get_parent(struct clk_hw *hw) in cdce706_clkin_get_parent()
167 static unsigned long cdce706_pll_recalc_rate(struct clk_hw *hw, in cdce706_pll_recalc_rate()
190 static long cdce706_pll_round_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_round_rate()
216 static int cdce706_pll_set_rate(struct clk_hw *hw, unsigned long rate, in cdce706_pll_set_rate()
262 static int cdce706_divider_set_parent(struct clk_hw *hw, u8 index) in cdce706_divider_set_parent()
275 static u8 cdce706_divider_get_parent(struct clk_hw *hw) in cdce706_divider_get_parent()
282 static unsigned long cdce706_divider_recalc_rate(struct clk_hw *hw, in cdce706_divider_recalc_rate()
295 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-gate.c44 static void clk_gate_endisable(struct clk_hw *hw, int enable) in clk_gate_endisable()
75 static int clk_gate_enable(struct clk_hw *hw) in clk_gate_enable()
82 static void clk_gate_disable(struct clk_hw *hw) in clk_gate_disable()
87 static int clk_gate_is_enabled(struct clk_hw *hw) in clk_gate_is_enabled()
169 struct clk_hw *hw; in clk_unregister_gate()
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.c33 struct clk_hw mcpdm_fclk;
38 static int twl6040_bitclk_is_enabled(struct clk_hw *hw) in twl6040_bitclk_is_enabled()
45 static int twl6040_bitclk_prepare(struct clk_hw *hw) in twl6040_bitclk_prepare()
58 static void twl6040_bitclk_unprepare(struct clk_hw *hw) in twl6040_bitclk_unprepare()
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 …]
Dclk-u300.c434 struct clk_hw hw;
486 static int syscon_clk_prepare(struct clk_hw *hw) in syscon_clk_prepare()
496 static void syscon_clk_unprepare(struct clk_hw *hw) in syscon_clk_unprepare()
508 static int syscon_clk_enable(struct clk_hw *hw) in syscon_clk_enable()
523 static void syscon_clk_disable(struct clk_hw *hw) in syscon_clk_disable()
539 static int syscon_clk_is_enabled(struct clk_hw *hw) in syscon_clk_is_enabled()
564 syscon_clk_recalc_rate(struct clk_hw *hw, in syscon_clk_recalc_rate()
632 syscon_clk_round_rate(struct clk_hw *hw, unsigned long rate, in syscon_clk_round_rate()
649 static int syscon_clk_set_rate(struct clk_hw *hw, unsigned long rate, in syscon_clk_set_rate()
944 struct clk_hw hw;
[all …]
Dclk-nomadik.c144 struct clk_hw hw;
156 struct clk_hw hw;
165 static int pll_clk_enable(struct clk_hw *hw) in pll_clk_enable()
185 static void pll_clk_disable(struct clk_hw *hw) in pll_clk_disable()
204 static int pll_clk_is_enabled(struct clk_hw *hw) in pll_clk_is_enabled()
219 static unsigned long pll_clk_recalc_rate(struct clk_hw *hw, in pll_clk_recalc_rate()
301 static int src_clk_enable(struct clk_hw *hw) in src_clk_enable()
314 static void src_clk_disable(struct clk_hw *hw) in src_clk_disable()
326 static int src_clk_is_enabled(struct clk_hw *hw) in src_clk_is_enabled()
336 src_clk_recalc_rate(struct clk_hw *hw, in src_clk_recalc_rate()
Dclk-palmas.c46 struct clk_hw hw;
52 static inline struct palmas_clock_info *to_palmas_clks_info(struct clk_hw *hw) in to_palmas_clks_info()
57 static unsigned long palmas_clks_recalc_rate(struct clk_hw *hw, in palmas_clks_recalc_rate()
63 static int palmas_clks_prepare(struct clk_hw *hw) in palmas_clks_prepare()
81 static void palmas_clks_unprepare(struct clk_hw *hw) in palmas_clks_unprepare()
101 static int palmas_clks_is_prepared(struct clk_hw *hw) in palmas_clks_is_prepared()
Dclk-xgene.c62 struct clk_hw hw;
72 static int xgene_clk_pll_is_enabled(struct clk_hw *hw) in xgene_clk_pll_is_enabled()
84 static unsigned long xgene_clk_pll_recalc_rate(struct clk_hw *hw, in xgene_clk_pll_recalc_rate()
212 struct clk_hw hw;
220 static int xgene_clk_enable(struct clk_hw *hw) in xgene_clk_enable()
260 static void xgene_clk_disable(struct clk_hw *hw) in xgene_clk_disable()
290 static int xgene_clk_is_enabled(struct clk_hw *hw) in xgene_clk_is_enabled()
309 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-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()
70 static void s2mps11_clk_unprepare(struct clk_hw *hw) in s2mps11_clk_unprepare()
79 static int s2mps11_clk_is_prepared(struct clk_hw *hw) in s2mps11_clk_is_prepared()
93 static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw, in s2mps11_clk_recalc_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()
55 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factor_set_rate()
Dclk-divider.c115 unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate, in divider_recalc_rate()
134 static unsigned long clk_divider_recalc_rate(struct clk_hw *hw, in clk_divider_recalc_rate()
274 static int clk_divider_bestdiv(struct clk_hw *hw, unsigned long rate, in clk_divider_bestdiv()
332 long divider_round_rate(struct clk_hw *hw, unsigned long rate, in divider_round_rate()
344 static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, in clk_divider_round_rate()
379 static int clk_divider_set_rate(struct clk_hw *hw, unsigned long rate, in clk_divider_set_rate()
513 struct clk_hw *hw; in clk_unregister_divider()
Dclk-fractional-divider.c20 static unsigned long clk_fd_recalc_rate(struct clk_hw *hw, in clk_fd_recalc_rate()
48 static long clk_fd_round_rate(struct clk_hw *hw, unsigned long rate, in clk_fd_round_rate()
68 static int clk_fd_set_rate(struct clk_hw *hw, unsigned long rate, in clk_fd_set_rate()
Dclk-gpio-gate.c33 static int clk_gpio_gate_enable(struct clk_hw *hw) in clk_gpio_gate_enable()
42 static void clk_gpio_gate_disable(struct clk_hw *hw) in clk_gpio_gate_disable()
49 static int clk_gpio_gate_is_enabled(struct clk_hw *hw) in clk_gpio_gate_is_enabled()
Dclk-mux.c32 static u8 clk_mux_get_parent(struct clk_hw *hw) in clk_mux_get_parent()
69 static int clk_mux_set_parent(struct clk_hw *hw, u8 index) in clk_mux_set_parent()
184 struct clk_hw *hw; in clk_unregister_mux()
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.c52 struct clk_hw *hw;
406 struct dentry *clk_debugfs_add_file(struct clk_hw *hw, char *name, umode_t mode, in clk_debugfs_add_file()
590 struct clk_hw *__clk_get_hw(struct clk *clk) in __clk_get_hw()
800 clk_mux_determine_rate_flags(struct clk_hw *hw, unsigned long rate, in clk_mux_determine_rate_flags()
804 struct clk_hw **best_parent_p, in clk_mux_determine_rate_flags()
878 long __clk_mux_determine_rate(struct clk_hw *hw, unsigned long rate, in __clk_mux_determine_rate()
882 struct clk_hw **best_parent_p) in __clk_mux_determine_rate()
890 long __clk_mux_determine_rate_closest(struct clk_hw *hw, unsigned long rate, in __clk_mux_determine_rate_closest()
894 struct clk_hw **best_parent_p) in __clk_mux_determine_rate_closest()
1134 struct clk_hw *parent_hw; in clk_core_round_rate_nolock()
[all …]
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.c74 struct clk_hw hw;
228 static unsigned long si570_recalc_rate(struct clk_hw *hw, in si570_recalc_rate()
248 static long si570_round_rate(struct clk_hw *hw, unsigned long rate, in si570_round_rate()
341 static int si570_set_rate(struct clk_hw *hw, unsigned long rate, in si570_set_rate()
Dclk-qoriq.c23 struct clk_hw hw;
34 static int cmux_set_parent(struct clk_hw *hw, u8 idx) in cmux_set_parent()
48 static u8 cmux_get_parent(struct clk_hw *hw) in cmux_get_parent()
/linux-4.1.27/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;
Ddpll3xxx.c385 unsigned long omap3_dpll_recalc(struct clk_hw *hw, unsigned long parent_rate) in omap3_dpll_recalc()
408 int omap3_noncore_dpll_enable(struct clk_hw *hw) in omap3_noncore_dpll_enable()
413 struct clk_hw *parent; in omap3_noncore_dpll_enable()
450 void omap3_noncore_dpll_disable(struct clk_hw *hw) in omap3_noncore_dpll_disable()
475 long omap3_noncore_dpll_determine_rate(struct clk_hw *hw, unsigned long rate, in omap3_noncore_dpll_determine_rate()
479 struct clk_hw **best_parent_clk) in omap3_noncore_dpll_determine_rate()
512 int omap3_noncore_dpll_set_parent(struct clk_hw *hw, u8 index) in omap3_noncore_dpll_set_parent()
539 int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate, in omap3_noncore_dpll_set_rate()
588 int omap3_noncore_dpll_set_rate_and_parent(struct clk_hw *hw, in omap3_noncore_dpll_set_rate_and_parent()
704 static struct clk_hw_omap *omap3_find_clkoutx2_dpll(struct clk_hw *hw) in omap3_find_clkoutx2_dpll()
[all …]
Dclock.h195 u8 omap2_clksel_find_parent_index(struct clk_hw *hw);
196 unsigned long omap2_clksel_recalc(struct clk_hw *hw, unsigned long parent_rate);
197 long omap2_clksel_round_rate(struct clk_hw *hw, unsigned long target_rate,
199 int omap2_clksel_set_rate(struct clk_hw *hw, unsigned long rate,
201 int omap2_clksel_set_parent(struct clk_hw *hw, u8 field_val);
274 extern int omap2_clkops_enable_clkdm(struct clk_hw *hw);
275 extern void omap2_clkops_disable_clkdm(struct clk_hw *hw);
Ddpll44xx.c114 unsigned long omap4_dpll_regm4xen_recalc(struct clk_hw *hw, in omap4_dpll_regm4xen_recalc()
149 long omap4_dpll_regm4xen_round_rate(struct clk_hw *hw, in omap4_dpll_regm4xen_round_rate()
204 long omap4_dpll_regm4xen_determine_rate(struct clk_hw *hw, unsigned long rate, in omap4_dpll_regm4xen_determine_rate()
208 struct clk_hw **best_parent_clk) in omap4_dpll_regm4xen_determine_rate()
Dclock36xx.c41 int omap36xx_pwrdn_clk_enable_with_hsdiv_restore(struct clk_hw *clk) in omap36xx_pwrdn_clk_enable_with_hsdiv_restore()
44 struct clk_hw *parent_hw; in omap36xx_pwrdn_clk_enable_with_hsdiv_restore()
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()
Dclkt_clksel.c306 u8 omap2_clksel_find_parent_index(struct clk_hw *hw) in omap2_clksel_find_parent_index()
356 unsigned long omap2_clksel_recalc(struct clk_hw *hw, unsigned long parent_rate) in omap2_clksel_recalc()
388 long omap2_clksel_round_rate(struct clk_hw *hw, unsigned long target_rate, in omap2_clksel_round_rate()
412 int omap2_clksel_set_rate(struct clk_hw *hw, unsigned long rate, in omap2_clksel_set_rate()
457 int omap2_clksel_set_parent(struct clk_hw *hw, u8 field_val) in omap2_clksel_set_parent()
Dclock3xxx.c53 int omap3_dpll4_set_rate(struct clk_hw *hw, unsigned long rate, in omap3_dpll4_set_rate()
81 int omap3_dpll4_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, in omap3_dpll4_set_rate_and_parent()
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()
Dclock.c271 void omap2_init_clk_clkdm(struct clk_hw *hw) in omap2_init_clk_clkdm()
385 int omap2_dflt_clk_enable(struct clk_hw *hw) in omap2_dflt_clk_enable()
439 void omap2_dflt_clk_disable(struct clk_hw *hw) in omap2_dflt_clk_disable()
479 int omap2_clkops_enable_clkdm(struct clk_hw *hw) in omap2_clkops_enable_clkdm()
518 void omap2_clkops_disable_clkdm(struct clk_hw *hw) in omap2_clkops_disable_clkdm()
551 int omap2_dflt_clk_is_enabled(struct clk_hw *hw) in omap2_dflt_clk_is_enabled()
Dclock36xx.h11 extern int omap36xx_pwrdn_clk_enable_with_hsdiv_restore(struct clk_hw *hw);
Dclock3xxx.h12 int omap3_core_dpll_m2_set_rate(struct clk_hw *clk, unsigned long rate,
Dclock2xxx.c31 struct clk_hw *dclk_hw;
Dclkt_dpll.c204 u8 omap2_init_dpll_parent(struct clk_hw *hw) in omap2_init_dpll_parent()
283 long omap2_dpll_round_rate(struct clk_hw *hw, unsigned long target_rate, in omap2_dpll_round_rate()
Dclkt34xx_dpll3m2.c47 int omap3_core_dpll_m2_set_rate(struct clk_hw *hw, unsigned long rate, in omap3_core_dpll_m2_set_rate()
/linux-4.1.27/drivers/clk/tegra/
Dclk-periph.c25 static u8 clk_periph_get_parent(struct clk_hw *hw) in clk_periph_get_parent()
29 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent()
36 static int clk_periph_set_parent(struct clk_hw *hw, u8 index) in clk_periph_set_parent()
40 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent()
47 static unsigned long clk_periph_recalc_rate(struct clk_hw *hw, in clk_periph_recalc_rate()
52 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate()
59 static long clk_periph_round_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_round_rate()
64 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_round_rate()
71 static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_set_rate()
76 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.c30 static int clk_pll_out_is_enabled(struct clk_hw *hw) in clk_pll_out_is_enabled()
42 static int clk_pll_out_enable(struct clk_hw *hw) in clk_pll_out_enable()
64 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;
240 struct clk_hw hw;
319 struct clk_hw hw;
378 struct clk_hw hw;
417 struct clk_hw hw;
531 struct clk_hw hw;
Dclk-periph-gate.c48 static int clk_periph_is_enabled(struct clk_hw *hw) in clk_periph_is_enabled()
63 static int clk_periph_enable(struct clk_hw *hw) in clk_periph_enable()
99 static void clk_periph_disable(struct clk_hw *hw) in clk_periph_disable()
Dclk-divider.c67 static unsigned long clk_frac_div_recalc_rate(struct clk_hw *hw, in clk_frac_div_recalc_rate()
88 static long clk_frac_div_round_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_round_rate()
107 static int clk_frac_div_set_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_set_rate()
Dclk-super.c43 static u8 clk_super_get_parent(struct clk_hw *hw) in clk_super_get_parent()
72 static int clk_super_set_parent(struct clk_hw *hw, u8 index) in clk_super_set_parent()
/linux-4.1.27/drivers/clk/st/
Dclk-flexgen.c18 struct clk_hw hw;
34 static int flexgen_enable(struct clk_hw *hw) in flexgen_enable()
37 struct clk_hw *pgate_hw = &flexgen->pgate.hw; in flexgen_enable()
38 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_enable()
51 static void flexgen_disable(struct clk_hw *hw) in flexgen_disable()
54 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_disable()
64 static int flexgen_is_enabled(struct clk_hw *hw) in flexgen_is_enabled()
67 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_is_enabled()
77 static u8 flexgen_get_parent(struct clk_hw *hw) in flexgen_get_parent()
80 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_get_parent()
[all …]
Dclkgen-mux.c58 struct clk_hw hw;
90 static int clkgena_divmux_enable(struct clk_hw *hw) in clkgena_divmux_enable()
93 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_enable()
114 static void clkgena_divmux_disable(struct clk_hw *hw) in clkgena_divmux_disable()
117 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_disable()
124 static int clkgena_divmux_is_enabled(struct clk_hw *hw) in clkgena_divmux_is_enabled()
127 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_is_enabled()
134 u8 clkgena_divmux_get_parent(struct clk_hw *hw) in clkgena_divmux_get_parent()
137 struct clk_hw *mux_hw = &genamux->mux.hw; in clkgena_divmux_get_parent()
151 static int clkgena_divmux_set_parent(struct clk_hw *hw, u8 index) in clkgena_divmux_set_parent()
[all …]
Dclkgen-fsyn.c416 struct clk_hw hw;
425 static int quadfs_pll_enable(struct clk_hw *hw) in quadfs_pll_enable()
466 static void quadfs_pll_disable(struct clk_hw *hw) in quadfs_pll_disable()
487 static int quadfs_pll_is_enabled(struct clk_hw *hw) in quadfs_pll_is_enabled()
505 static unsigned long quadfs_pll_fs660c32_recalc_rate(struct clk_hw *hw, in quadfs_pll_fs660c32_recalc_rate()
551 static long quadfs_pll_fs660c32_round_rate(struct clk_hw *hw, unsigned long rate in quadfs_pll_fs660c32_round_rate()
568 static int quadfs_pll_fs660c32_set_rate(struct clk_hw *hw, unsigned long rate, in quadfs_pll_fs660c32_set_rate()
681 struct clk_hw hw;
742 static int quadfs_fsynth_enable(struct clk_hw *hw) in quadfs_fsynth_enable()
767 static void quadfs_fsynth_disable(struct clk_hw *hw) in quadfs_fsynth_disable()
[all …]
Dclkgen-pll.c251 struct clk_hw hw;
258 static int clkgen_pll_is_locked(struct clk_hw *hw) in clkgen_pll_is_locked()
266 static int clkgen_pll_is_enabled(struct clk_hw *hw) in clkgen_pll_is_enabled()
273 unsigned long recalc_stm_pll800c65(struct clk_hw *hw, in recalc_stm_pll800c65()
300 unsigned long recalc_stm_pll1600c65(struct clk_hw *hw, in recalc_stm_pll1600c65()
324 unsigned long recalc_stm_pll3200c32(struct clk_hw *hw, in recalc_stm_pll3200c32()
346 unsigned long recalc_stm_pll1200c32(struct clk_hw *hw, in recalc_stm_pll1200c32()
/linux-4.1.27/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 long _freq_tbl_determine_rate(struct clk_hw *hw, in _freq_tbl_determine_rate()
181 unsigned long *p_rate, struct clk_hw **p_hw) in _freq_tbl_determine_rate()
219 static long clk_rcg2_determine_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg2_determine_rate()
221 unsigned long *p_rate, struct clk_hw **p) in clk_rcg2_determine_rate()
231 struct clk_hw *hw = &rcg->clkr.hw; in clk_rcg2_configure()
[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 long _freq_tbl_determine_rate(struct clk_hw *hw, in _freq_tbl_determine_rate()
410 unsigned long *p_rate, struct clk_hw **p_hw, in _freq_tbl_determine_rate()
444 static long clk_rcg_determine_rate(struct clk_hw *hw, unsigned long rate, 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, unsigned long rate, in clk_pll_determine_rate()
141 unsigned long *p_rate, struct clk_hw **p) 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()
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;
35 extern int qcom_find_src_index(struct clk_hw *hw, const struct parent_map *map,
Dcommon.c46 int qcom_find_src_index(struct clk_hw *hw, const struct parent_map *map, u8 src) in qcom_find_src_index()
Dmmcc-msm8960.c505 static int pix_rdi_set_parent(struct clk_hw *hw, u8 index) in pix_rdi_set_parent()
557 static u8 pix_rdi_get_parent(struct clk_hw *hw) in pix_rdi_get_parent()
/linux-4.1.27/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.1.27/arch/mips/alchemy/common/
Dclock.c116 static unsigned long alchemy_clk_cpu_recalc(struct clk_hw *hw, in alchemy_clk_cpu_recalc()
152 struct clk_hw *h; in alchemy_clk_setup_cpu()
171 struct clk_hw hw;
177 static unsigned long alchemy_clk_aux_recalc(struct clk_hw *hw, in alchemy_clk_aux_recalc()
185 static int alchemy_clk_aux_setr(struct clk_hw *hw, in alchemy_clk_aux_setr()
205 static long alchemy_clk_aux_roundr(struct clk_hw *hw, in alchemy_clk_aux_roundr()
357 struct clk_hw hw;
392 static long alchemy_clk_fgcs_detr(struct clk_hw *hw, unsigned long rate, in alchemy_clk_fgcs_detr()
394 struct clk_hw **best_parent_clk, in alchemy_clk_fgcs_detr()
477 static int alchemy_clk_fgv1_en(struct clk_hw *hw) in alchemy_clk_fgv1_en()
[all …]
/linux-4.1.27/arch/arm/mach-imx/
Dclk-pllv3.c40 struct clk_hw hw;
70 static int clk_pllv3_prepare(struct clk_hw *hw) in clk_pllv3_prepare()
85 static void clk_pllv3_unprepare(struct clk_hw *hw) in clk_pllv3_unprepare()
98 static unsigned long clk_pllv3_recalc_rate(struct clk_hw *hw, in clk_pllv3_recalc_rate()
107 static long clk_pllv3_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_round_rate()
116 static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_set_rate()
145 static unsigned long clk_pllv3_sys_recalc_rate(struct clk_hw *hw, in clk_pllv3_sys_recalc_rate()
154 static long clk_pllv3_sys_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_sys_round_rate()
171 static int clk_pllv3_sys_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_sys_set_rate()
199 static unsigned long clk_pllv3_av_recalc_rate(struct clk_hw *hw, in clk_pllv3_av_recalc_rate()
[all …]
Dclk-pfd.c31 struct clk_hw hw;
42 static int clk_pfd_enable(struct clk_hw *hw) in clk_pfd_enable()
51 static void clk_pfd_disable(struct clk_hw *hw) in clk_pfd_disable()
58 static unsigned long clk_pfd_recalc_rate(struct clk_hw *hw, in clk_pfd_recalc_rate()
71 static long clk_pfd_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pfd_round_rate()
91 static int clk_pfd_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pfd_set_rate()
112 static int clk_pfd_is_enabled(struct clk_hw *hw) in clk_pfd_is_enabled()
Dclk-cpu.c17 struct clk_hw hw;
24 static inline struct clk_cpu *to_clk_cpu(struct clk_hw *hw) in to_clk_cpu()
29 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hw, in clk_cpu_recalc_rate()
37 static long clk_cpu_round_rate(struct clk_hw *hw, unsigned long rate, in clk_cpu_round_rate()
45 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;
111 static unsigned long clk_pllv2_recalc_rate(struct clk_hw *hw, in clk_pllv2_recalc_rate()
157 static int clk_pllv2_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv2_set_rate()
183 static long clk_pllv2_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv2_round_rate()
193 static int clk_pllv2_prepare(struct clk_hw *hw) in clk_pllv2_prepare()
221 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.c27 struct clk_hw hw;
38 static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw, in clk_pllv1_recalc_rate()
/linux-4.1.27/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.1.27/drivers/clk/mxs/
Dclk-pll.c31 struct clk_hw hw;
39 static int clk_pll_prepare(struct clk_hw *hw) in clk_pll_prepare()
50 static void clk_pll_unprepare(struct clk_hw *hw) in clk_pll_unprepare()
57 static int clk_pll_enable(struct clk_hw *hw) in clk_pll_enable()
66 static void clk_pll_disable(struct clk_hw *hw) in clk_pll_disable()
73 static unsigned long clk_pll_recalc_rate(struct clk_hw *hw, in clk_pll_recalc_rate()
Dclk-ref.c31 struct clk_hw hw;
38 static int clk_ref_enable(struct clk_hw *hw) in clk_ref_enable()
47 static void clk_ref_disable(struct clk_hw *hw) in clk_ref_disable()
54 static unsigned long clk_ref_recalc_rate(struct clk_hw *hw, in clk_ref_recalc_rate()
67 static long clk_ref_round_rate(struct clk_hw *hw, unsigned long rate, in clk_ref_round_rate()
90 static int clk_ref_set_rate(struct clk_hw *hw, unsigned long rate, in clk_ref_set_rate()
Dclk-div.c35 static inline struct clk_div *to_clk_div(struct clk_hw *hw) in to_clk_div()
42 static unsigned long clk_div_recalc_rate(struct clk_hw *hw, in clk_div_recalc_rate()
50 static long clk_div_round_rate(struct clk_hw *hw, unsigned long rate, in clk_div_round_rate()
58 static int clk_div_set_rate(struct clk_hw *hw, unsigned long rate, in clk_div_set_rate()
Dclk-frac.c31 struct clk_hw hw;
40 static unsigned long clk_frac_recalc_rate(struct clk_hw *hw, in clk_frac_recalc_rate()
52 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_round_rate()
74 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_set_rate()
/linux-4.1.27/drivers/clk/at91/
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 long at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_determine_rate()
64 struct clk_hw **best_parent_hw) 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-slow.c41 struct clk_hw hw;
49 struct clk_hw hw;
59 struct clk_hw hw;
66 struct clk_hw hw;
75 static int clk_slow_osc_prepare(struct clk_hw *hw) in clk_slow_osc_prepare()
91 static void clk_slow_osc_unprepare(struct clk_hw *hw) in clk_slow_osc_unprepare()
103 static int clk_slow_osc_is_prepared(struct clk_hw *hw) in clk_slow_osc_is_prepared()
182 static unsigned long clk_slow_rc_osc_recalc_rate(struct clk_hw *hw, in clk_slow_rc_osc_recalc_rate()
190 static unsigned long clk_slow_rc_osc_recalc_accuracy(struct clk_hw *hw, in clk_slow_rc_osc_recalc_accuracy()
198 static int clk_slow_rc_osc_prepare(struct clk_hw *hw) in clk_slow_rc_osc_prepare()
[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()
226 static int clk_main_rc_osc_prepare(struct clk_hw *hw) in clk_main_rc_osc_prepare()
248 static void clk_main_rc_osc_unprepare(struct clk_hw *hw) in clk_main_rc_osc_unprepare()
261 static int clk_main_rc_osc_is_prepared(struct clk_hw *hw) in clk_main_rc_osc_is_prepared()
[all …]
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()
160 static int clk_sam9x5_peripheral_enable(struct clk_hw *hw) in clk_sam9x5_peripheral_enable()
175 static void clk_sam9x5_peripheral_disable(struct clk_hw *hw) in clk_sam9x5_peripheral_disable()
187 static int clk_sam9x5_peripheral_is_enabled(struct clk_hw *hw) in clk_sam9x5_peripheral_is_enabled()
205 clk_sam9x5_peripheral_recalc_rate(struct clk_hw *hw, in clk_sam9x5_peripheral_recalc_rate()
230 static long clk_sam9x5_peripheral_round_rate(struct clk_hw *hw, in clk_sam9x5_peripheral_round_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-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-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-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 long clk_programmable_determine_rate(struct clk_hw *hw, in clk_programmable_determine_rate()
62 struct clk_hw **best_parent_hw) in clk_programmable_determine_rate()
99 static int clk_programmable_set_parent(struct clk_hw *hw, u8 index) in clk_programmable_set_parent()
122 static u8 clk_programmable_get_parent(struct clk_hw *hw) in clk_programmable_get_parent()
138 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.1.27/drivers/clk/sirf/
Dclk-common.c33 struct clk_hw hw;
40 struct clk_hw hw;
48 struct clk_hw hw;
54 static int std_clk_is_enabled(struct clk_hw *hw);
55 static int std_clk_enable(struct clk_hw *hw);
56 static void std_clk_disable(struct clk_hw *hw);
72 static unsigned long pll_clk_recalc_rate(struct clk_hw *hw, in pll_clk_recalc_rate()
94 static long pll_clk_round_rate(struct clk_hw *hw, unsigned long rate, in pll_clk_round_rate()
125 static int pll_clk_set_rate(struct clk_hw *hw, unsigned long rate, in pll_clk_set_rate()
161 static long cpu_clk_round_rate(struct clk_hw *hw, unsigned long rate, in cpu_clk_round_rate()
[all …]
Dclk-prima2.c69 static __initdata struct clk_hw *prima2_clk_hw_array[maxclk] = {
Dclk-atlas6.c70 static __initdata struct clk_hw *atlas6_clk_hw_array[maxclk] = {
/linux-4.1.27/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 long ar100_determine_rate(struct clk_hw *hw, unsigned long rate, in ar100_determine_rate()
51 struct clk_hw **best_parent_clk) in ar100_determine_rate()
114 static int ar100_set_parent(struct clk_hw *hw, u8 index) in ar100_set_parent()
129 static u8 ar100_get_parent(struct clk_hw *hw) in ar100_get_parent()
136 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 long clk_factors_determine_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_determine_rate()
86 struct clk_hw **best_parent_p) in clk_factors_determine_rate()
119 static int clk_factors_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factors_set_rate()
170 struct clk_hw *gate_hw = NULL; in sunxi_factors_register()
171 struct clk_hw *mux_hw = NULL; in sunxi_factors_register()
Dclk-mod0.c180 struct clk_hw hw;
188 static int mmc_get_phase(struct clk_hw *hw) in mmc_get_phase()
230 static int mmc_set_phase(struct clk_hw *hw, int degrees) in mmc_set_phase()
Dclk-factors.h32 struct clk_hw hw;
Dclk-sunxi.c55 struct clk_hw hw;
61 static unsigned long sun6i_ahb1_clk_recalc_rate(struct clk_hw *hw, in sun6i_ahb1_clk_recalc_rate()
121 static long sun6i_ahb1_clk_determine_rate(struct clk_hw *hw, unsigned long rate, in sun6i_ahb1_clk_determine_rate()
125 struct clk_hw **best_parent_clk) in sun6i_ahb1_clk_determine_rate()
159 static int sun6i_ahb1_clk_set_rate(struct clk_hw *hw, unsigned long rate, in sun6i_ahb1_clk_set_rate()
1127 struct clk_hw *gate_hw, *rate_hw; in sunxi_divs_clk_setup()
/linux-4.1.27/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.c49 struct clk_hw hw;
56 static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable) in cpg_mstp_clock_endisable()
94 static int cpg_mstp_clock_enable(struct clk_hw *hw) in cpg_mstp_clock_enable()
99 static void cpg_mstp_clock_disable(struct clk_hw *hw) in cpg_mstp_clock_disable()
104 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.1.27/drivers/clk/pistachio/
Dclk-pll.c54 struct clk_hw hw;
78 static inline struct pistachio_clk_pll *to_pistachio_pll(struct clk_hw *hw) in to_pistachio_pll()
97 static long pll_round_rate(struct clk_hw *hw, unsigned long rate, in pll_round_rate()
112 static int pll_gf40lp_frac_enable(struct clk_hw *hw) in pll_gf40lp_frac_enable()
129 static void pll_gf40lp_frac_disable(struct clk_hw *hw) in pll_gf40lp_frac_disable()
139 static int pll_gf40lp_frac_is_enabled(struct clk_hw *hw) in pll_gf40lp_frac_is_enabled()
146 static int pll_gf40lp_frac_set_rate(struct clk_hw *hw, unsigned long rate, in pll_gf40lp_frac_set_rate()
189 static unsigned long pll_gf40lp_frac_recalc_rate(struct clk_hw *hw, in pll_gf40lp_frac_recalc_rate()
229 static int pll_gf40lp_laint_enable(struct clk_hw *hw) in pll_gf40lp_laint_enable()
246 static void pll_gf40lp_laint_disable(struct clk_hw *hw) in pll_gf40lp_laint_disable()
[all …]
/linux-4.1.27/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.1.27/drivers/clk/pxa/
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-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-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.1.27/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 long (*determine_rate)(struct clk_hw *hw,
[all …]
/linux-4.1.27/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.1.27/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.c38 struct clk_hw hw;
60 berlin2_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in berlin2_pll_recalc_rate()
/linux-4.1.27/drivers/clk/samsung/
Dclk-pll.c21 struct clk_hw hw;
45 static long samsung_pll_round_rate(struct clk_hw *hw, in samsung_pll_round_rate()
73 static unsigned long samsung_pll2126_recalc_rate(struct clk_hw *hw, in samsung_pll2126_recalc_rate()
106 static unsigned long samsung_pll3000_recalc_rate(struct clk_hw *hw, in samsung_pll3000_recalc_rate()
143 static unsigned long samsung_pll35xx_recalc_rate(struct clk_hw *hw, in samsung_pll35xx_recalc_rate()
172 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate()
246 static unsigned long samsung_pll36xx_recalc_rate(struct clk_hw *hw, in samsung_pll36xx_recalc_rate()
281 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate()
360 static unsigned long samsung_pll45xx_recalc_rate(struct clk_hw *hw, in samsung_pll45xx_recalc_rate()
394 static int samsung_pll45xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll45xx_set_rate()
[all …]
Dclk-s3c2410-dclk.c50 struct clk_hw hw;
57 static u8 s3c24xx_clkout_get_parent(struct clk_hw *hw) in s3c24xx_clkout_get_parent()
73 static int s3c24xx_clkout_set_parent(struct clk_hw *hw, u8 index) in s3c24xx_clkout_set_parent()
/linux-4.1.27/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-sp810.c27 struct clk_hw hw;
43 static u8 clk_sp810_timerclken_get_parent(struct clk_hw *hw) in clk_sp810_timerclken_get_parent()
51 static int clk_sp810_timerclken_set_parent(struct clk_hw *hw, u8 index) in clk_sp810_timerclken_set_parent()
78 static int clk_sp810_timerclken_prepare(struct clk_hw *hw) in clk_sp810_timerclken_prepare()
110 static void clk_sp810_timerclken_unprepare(struct clk_hw *hw) in clk_sp810_timerclken_unprepare()
Dclk-icst.c33 struct clk_hw hw;
81 static unsigned long icst_recalc_rate(struct clk_hw *hw, in icst_recalc_rate()
94 static long icst_round_rate(struct clk_hw *hw, unsigned long rate, in icst_round_rate()
104 static int icst_set_rate(struct clk_hw *hw, unsigned long rate, in icst_set_rate()
/linux-4.1.27/drivers/clk/hisilicon/
Dclkgate-separated.c41 struct clk_hw hw;
48 static int clkgate_separated_enable(struct clk_hw *hw) in clkgate_separated_enable()
65 static void clkgate_separated_disable(struct clk_hw *hw) in clkgate_separated_disable()
81 static int clkgate_separated_is_enabled(struct clk_hw *hw) in clkgate_separated_is_enabled()
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.c254 struct clk_hw hw;
278 static unsigned long mmc_clk_recalc_rate(struct clk_hw *hw, in mmc_clk_recalc_rate()
297 static long mmc_clk_determine_rate(struct clk_hw *hw, unsigned long rate, in mmc_clk_determine_rate()
301 struct clk_hw **best_parent_p) in mmc_clk_determine_rate()
342 static int mmc_clk_set_timing(struct clk_hw *hw, unsigned long rate) in mmc_clk_set_timing()
406 static int mmc_clk_prepare(struct clk_hw *hw) in mmc_clk_prepare()
419 static int mmc_clk_set_rate(struct clk_hw *hw, unsigned long rate, in mmc_clk_set_rate()
/linux-4.1.27/drivers/clk/mvebu/
Dclk-cpu.c35 struct clk_hw hw;
49 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hwclk, in clk_cpu_recalc_rate()
60 static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_round_rate()
75 static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_off_set_rate()
109 static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_on_set_rate()
152 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.1.27/drivers/clk/rockchip/
Dclk-mmc-phase.c21 struct clk_hw hw;
31 static unsigned long rockchip_mmc_recalc(struct clk_hw *hw, in rockchip_mmc_recalc()
50 static int rockchip_mmc_get_phase(struct clk_hw *hw) in rockchip_mmc_get_phase()
75 static int rockchip_mmc_set_phase(struct clk_hw *hw, int degrees) in rockchip_mmc_set_phase()
Dclk-pll.c31 struct clk_hw hw;
66 static long rockchip_pll_round_rate(struct clk_hw *hw, in rockchip_pll_round_rate()
130 static unsigned long rockchip_rk3066_pll_recalc_rate(struct clk_hw *hw, in rockchip_rk3066_pll_recalc_rate()
158 static int rockchip_rk3066_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3066_pll_set_rate()
234 static int rockchip_rk3066_pll_enable(struct clk_hw *hw) in rockchip_rk3066_pll_enable()
244 static void rockchip_rk3066_pll_disable(struct clk_hw *hw) in rockchip_rk3066_pll_disable()
253 static int rockchip_rk3066_pll_is_enabled(struct clk_hw *hw) in rockchip_rk3066_pll_is_enabled()
261 static void rockchip_rk3066_pll_init(struct clk_hw *hw) in rockchip_rk3066_pll_init()
Dclk-cpu.c55 struct clk_hw hw;
88 static unsigned long rockchip_cpuclk_recalc_rate(struct clk_hw *hw, in rockchip_cpuclk_recalc_rate()
/linux-4.1.27/drivers/clk/mmp/
Dclk-apmu.c23 struct clk_hw hw;
30 static int clk_apmu_enable(struct clk_hw *hw) in clk_apmu_enable()
48 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()
55 static void mmp_clk_gate_disable(struct clk_hw *hw) in mmp_clk_gate_disable()
73 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-mix.c204 static long mmp_clk_mix_determine_rate(struct clk_hw *hw, unsigned long rate, in mmp_clk_mix_determine_rate()
208 struct clk_hw **best_parent_clk) in mmp_clk_mix_determine_rate()
274 static int mmp_clk_mix_set_rate_and_parent(struct clk_hw *hw, in mmp_clk_mix_set_rate_and_parent()
290 static u8 mmp_clk_mix_get_parent(struct clk_hw *hw) in mmp_clk_mix_get_parent()
319 static unsigned long mmp_clk_mix_recalc_rate(struct clk_hw *hw, in mmp_clk_mix_recalc_rate()
349 static int mmp_clk_set_parent(struct clk_hw *hw, u8 index) in mmp_clk_set_parent()
377 static int mmp_clk_set_rate(struct clk_hw *hw, unsigned long rate, in mmp_clk_set_rate()
424 static void mmp_clk_mix_init(struct clk_hw *hw) in mmp_clk_mix_init()
Dclk-apbc.c29 struct clk_hw hw;
36 static int clk_apbc_prepare(struct clk_hw *hw) in clk_apbc_prepare()
87 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.1.27/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()
/linux-4.1.27/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.1.27/drivers/clk/keystone/
Dgate.c67 struct clk_hw hw;
109 static int keystone_clk_is_enabled(struct clk_hw *hw) in keystone_clk_is_enabled()
118 static int keystone_clk_enable(struct clk_hw *hw) in keystone_clk_enable()
136 static void keystone_clk_disable(struct clk_hw *hw) in keystone_clk_disable()
Dpll.c74 struct clk_hw hw;
80 static unsigned long clk_pllclk_recalc(struct clk_hw *hw, in clk_pllclk_recalc()
/linux-4.1.27/drivers/clk/socfpga/
Dclk-gate.c44 static u8 socfpga_clk_get_parent(struct clk_hw *hwclk) in socfpga_clk_get_parent()
70 static int socfpga_clk_set_parent(struct clk_hw *hwclk, u8 parent) in socfpga_clk_set_parent()
103 static unsigned long socfpga_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_clk_recalc_rate()
124 static int socfpga_clk_prepare(struct clk_hw *hwclk) in socfpga_clk_prepare()
Dclk-pll.c49 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate()
69 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent()
Dclk-periph.c28 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate()
/linux-4.1.27/drivers/clk/bcm/
Dclk-kona.c972 static int kona_peri_clk_enable(struct clk_hw *hw) in kona_peri_clk_enable()
980 static void kona_peri_clk_disable(struct clk_hw *hw) in kona_peri_clk_disable()
988 static int kona_peri_clk_is_enabled(struct clk_hw *hw) in kona_peri_clk_is_enabled()
996 static unsigned long kona_peri_clk_recalc_rate(struct clk_hw *hw, in kona_peri_clk_recalc_rate()
1006 static long kona_peri_clk_round_rate(struct clk_hw *hw, unsigned long rate, in kona_peri_clk_round_rate()
1020 static long kona_peri_clk_determine_rate(struct clk_hw *hw, unsigned long rate, in kona_peri_clk_determine_rate()
1023 unsigned long *best_parent_rate, struct clk_hw **best_parent) in kona_peri_clk_determine_rate()
1074 static int kona_peri_clk_set_parent(struct clk_hw *hw, u8 index) in kona_peri_clk_set_parent()
1109 static u8 kona_peri_clk_get_parent(struct clk_hw *hw) in kona_peri_clk_get_parent()
1121 static int kona_peri_clk_set_rate(struct clk_hw *hw, unsigned long rate, in kona_peri_clk_set_rate()
Dclk-kona.h405 struct clk_hw hw;
Dclk-kona-setup.c702 struct clk_hw *hw; in kona_clk_teardown()
/linux-4.1.27/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.1.27/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()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dmedia-dev.h97 struct clk_hw hw;
Dmedia-dev.c1178 static int cam_clk_prepare(struct clk_hw *hw) in cam_clk_prepare()
1190 static void cam_clk_unprepare(struct clk_hw *hw) in cam_clk_unprepare()
/linux-4.1.27/drivers/media/platform/omap3isp/
Disp.c178 static int isp_xclk_prepare(struct clk_hw *hw) in isp_xclk_prepare()
187 static void isp_xclk_unprepare(struct clk_hw *hw) in isp_xclk_unprepare()
194 static int isp_xclk_enable(struct clk_hw *hw) in isp_xclk_enable()
207 static void isp_xclk_disable(struct clk_hw *hw) in isp_xclk_disable()
218 static unsigned long isp_xclk_recalc_rate(struct clk_hw *hw, in isp_xclk_recalc_rate()
246 static long isp_xclk_round_rate(struct clk_hw *hw, unsigned long rate, in isp_xclk_round_rate()
253 static int isp_xclk_set_rate(struct clk_hw *hw, unsigned long rate, in isp_xclk_set_rate()
Disp.h134 struct clk_hw hw;