Home
last modified time | relevance | path

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

12345678910>>...25

/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[];
145 struct clk_hw *of_clk_hw_pmc_get(struct of_phandle_args *clkspec, void *data);
147 struct clk_hw * __init
151 struct clk_hw * __init
155 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.c32 struct clk_hw hw;
41 struct clk_hw hw;
51 struct clk_hw hw;
62 struct clk_hw hw;
70 static int clk_slow_osc_prepare(struct clk_hw *hw) in clk_slow_osc_prepare()
89 static void clk_slow_osc_unprepare(struct clk_hw *hw) in clk_slow_osc_unprepare()
101 static int clk_slow_osc_is_prepared(struct clk_hw *hw) in clk_slow_osc_is_prepared()
119 static struct clk_hw * __init
128 struct clk_hw *hw; in at91_clk_register_slow_osc()
164 static void at91_clk_unregister_slow_osc(struct clk_hw *hw) in at91_clk_unregister_slow_osc()
[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 int clk_factor_determine_rate(struct clk_hw *hw, in clk_factor_determine_rate()
50 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factor_set_rate()
62 static unsigned long clk_factor_recalc_accuracy(struct clk_hw *hw, in clk_factor_recalc_accuracy()
93 static struct clk_hw *
96 const struct clk_hw *parent_hw, const struct clk_parent_data *pdata, in __clk_hw_register_fixed_factor()
102 struct clk_hw *hw; in __clk_hw_register_fixed_factor()
165 struct clk_hw *devm_clk_hw_register_fixed_factor_index(struct device *dev, in devm_clk_hw_register_fixed_factor_index()
189 struct clk_hw *devm_clk_hw_register_fixed_factor_parent_hw(struct device *dev, in devm_clk_hw_register_fixed_factor_parent_hw()
190 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 …]
H A Dclk-axi-clkgen.c65 struct clk_hw clk_hw; member
323 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument
325 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen()
346 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, unsigned long rate, in axi_clkgen_set_rate() argument
349 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate()
395 static int axi_clkgen_determine_rate(struct clk_hw *hw, in axi_clkgen_determine_rate()
443 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument
446 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate()
471 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument
473 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_enable()
[all …]
/linux/drivers/clk/ti/
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 …]
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 …]
/linux/drivers/clk/samsung/
H A Dclk.c112 struct clk_hw *clk_hw, unsigned int id) in samsung_clk_add_lookup() argument
115 ctx->clk_data.hws[id] = clk_hw; in samsung_clk_add_lookup()
123 struct clk_hw *clk_hw; in samsung_clk_register_alias() local
133 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias()
134 if (!clk_hw) { in samsung_clk_register_alias()
140 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias()
153 struct clk_hw *clk_hw; in samsung_clk_register_fixed_rate() local
157 clk_hw = clk_hw_register_fixed_rate(ctx->dev, list->name, in samsung_clk_register_fixed_rate()
159 if (IS_ERR(clk_hw)) { in samsung_clk_register_fixed_rate()
165 samsung_clk_add_lookup(ctx, clk_hw, list->id); in samsung_clk_register_fixed_rate()
[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 int clk_prcmu_determine_rate(struct clk_hw *hw, in clk_prcmu_determine_rate()
65 static int clk_prcmu_set_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_set_rate()
72 static int clk_prcmu_opp_prepare(struct clk_hw *hw) in clk_prcmu_opp_prepare()
100 static void clk_prcmu_opp_unprepare(struct clk_hw *hw) in clk_prcmu_opp_unprepare()
117 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.c20 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()
73 static void mtk_cg_clr_bit_no_setclr(struct clk_hw *hw) in mtk_cg_clr_bit_no_setclr()
81 static int mtk_cg_enable(struct clk_hw *hw) in mtk_cg_enable()
[all …]
/linux/drivers/clk/imx/
H A Dclk-scu.h32 struct clk_hw *imx_scu_of_clk_src_get(struct of_phandle_args *clkspec,
34 struct clk_hw *imx_clk_scu_alloc_dev(const char *name,
38 struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
44 struct clk_hw *__imx_clk_lpcg_scu(struct device *dev, const char *name,
47 void imx_clk_lpcg_scu_unregister(struct clk_hw *hw);
49 struct clk_hw *__imx_clk_gpr_scu(const char *name, const char * const *parent_name,
53 static inline struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id, in imx_clk_scu()
59 static inline struct clk_hw *imx_clk_scu2(const char *name, const char * const *parents, in imx_clk_scu2()
65 static inline struct clk_hw *imx_clk_lpcg_scu_dev(struct device *dev, const char *name, in imx_clk_lpcg_scu_dev()
73 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()
60 static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_set_rate()
65 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate()
[all …]
/linux/drivers/clk/qcom/
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 …]
H A Dnsscc-qca8k.c90 .parent_hws = (const struct clk_hw *[]) {
108 .parent_hws = (const struct clk_hw *[]) {
148 .parent_hws = (const struct clk_hw *[]) {
166 .parent_hws = (const struct clk_hw *[]) {
184 .parent_hws = (const struct clk_hw *[]) {
226 .parent_hws = (const struct clk_hw *[]) {
244 .parent_hws = (const struct clk_hw *[]) {
262 .parent_hws = (const struct clk_hw *[]) {
327 .parent_hws = (const struct clk_hw *[]) {
344 .parent_hws = (const struct clk_hw *[]) {
[all …]
H A Dgcc-ipq6018.c71 .parent_hws = (const struct clk_hw *[]){
84 .parent_hws = (const struct clk_hw *[]){
127 .parent_hws = (const struct clk_hw *[]){
158 .parent_hws = (const struct clk_hw *[]){
188 .parent_hws = (const struct clk_hw *[]){
238 .parent_hws = (const struct clk_hw *[]){
268 .parent_hws = (const struct clk_hw *[]){
316 .parent_hws = (const struct clk_hw *[]){
347 .parent_hws = (const struct clk_hw *[]){
703 .parent_hws = (const struct clk_hw *[]){
[all …]
H A Dgcc-ipq5424.c74 .parent_hws = (const struct clk_hw *[]) {
88 .parent_hws = (const struct clk_hw *[]) {
123 .parent_hws = (const struct clk_hw*[]) {
352 .parent_hws = (const struct clk_hw*[]) {
367 .parent_hws = (const struct clk_hw *[]) {
840 .parent_hws = (const struct clk_hw *[]) {
854 .parent_hws = (const struct clk_hw *[]) {
942 .parent_hws = (const struct clk_hw *[]) {
1068 .parent_hws = (const struct clk_hw*[]) {
1083 .parent_hws = (const struct clk_hw*[]) {
[all …]
/linux/drivers/clk/meson/
H A Daxg.c164 .parent_hws = (const struct clk_hw *[]) {
223 .parent_hws = (const struct clk_hw *[]) {
328 .parent_hws = (const struct clk_hw *[]) {
401 .parent_hws = (const struct clk_hw *[]) {
415 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw },
428 .parent_hws = (const struct clk_hw *[]) {
442 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw },
455 .parent_hws = (const struct clk_hw *[]) {
480 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw },
493 .parent_hws = (const struct clk_hw *[]) {
[all …]
/linux/drivers/clk/socfpga/
H A Dstratix10-clk.h113 struct clk_hw *s10_register_pll(const struct stratix10_pll_clock *clks,
115 struct clk_hw *agilex_register_pll(const struct stratix10_pll_clock *clks,
117 struct clk_hw *n5x_register_pll(const struct stratix10_pll_clock *clks,
119 struct clk_hw *agilex5_register_pll(const struct agilex5_pll_clock *clks,
121 struct clk_hw *agilex5_register_cnt_periph(const struct agilex5_perip_cnt_clock *clks,
123 struct clk_hw *agilex5_register_gate(const struct agilex5_gate_clock *clks,
125 struct clk_hw *s10_register_periph(const struct stratix10_perip_c_clock *clks,
127 struct clk_hw *n5x_register_periph(const struct n5x_perip_c_clock *clks,
129 struct clk_hw *s10_register_cnt_periph(const struct stratix10_perip_cnt_clock *clks,
131 struct clk_hw *s10_register_gate(const struct stratix10_gate_clock *clks,
[all …]

12345678910>>...25