Home
last modified time | relevance | path

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

12345678910>>...31

/linux/drivers/clk/at91/
H A Dpmc.h22 struct clk_hw **chws;
24 struct clk_hw **shws;
26 struct clk_hw **phws;
28 struct clk_hw **ghws;
30 struct clk_hw **pchws;
32 struct clk_hw *hwtable[];
147 struct clk_hw *of_clk_hw_pmc_get(struct of_phandle_args *clkspec, void *data);
149 struct clk_hw * __init
153 struct clk_hw * __init
157 struct clk_hw * __init
[all …]
H A Dclk-utmi.c23 struct clk_hw hw;
40 static int clk_utmi_prepare(struct clk_hw *hw) in clk_utmi_prepare()
42 struct clk_hw *hw_parent; in clk_utmi_prepare()
95 static int clk_utmi_is_prepared(struct clk_hw *hw) in clk_utmi_is_prepared()
102 static void clk_utmi_unprepare(struct clk_hw *hw) in clk_utmi_unprepare()
110 static unsigned long clk_utmi_recalc_rate(struct clk_hw *hw, in clk_utmi_recalc_rate()
117 static int clk_utmi_save_context(struct clk_hw *hw) in clk_utmi_save_context()
126 static void clk_utmi_restore_context(struct clk_hw *hw) in clk_utmi_restore_context()
143 static struct clk_hw * __init
147 struct clk_hw *parent_hw, in at91_clk_register_utmi_internal()
[all …]
H A Dclk-main.c29 struct clk_hw hw;
37 struct clk_hw hw;
47 struct clk_hw hw;
54 struct clk_hw hw;
71 static int clk_main_osc_prepare(struct clk_hw *hw) in clk_main_osc_prepare()
94 static void clk_main_osc_unprepare(struct clk_hw *hw) in clk_main_osc_unprepare()
111 static int clk_main_osc_is_prepared(struct clk_hw *hw) in clk_main_osc_is_prepared()
126 static int clk_main_osc_save_context(struct clk_hw *hw) in clk_main_osc_save_context()
135 static void clk_main_osc_restore_context(struct clk_hw *hw) in clk_main_osc_restore_context()
151 struct clk_hw * __init
[all …]
H A Dclk-usb.c25 struct clk_hw hw;
36 struct clk_hw hw;
44 static unsigned long at91sam9x5_clk_usb_recalc_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_recalc_rate()
57 static int at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_determine_rate()
60 struct clk_hw *parent; in at91sam9x5_clk_usb_determine_rate()
111 static int at91sam9x5_clk_usb_set_parent(struct clk_hw *hw, u8 index) in at91sam9x5_clk_usb_set_parent()
123 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()
152 static int at91sam9x5_usb_save_context(struct clk_hw *hw) in at91sam9x5_usb_save_context()
155 struct clk_hw *parent_hw = clk_hw_get_parent(hw); in at91sam9x5_usb_save_context()
[all …]
H A Dsckc.c30 struct clk_hw hw;
39 struct clk_hw hw;
49 struct clk_hw hw;
60 struct clk_hw hw;
68 static int clk_slow_osc_prepare(struct clk_hw *hw) in clk_slow_osc_prepare()
87 static void clk_slow_osc_unprepare(struct clk_hw *hw) in clk_slow_osc_unprepare()
99 static int clk_slow_osc_is_prepared(struct clk_hw *hw) in clk_slow_osc_is_prepared()
117 static struct clk_hw * __init
126 struct clk_hw *hw; in at91_clk_register_slow_osc()
162 static void at91_clk_unregister_slow_osc(struct clk_hw *hw) in at91_clk_unregister_slow_osc()
[all …]
/linux/include/linux/
H A Dclk-provider.h37 struct clk_hw;
64 struct clk_hw *best_parent_hw;
67 void clk_hw_init_rate_request(const struct clk_hw *hw,
70 void clk_hw_forward_rate_request(const struct clk_hw *core,
72 const struct clk_hw *parent,
235 int (*prepare)(struct clk_hw *hw);
236 void (*unprepare)(struct clk_hw *hw);
237 int (*is_prepared)(struct clk_hw *hw);
238 void (*unprepare_unused)(struct clk_hw *hw);
239 int (*enable)(struct clk_hw *hw);
[all …]
/linux/drivers/clk/
H A Dclk-composite.c11 static u8 clk_composite_get_parent(struct clk_hw *hw) in clk_composite_get_parent()
15 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_get_parent()
22 static int clk_composite_set_parent(struct clk_hw *hw, u8 index) in clk_composite_set_parent()
26 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_set_parent()
33 static unsigned long clk_composite_recalc_rate(struct clk_hw *hw, in clk_composite_recalc_rate()
38 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_recalc_rate()
45 static int clk_composite_determine_rate_for_parent(struct clk_hw *rate_hw, in clk_composite_determine_rate_for_parent()
47 struct clk_hw *parent_hw, in clk_composite_determine_rate_for_parent()
68 static int clk_composite_determine_rate(struct clk_hw *hw, in clk_composite_determine_rate()
74 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_determine_rate()
[all …]
H A Dclk-gate_test.c13 struct clk_hw *ret; in clk_gate_register_test_dev()
31 struct clk_hw *parent; in clk_gate_register_test_parent_names()
32 struct clk_hw *ret; in clk_gate_register_test_parent_names()
49 struct clk_hw *parent; in clk_gate_register_test_parent_data()
50 struct clk_hw *ret; in clk_gate_register_test_parent_data()
69 struct clk_hw *parent; in clk_gate_register_test_parent_data_legacy()
70 struct clk_hw *ret; in clk_gate_register_test_parent_data_legacy()
89 struct clk_hw *parent; in clk_gate_register_test_parent_hw()
90 struct clk_hw *ret; in clk_gate_register_test_parent_hw()
107 struct clk_hw *ret; in clk_gate_register_test_hiword_invalid()
[all …]
H A Dclk-fixed-factor.c22 static unsigned long clk_factor_recalc_rate(struct clk_hw *hw, in clk_factor_recalc_rate()
33 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long rate, in clk_factor_round_rate()
48 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factor_set_rate()
60 static unsigned long clk_factor_recalc_accuracy(struct clk_hw *hw, in clk_factor_recalc_accuracy()
91 static struct clk_hw *
94 const struct clk_hw *parent_hw, const struct clk_parent_data *pdata, in __clk_hw_register_fixed_factor()
100 struct clk_hw *hw; in __clk_hw_register_fixed_factor()
163 struct clk_hw *devm_clk_hw_register_fixed_factor_index(struct device *dev, in devm_clk_hw_register_fixed_factor_index()
187 struct clk_hw *devm_clk_hw_register_fixed_factor_parent_hw(struct device *dev, in devm_clk_hw_register_fixed_factor_parent_hw()
188 const char *name, const struct clk_hw *parent_hw, in devm_clk_hw_register_fixed_factor_parent_hw()
[all …]
H A Dclk-hi655x.c22 struct clk_hw clk_hw; member
25 static unsigned long hi655x_clk_recalc_rate(struct clk_hw *hw, in hi655x_clk_recalc_rate()
31 static int hi655x_clk_enable(struct clk_hw *hw, bool enable) in hi655x_clk_enable()
34 container_of(hw, struct hi655x_clk, clk_hw); in hi655x_clk_enable()
42 static int hi655x_clk_prepare(struct clk_hw *hw) in hi655x_clk_prepare()
47 static void hi655x_clk_unprepare(struct clk_hw *hw) in hi655x_clk_unprepare()
52 static int hi655x_clk_is_prepared(struct clk_hw *hw) in hi655x_clk_is_prepared()
55 container_of(hw, struct hi655x_clk, clk_hw); in hi655x_clk_is_prepared()
93 hi655x_clk->clk_hw.init = &init; in hi655x_clk_probe()
98 ret = devm_clk_hw_register(&pdev->dev, &hi655x_clk->clk_hw); in hi655x_clk_probe()
[all …]
H A Dclk-gpio.c47 struct clk_hw hw;
53 static int clk_gpio_gate_enable(struct clk_hw *hw) in clk_gpio_gate_enable()
62 static void clk_gpio_gate_disable(struct clk_hw *hw) in clk_gpio_gate_disable()
69 static int clk_gpio_gate_is_enabled(struct clk_hw *hw) in clk_gpio_gate_is_enabled()
82 static int clk_sleeping_gpio_gate_prepare(struct clk_hw *hw) in clk_sleeping_gpio_gate_prepare()
91 static void clk_sleeping_gpio_gate_unprepare(struct clk_hw *hw) in clk_sleeping_gpio_gate_unprepare()
98 static int clk_sleeping_gpio_gate_is_prepared(struct clk_hw *hw) in clk_sleeping_gpio_gate_is_prepared()
119 static u8 clk_gpio_mux_get_parent(struct clk_hw *hw) in clk_gpio_mux_get_parent()
126 static int clk_gpio_mux_set_parent(struct clk_hw *hw, u8 index) in clk_gpio_mux_set_parent()
141 static struct clk_hw *clk_register_gpio(struct device *dev, u8 num_parents, in clk_register_gpio()
[all …]
/linux/drivers/clk/ti/
H A Dclock.h12 struct clk_hw hw;
27 struct clk_hw hw;
202 struct clk *of_ti_clk_register(struct device_node *node, struct clk_hw *hw,
205 struct clk_hw *hw, const char *con);
212 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup);
223 int ti_clk_add_component(struct device_node *node, struct clk_hw *hw, int type);
247 int omap2_init_clk_clkdm(struct clk_hw *hw);
248 int omap2_clkops_enable_clkdm(struct clk_hw *hw);
249 void omap2_clkops_disable_clkdm(struct clk_hw *hw);
251 int omap2_dflt_clk_enable(struct clk_hw *hw);
[all …]
H A Dapll.c32 static int dra7_apll_enable(struct clk_hw *hw) in dra7_apll_enable()
83 static void dra7_apll_disable(struct clk_hw *hw) in dra7_apll_disable()
100 static int dra7_apll_is_enabled(struct clk_hw *hw) in dra7_apll_is_enabled()
116 static u8 dra7_init_apll_parent(struct clk_hw *hw) in dra7_init_apll_parent()
131 struct clk_hw *hw = user; in omap_clk_register_apll()
132 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local
133 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll()
136 const struct clk_init_data *init = clk_hw->hw.init; in omap_clk_register_apll()
163 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in omap_clk_register_apll()
172 kfree(clk_hw->dpll_data); in omap_clk_register_apll()
[all …]
/linux/drivers/clk/samsung/
H A Dclk.c100 struct clk_hw *clk_hw, unsigned int id) in samsung_clk_add_lookup() argument
103 ctx->clk_data.hws[id] = clk_hw; in samsung_clk_add_lookup()
111 struct clk_hw *clk_hw; in samsung_clk_register_alias() local
121 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias()
122 if (!clk_hw) { in samsung_clk_register_alias()
128 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias()
141 struct clk_hw *clk_hw; in samsung_clk_register_fixed_rate() local
145 clk_hw = clk_hw_register_fixed_rate(ctx->dev, list->name, in samsung_clk_register_fixed_rate()
147 if (IS_ERR(clk_hw)) { in samsung_clk_register_fixed_rate()
153 samsung_clk_add_lookup(ctx, clk_hw, list->id); in samsung_clk_register_fixed_rate()
[all …]
/linux/drivers/clk/sophgo/
H A Dclk-cv18xx-ip.c14 static inline struct cv1800_clk_gate *hw_to_cv1800_clk_gate(struct clk_hw *hw) in hw_to_cv1800_clk_gate()
21 static int gate_enable(struct clk_hw *hw) in gate_enable()
28 static void gate_disable(struct clk_hw *hw) in gate_disable()
35 static int gate_is_enabled(struct clk_hw *hw) in gate_is_enabled()
42 static unsigned long gate_recalc_rate(struct clk_hw *hw, in gate_recalc_rate()
48 static long gate_round_rate(struct clk_hw *hw, unsigned long rate, in gate_round_rate()
54 static int gate_set_rate(struct clk_hw *hw, unsigned long rate, in gate_set_rate()
79 static inline struct cv1800_clk_div *hw_to_cv1800_clk_div(struct clk_hw *hw) in hw_to_cv1800_clk_div()
86 static int div_enable(struct clk_hw *hw) in div_enable()
93 static void div_disable(struct clk_hw *hw) in div_disable()
[all …]
/linux/drivers/clk/ux500/
H A Dclk-prcmu.c20 struct clk_hw hw;
26 struct clk_hw hw;
34 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()
49 static unsigned long clk_prcmu_recalc_rate(struct clk_hw *hw, in clk_prcmu_recalc_rate()
56 static long clk_prcmu_round_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_round_rate()
63 static int clk_prcmu_set_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_set_rate()
70 static int clk_prcmu_opp_prepare(struct clk_hw *hw) in clk_prcmu_opp_prepare()
98 static void clk_prcmu_opp_unprepare(struct clk_hw *hw) in clk_prcmu_opp_unprepare()
115 static int clk_prcmu_opp_volt_prepare(struct clk_hw *hw) in clk_prcmu_opp_volt_prepare()
[all …]
/linux/drivers/clk/mediatek/
H A Dclk-gate.c18 struct clk_hw hw;
26 static inline struct mtk_clk_gate *to_mtk_clk_gate(struct clk_hw *hw) in to_mtk_clk_gate()
31 static u32 mtk_get_clockgating(struct clk_hw *hw) in mtk_get_clockgating()
41 static int mtk_cg_bit_is_cleared(struct clk_hw *hw) in mtk_cg_bit_is_cleared()
46 static int mtk_cg_bit_is_set(struct clk_hw *hw) in mtk_cg_bit_is_set()
51 static void mtk_cg_set_bit(struct clk_hw *hw) in mtk_cg_set_bit()
58 static void mtk_cg_clr_bit(struct clk_hw *hw) in mtk_cg_clr_bit()
65 static void mtk_cg_set_bit_no_setclr(struct clk_hw *hw) in mtk_cg_set_bit_no_setclr()
72 static void mtk_cg_clr_bit_no_setclr(struct clk_hw *hw) in mtk_cg_clr_bit_no_setclr()
79 static int mtk_cg_enable(struct clk_hw *hw) in mtk_cg_enable()
[all …]
H A Dclk-pll.h62 struct clk_hw hw;
82 static inline struct mtk_clk_pll *to_mtk_clk_pll(struct clk_hw *hw) in to_mtk_clk_pll()
87 int mtk_pll_is_prepared(struct clk_hw *hw);
89 int mtk_pll_prepare(struct clk_hw *hw);
91 void mtk_pll_unprepare(struct clk_hw *hw);
93 unsigned long mtk_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate);
97 int mtk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
99 long mtk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
102 struct clk_hw *mtk_clk_register_pll_ops(struct mtk_clk_pll *pll,
106 struct clk_hw *mtk_clk_register_pll(const struct mtk_pll_data *data,
[all …]
/linux/drivers/clk/imx/
H A Dclk-scu.h30 struct clk_hw *imx_scu_of_clk_src_get(struct of_phandle_args *clkspec,
32 struct clk_hw *imx_clk_scu_alloc_dev(const char *name,
36 struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
42 struct clk_hw *__imx_clk_lpcg_scu(struct device *dev, const char *name,
45 void imx_clk_lpcg_scu_unregister(struct clk_hw *hw);
47 struct clk_hw *__imx_clk_gpr_scu(const char *name, const char * const *parent_name,
51 static inline struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id, in imx_clk_scu()
57 static inline struct clk_hw *imx_clk_scu2(const char *name, const char * const *parents, in imx_clk_scu2()
63 static inline struct clk_hw *imx_clk_lpcg_scu_dev(struct device *dev, const char *name, in imx_clk_lpcg_scu_dev()
71 static inline struct clk_hw *imx_clk_lpcg_scu(const char *name, const char *parent_name, in imx_clk_lpcg_scu()
[all …]
H A Dclk.h13 void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count);
22 void imx_unregister_hw_clocks(struct clk_hw *hws[], unsigned int count);
95 struct clk_hw *imx_clk_fracn_gppll(const char *name, const char *parent_name, void __iomem *base,
97 struct clk_hw *imx_clk_fracn_gppll_integer(const char *name, const char *parent_name,
227 struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
231 struct clk_hw *imx_clk_hw_pllv1(enum imx_pllv1_type type, const char *name,
234 struct clk_hw *imx_clk_hw_pllv2(const char *name, const char *parent,
237 struct clk_hw *imx_clk_hw_frac_pll(const char *name, const char *parent_name,
240 struct clk_hw *imx_clk_hw_sscg_pll(const char *name,
260 struct clk_hw *imx_clk_hw_pllv3(enum imx_pllv3_type type, const char *name,
[all …]
/linux/drivers/clk/tegra/
H A Dclk-periph.c14 static u8 clk_periph_get_parent(struct clk_hw *hw) in clk_periph_get_parent()
18 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent()
25 static int clk_periph_set_parent(struct clk_hw *hw, u8 index) in clk_periph_set_parent()
29 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent()
36 static unsigned long clk_periph_recalc_rate(struct clk_hw *hw, in clk_periph_recalc_rate()
41 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate()
48 static int clk_periph_determine_rate(struct clk_hw *hw, in clk_periph_determine_rate()
53 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_determine_rate()
66 static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_set_rate()
71 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate()
[all …]
/linux/drivers/clk/qcom/
H A Dgcc-ipq5018.c127 .parent_hws = (const struct clk_hw *[]) {
141 .parent_hws = (const struct clk_hw *[]) {
155 .parent_hws = (const struct clk_hw *[]) {
169 .parent_hws = (const struct clk_hw *[]) {
183 .parent_hws = (const struct clk_hw *[]) {
637 .parent_hws = (const struct clk_hw *[]) {
667 .parent_hws = (const struct clk_hw *[]) {
707 .parent_hws = (const struct clk_hw *[]) {
747 .parent_hws = (const struct clk_hw *[]) {
976 .parent_hws = (const struct clk_hw *[]) {
[all …]
H A Dgcc-ipq5332.c72 .parent_hws = (const struct clk_hw *[]) {
85 .parent_hws = (const struct clk_hw *[]) {
113 .parent_hws = (const struct clk_hw *[]) {
141 .parent_hws = (const struct clk_hw *[]) {
568 .parent_hws = (const struct clk_hw *[]) {
611 .parent_hws = (const struct clk_hw *[]) {
674 .parent_hws = (const struct clk_hw *[]) {
822 .parent_hws = (const struct clk_hw *[]) {
835 .parent_hws = (const struct clk_hw *[]) {
847 .parent_hws = (const struct clk_hw *[]) {
[all …]
/linux/drivers/clk/actions/
H A Dowl-composite.c16 static u8 owl_comp_get_parent(struct clk_hw *hw) in owl_comp_get_parent()
23 static int owl_comp_set_parent(struct clk_hw *hw, u8 index) in owl_comp_set_parent()
30 static void owl_comp_disable(struct clk_hw *hw) in owl_comp_disable()
38 static int owl_comp_enable(struct clk_hw *hw) in owl_comp_enable()
48 static int owl_comp_is_enabled(struct clk_hw *hw) in owl_comp_is_enabled()
56 static int owl_comp_div_determine_rate(struct clk_hw *hw, in owl_comp_div_determine_rate()
71 static unsigned long owl_comp_div_recalc_rate(struct clk_hw *hw, in owl_comp_div_recalc_rate()
80 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_set_rate()
89 static int owl_comp_fact_determine_rate(struct clk_hw *hw, in owl_comp_fact_determine_rate()
105 static unsigned long owl_comp_fact_recalc_rate(struct clk_hw *hw, in owl_comp_fact_recalc_rate()
[all …]
/linux/drivers/clk/meson/
H A Daxg.c79 .parent_hws = (const struct clk_hw *[]) {
138 .parent_hws = (const struct clk_hw *[]) {
243 .parent_hws = (const struct clk_hw *[]) {
316 .parent_hws = (const struct clk_hw *[]) {
330 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw },
343 .parent_hws = (const struct clk_hw *[]) {
357 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw },
370 .parent_hws = (const struct clk_hw *[]) {
395 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw },
408 .parent_hws = (const struct clk_hw *[]) {
[all …]

12345678910>>...31