| /Linux-v6.1/include/linux/ |
| D | clk-provider.h | 37 struct clk_hw; 62 struct clk_hw *best_parent_hw; 65 void clk_hw_init_rate_request(const struct clk_hw *hw, 68 void clk_hw_forward_rate_request(const struct clk_hw *core, 70 const struct clk_hw *parent, 233 int (*prepare)(struct clk_hw *hw); 234 void (*unprepare)(struct clk_hw *hw); 235 int (*is_prepared)(struct clk_hw *hw); 236 void (*unprepare_unused)(struct clk_hw *hw); 237 int (*enable)(struct clk_hw *hw); [all …]
|
| /Linux-v6.1/drivers/clk/at91/ |
| 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[]; 129 struct clk_hw *of_clk_hw_pmc_get(struct of_phandle_args *clkspec, void *data); 131 struct clk_hw * __init 135 struct clk_hw * __init 139 struct clk_hw * __init [all …]
|
| 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 150 struct clk_hw *hw; in at91_clk_register_utmi_internal() [all …]
|
| 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 …]
|
| 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 …]
|
| /Linux-v6.1/drivers/clk/ |
| 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() 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 …]
|
| 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 …]
|
| 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 …]
|
| D | clk-fixed-factor.c | 22 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() 79 static struct clk_hw * 82 const struct clk_hw *parent_hw, int index, in __clk_hw_register_fixed_factor() 89 struct clk_hw *hw; in __clk_hw_register_fixed_factor() 150 struct clk_hw *devm_clk_hw_register_fixed_factor_index(struct device *dev, in devm_clk_hw_register_fixed_factor_index() 172 struct clk_hw *devm_clk_hw_register_fixed_factor_parent_hw(struct device *dev, in devm_clk_hw_register_fixed_factor_parent_hw() 173 const char *name, const struct clk_hw *parent_hw, in devm_clk_hw_register_fixed_factor_parent_hw() 181 struct clk_hw *clk_hw_register_fixed_factor_parent_hw(struct device *dev, in clk_hw_register_fixed_factor_parent_hw() [all …]
|
| D | clk-gpio.c | 45 struct clk_hw hw; 51 static int clk_gpio_gate_enable(struct clk_hw *hw) in clk_gpio_gate_enable() 60 static void clk_gpio_gate_disable(struct clk_hw *hw) in clk_gpio_gate_disable() 67 static int clk_gpio_gate_is_enabled(struct clk_hw *hw) in clk_gpio_gate_is_enabled() 80 static int clk_sleeping_gpio_gate_prepare(struct clk_hw *hw) in clk_sleeping_gpio_gate_prepare() 89 static void clk_sleeping_gpio_gate_unprepare(struct clk_hw *hw) in clk_sleeping_gpio_gate_unprepare() 96 static int clk_sleeping_gpio_gate_is_prepared(struct clk_hw *hw) in clk_sleeping_gpio_gate_is_prepared() 117 static u8 clk_gpio_mux_get_parent(struct clk_hw *hw) in clk_gpio_mux_get_parent() 124 static int clk_gpio_mux_set_parent(struct clk_hw *hw, u8 index) in clk_gpio_mux_set_parent() 139 static struct clk_hw *clk_register_gpio(struct device *dev, u8 num_parents, in clk_register_gpio() [all …]
|
| D | clk-axi-clkgen.c | 58 struct clk_hw clk_hw; member 315 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument 317 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen() 336 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument 339 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate() 387 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate() 433 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument 436 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate() 461 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument 463 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_enable() [all …]
|
| 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-v6.1/drivers/clk/samsung/ |
| D | clk.c | 89 struct clk_hw *clk_hw, unsigned int id) in samsung_clk_add_lookup() argument 92 ctx->clk_data.hws[id] = clk_hw; in samsung_clk_add_lookup() 100 struct clk_hw *clk_hw; in samsung_clk_register_alias() local 110 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 111 if (!clk_hw) { in samsung_clk_register_alias() 117 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 130 struct clk_hw *clk_hw; in samsung_clk_register_fixed_rate() local 134 clk_hw = clk_hw_register_fixed_rate(ctx->dev, list->name, in samsung_clk_register_fixed_rate() 136 if (IS_ERR(clk_hw)) { in samsung_clk_register_fixed_rate() 142 samsung_clk_add_lookup(ctx, clk_hw, list->id); in samsung_clk_register_fixed_rate() [all …]
|
| /Linux-v6.1/drivers/clk/ti/ |
| D | clock.h | 12 struct clk_hw hw; 27 struct clk_hw hw; 202 struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw, 204 struct clk *ti_clk_register_omap_hw(struct device *dev, struct clk_hw *hw, 212 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup); 222 int ti_clk_add_component(struct device_node *node, struct clk_hw *hw, int type); 246 int omap2_init_clk_clkdm(struct clk_hw *hw); 247 int omap2_clkops_enable_clkdm(struct clk_hw *hw); 248 void omap2_clkops_disable_clkdm(struct clk_hw *hw); 250 int omap2_dflt_clk_enable(struct clk_hw *hw); [all …]
|
| 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 = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name); in omap_clk_register_apll() 172 kfree(clk_hw->dpll_data); in omap_clk_register_apll() [all …]
|
| /Linux-v6.1/drivers/clk/imx/ |
| D | clk-scu.h | 30 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 …]
|
| D | clk.h | 13 void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count); 23 void imx_unregister_hw_clocks(struct clk_hw *hws[], unsigned int count); 92 struct clk_hw *imx_clk_fracn_gppll(const char *name, const char *parent_name, void __iomem *base, 223 struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name, 227 struct clk_hw *imx_clk_hw_pllv1(enum imx_pllv1_type type, const char *name, 230 struct clk_hw *imx_clk_hw_pllv2(const char *name, const char *parent, 233 struct clk_hw *imx_clk_hw_frac_pll(const char *name, const char *parent_name, 236 struct clk_hw *imx_clk_hw_sscg_pll(const char *name, 256 struct clk_hw *imx_clk_hw_pllv3(enum imx_pllv3_type type, const char *name, 276 struct clk_hw *imx_clk_hw_pllv4(enum imx_pllv4_type type, const char *name, [all …]
|
| /Linux-v6.1/drivers/clk/mediatek/ |
| D | clk-gate.c | 18 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 …]
|
| /Linux-v6.1/drivers/clk/ux500/ |
| D | clk-prcmu.c | 20 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-v6.1/drivers/clk/tegra/ |
| 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 long clk_periph_round_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_round_rate() 53 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_round_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-v6.1/drivers/clk/actions/ |
| D | owl-composite.c | 16 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 long owl_comp_div_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_round_rate() 65 static unsigned long owl_comp_div_recalc_rate(struct clk_hw *hw, in owl_comp_div_recalc_rate() 74 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_set_rate() 83 static long owl_comp_fact_round_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_fact_round_rate() 93 static unsigned long owl_comp_fact_recalc_rate(struct clk_hw *hw, in owl_comp_fact_recalc_rate() [all …]
|
| /Linux-v6.1/arch/arm/mach-omap2/ |
| D | clock2xxx.h | 15 unsigned long omap2_table_mpu_recalc(struct clk_hw *clk, 17 int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate, 19 long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate, 21 unsigned long omap2xxx_sys_clk_recalc(struct clk_hw *clk, 23 unsigned long omap2_osc_clk_recalc(struct clk_hw *clk, 25 void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw); 44 extern struct clk_hw *dclk_hw;
|
| /Linux-v6.1/drivers/clk/stm32/ |
| D | clk-stm32-core.c | 29 struct clk_hw **hws; in stm32_rcc_clock_init() 47 struct clk_hw *hw = ERR_PTR(-ENOENT); in stm32_rcc_clock_init() 256 static u8 clk_stm32_mux_get_parent(struct clk_hw *hw) in clk_stm32_mux_get_parent() 263 static int clk_stm32_mux_set_parent(struct clk_hw *hw, u8 index) in clk_stm32_mux_set_parent() 282 static void clk_stm32_gate_endisable(struct clk_hw *hw, int enable) in clk_stm32_gate_endisable() 294 static int clk_stm32_gate_enable(struct clk_hw *hw) in clk_stm32_gate_enable() 301 static void clk_stm32_gate_disable(struct clk_hw *hw) in clk_stm32_gate_disable() 306 static int clk_stm32_gate_is_enabled(struct clk_hw *hw) in clk_stm32_gate_is_enabled() 313 static void clk_stm32_gate_disable_unused(struct clk_hw *hw) in clk_stm32_gate_disable_unused() 332 static int clk_stm32_divider_set_rate(struct clk_hw *hw, unsigned long rate, in clk_stm32_divider_set_rate() [all …]
|
| /Linux-v6.1/drivers/clk/meson/ |
| D | axg.c | 79 .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 …]
|
| /Linux-v6.1/drivers/clk/renesas/ |
| D | rzg2l-cpg.c | 63 struct clk_hw hw; 131 struct clk_hw *clk_hw; in rzg2l_cpg_div_clk_register() local 140 clk_hw = clk_hw_register_divider_table(dev, core->name, in rzg2l_cpg_div_clk_register() 149 clk_hw = clk_hw_register_divider(dev, core->name, in rzg2l_cpg_div_clk_register() 156 if (IS_ERR(clk_hw)) in rzg2l_cpg_div_clk_register() 157 return ERR_CAST(clk_hw); in rzg2l_cpg_div_clk_register() 159 return clk_hw->clk; in rzg2l_cpg_div_clk_register() 167 const struct clk_hw *clk_hw; in rzg2l_cpg_mux_clk_register() local 169 clk_hw = devm_clk_hw_register_mux(priv->dev, core->name, in rzg2l_cpg_mux_clk_register() 176 if (IS_ERR(clk_hw)) in rzg2l_cpg_mux_clk_register() [all …]
|