| /linux/drivers/clk/at91/ |
| H A D | pmc.h | 22 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 D | clk-utmi.c | 23 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 D | clk-main.c | 29 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 D | clk-usb.c | 25 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 D | sckc.c | 32 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/include/linux/ |
| H A D | clk-provider.h | 50 struct clk_hw; 77 struct clk_hw *best_parent_hw; 80 void clk_hw_init_rate_request(const struct clk_hw *hw, 83 void clk_hw_forward_rate_request(const struct clk_hw *core, 85 const struct clk_hw *parent, 270 int (*prepare)(struct clk_hw *hw); 271 void (*unprepare)(struct clk_hw *hw); 272 int (*is_prepared)(struct clk_hw *hw); 273 void (*unprepare_unused)(struct clk_hw *hw); 274 int (*enable)(struct clk_hw *hw); [all …]
|
| /linux/drivers/clk/ |
| H A D | clk-composite.c | 11 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() 56 static int clk_composite_determine_rate(struct clk_hw *hw, in clk_composite_determine_rate() 62 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_determine_rate() [all …]
|
| H A D | clk-gate_test.c | 13 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 D | clk-hi655x.c | 22 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 D | clk-fixed-factor.c | 22 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() 39 struct clk_hw *parent_hw = clk_hw_get_parent(hw); in clk_factor_determine_rate() 54 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long rate, in clk_factor_set_rate() 66 static unsigned long clk_factor_recalc_accuracy(struct clk_hw *hw, in clk_factor_recalc_accuracy() 97 struct clk_hw * 100 const struct clk_hw *parent_hw, const struct clk_parent_data *pdata, in __clk_hw_register_fixed_factor() 106 struct clk_hw *hw; in __clk_hw_register_fixed_factor() 170 struct clk_hw *devm_clk_hw_register_fixed_factor_index(struct device *dev, in devm_clk_hw_register_fixed_factor_index() 181 struct clk_hw *clk_hw_register_fixed_factor_fwname(struct device *dev, in clk_hw_register_fixed_factor_fwname() [all …]
|
| H A D | clk-gpio.c | 47 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 D | clk-max9485.c | 71 struct clk_hw hw; 86 static inline struct max9485_clk_hw *to_max9485_clk(struct clk_hw *hw) in to_max9485_clk() 110 static int max9485_clk_prepare(struct clk_hw *hw) in max9485_clk_prepare() 112 struct max9485_clk_hw *clk_hw = to_max9485_clk(hw); in max9485_clk_prepare() local 114 return max9485_update_bits(clk_hw->drvdata, in max9485_clk_prepare() 115 clk_hw->enable_bit, in max9485_clk_prepare() 116 clk_hw->enable_bit); in max9485_clk_prepare() 119 static void max9485_clk_unprepare(struct clk_hw *hw) in max9485_clk_unprepare() 121 struct max9485_clk_hw *clk_hw = to_max9485_clk(hw); in max9485_clk_unprepare() local 123 max9485_update_bits(clk_hw->drvdata, clk_hw->enable_bit, 0); in max9485_clk_unprepare() [all …]
|
| /linux/drivers/clk/eswin/ |
| H A D | clk.c | 83 static inline struct eswin_clk_pll *to_pll_clk(struct clk_hw *hw) in to_pll_clk() 88 static int clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pll_set_rate() 135 static unsigned long clk_pll_recalc_rate(struct clk_hw *hw, in clk_pll_recalc_rate() 163 static int clk_pll_determine_rate(struct clk_hw *hw, in clk_pll_determine_rate() 179 struct clk_hw *clk_hw; in eswin_clk_register_fixed_rate() local 183 clk_hw = devm_clk_hw_register_fixed_rate(dev, clks[i].name, in eswin_clk_register_fixed_rate() 186 if (IS_ERR(clk_hw)) in eswin_clk_register_fixed_rate() 187 return PTR_ERR(clk_hw); in eswin_clk_register_fixed_rate() 189 clks[i].hw = *clk_hw; in eswin_clk_register_fixed_rate() 190 data->clk_data.hws[clks[i].id] = clk_hw; in eswin_clk_register_fixed_rate() [all …]
|
| /linux/drivers/clk/ti/ |
| H A D | clock.h | 12 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 D | apll.c | 32 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 D | clk.c | 111 struct clk_hw *clk_hw, unsigned int id) in samsung_clk_add_lookup() argument 114 ctx->clk_data.hws[id] = clk_hw; in samsung_clk_add_lookup() 122 struct clk_hw *clk_hw; in samsung_clk_register_alias() local 132 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 133 if (!clk_hw) { in samsung_clk_register_alias() 139 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 152 struct clk_hw *clk_hw; in samsung_clk_register_fixed_rate() local 156 clk_hw = clk_hw_register_fixed_rate(ctx->dev, list->name, in samsung_clk_register_fixed_rate() 158 if (IS_ERR(clk_hw)) { in samsung_clk_register_fixed_rate() 164 samsung_clk_add_lookup(ctx, clk_hw, list->id); in samsung_clk_register_fixed_rate() [all …]
|
| /linux/drivers/clk/imx/ |
| H A D | clk-scu.h | 32 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 D | clk.h | 13 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/mediatek/ |
| H A D | clk-gate.c | 20 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/tegra/ |
| H A D | clk-periph.c | 14 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/socfpga/ |
| H A D | stratix10-clk.h | 113 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 …]
|
| /linux/drivers/clk/qcom/ |
| H A D | gcc-ipq5018.c | 126 .parent_hws = (const struct clk_hw *[]) { 140 .parent_hws = (const struct clk_hw *[]) { 154 .parent_hws = (const struct clk_hw *[]) { 168 .parent_hws = (const struct clk_hw *[]) { 182 .parent_hws = (const struct clk_hw *[]) { 636 .parent_hws = (const struct clk_hw *[]) { 666 .parent_hws = (const struct clk_hw *[]) { 706 .parent_hws = (const struct clk_hw *[]) { 746 .parent_hws = (const struct clk_hw *[]) { 975 .parent_hws = (const struct clk_hw *[]) { [all …]
|
| H A D | gcc-ipq5332.c | 71 .parent_hws = (const struct clk_hw *[]) { 84 .parent_hws = (const struct clk_hw *[]) { 112 .parent_hws = (const struct clk_hw *[]) { 140 .parent_hws = (const struct clk_hw *[]) { 567 .parent_hws = (const struct clk_hw *[]) { 610 .parent_hws = (const struct clk_hw *[]) { 673 .parent_hws = (const struct clk_hw *[]) { 821 .parent_hws = (const struct clk_hw *[]) { 834 .parent_hws = (const struct clk_hw *[]) { 846 .parent_hws = (const struct clk_hw *[]) { [all …]
|
| H A D | nsscc-qca8k.c | 90 .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 …]
|
| /linux/drivers/clk/meson/ |
| H A D | axg.c | 163 .parent_hws = (const struct clk_hw *[]) { 222 .parent_hws = (const struct clk_hw *[]) { 327 .parent_hws = (const struct clk_hw *[]) { 400 .parent_hws = (const struct clk_hw *[]) { 414 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw }, 427 .parent_hws = (const struct clk_hw *[]) { 441 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw }, 454 .parent_hws = (const struct clk_hw *[]) { 479 .parent_hws = (const struct clk_hw *[]) { &axg_fixed_pll.hw }, 492 .parent_hws = (const struct clk_hw *[]) { [all …]
|