| /Linux-v5.4/include/linux/ |
| D | clk-provider.h | 37 struct clk_hw; 60 struct clk_hw *best_parent_hw; 215 int (*prepare)(struct clk_hw *hw); 216 void (*unprepare)(struct clk_hw *hw); 217 int (*is_prepared)(struct clk_hw *hw); 218 void (*unprepare_unused)(struct clk_hw *hw); 219 int (*enable)(struct clk_hw *hw); 220 void (*disable)(struct clk_hw *hw); 221 int (*is_enabled)(struct clk_hw *hw); 222 void (*disable_unused)(struct clk_hw *hw); [all …]
|
| /Linux-v5.4/drivers/clk/at91/ |
| D | pmc.h | 20 struct clk_hw **chws; 22 struct clk_hw **shws; 24 struct clk_hw **phws; 26 struct clk_hw **ghws; 103 struct clk_hw *of_clk_hw_pmc_get(struct of_phandle_args *clkspec, void *data); 105 struct clk_hw * __init 109 struct clk_hw * __init 113 struct clk_hw * __init 117 struct clk_hw * __init 124 struct clk_hw * __init [all …]
|
| D | clk-main.c | 29 struct clk_hw hw; 36 struct clk_hw hw; 45 struct clk_hw hw; 52 struct clk_hw hw; 68 static int clk_main_osc_prepare(struct clk_hw *hw) in clk_main_osc_prepare() 91 static void clk_main_osc_unprepare(struct clk_hw *hw) in clk_main_osc_unprepare() 108 static int clk_main_osc_is_prepared(struct clk_hw *hw) in clk_main_osc_is_prepared() 129 struct clk_hw * __init 137 struct clk_hw *hw; in at91_clk_register_main_osc() 181 static int clk_main_rc_osc_prepare(struct clk_hw *hw) in clk_main_rc_osc_prepare() [all …]
|
| D | clk-usb.c | 25 struct clk_hw hw; 34 struct clk_hw hw; 42 static unsigned long at91sam9x5_clk_usb_recalc_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_recalc_rate() 55 static int at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_determine_rate() 58 struct clk_hw *parent; in at91sam9x5_clk_usb_determine_rate() 106 static int at91sam9x5_clk_usb_set_parent(struct clk_hw *hw, u8 index) in at91sam9x5_clk_usb_set_parent() 118 static u8 at91sam9x5_clk_usb_get_parent(struct clk_hw *hw) in at91sam9x5_clk_usb_get_parent() 128 static int at91sam9x5_clk_usb_set_rate(struct clk_hw *hw, unsigned long rate, in at91sam9x5_clk_usb_set_rate() 155 static int at91sam9n12_clk_usb_enable(struct clk_hw *hw) in at91sam9n12_clk_usb_enable() 165 static void at91sam9n12_clk_usb_disable(struct clk_hw *hw) in at91sam9n12_clk_usb_disable() [all …]
|
| D | sckc.c | 30 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 …]
|
| D | clk-audio-pll.c | 59 struct clk_hw hw; 66 struct clk_hw hw; 73 struct clk_hw hw; 82 static int clk_audio_pll_frac_enable(struct clk_hw *hw) in clk_audio_pll_frac_enable() 107 static int clk_audio_pll_pad_enable(struct clk_hw *hw) in clk_audio_pll_pad_enable() 120 static int clk_audio_pll_pmc_enable(struct clk_hw *hw) in clk_audio_pll_pmc_enable() 132 static void clk_audio_pll_frac_disable(struct clk_hw *hw) in clk_audio_pll_frac_disable() 143 static void clk_audio_pll_pad_disable(struct clk_hw *hw) in clk_audio_pll_pad_disable() 151 static void clk_audio_pll_pmc_disable(struct clk_hw *hw) in clk_audio_pll_pmc_disable() 173 static unsigned long clk_audio_pll_frac_recalc_rate(struct clk_hw *hw, in clk_audio_pll_frac_recalc_rate() [all …]
|
| /Linux-v5.4/drivers/clk/samsung/ |
| D | clk.c | 90 struct clk_hw *clk_hw, unsigned int id) in samsung_clk_add_lookup() argument 93 ctx->clk_data.hws[id] = clk_hw; in samsung_clk_add_lookup() 101 struct clk_hw *clk_hw; in samsung_clk_register_alias() local 111 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 112 if (!clk_hw) { in samsung_clk_register_alias() 118 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 131 struct clk_hw *clk_hw; in samsung_clk_register_fixed_rate() local 135 clk_hw = clk_hw_register_fixed_rate(ctx->dev, list->name, in samsung_clk_register_fixed_rate() 137 if (IS_ERR(clk_hw)) { in samsung_clk_register_fixed_rate() 143 samsung_clk_add_lookup(ctx, clk_hw, list->id); in samsung_clk_register_fixed_rate() [all …]
|
| /Linux-v5.4/drivers/clk/ti/ |
| D | clock.h | 20 struct clk_hw hw; 33 struct clk_hw hw; 211 struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw, 213 struct clk *ti_clk_register_omap_hw(struct device *dev, struct clk_hw *hw, 220 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup); 231 int ti_clk_add_component(struct device_node *node, struct clk_hw *hw, int type); 255 void omap2_init_clk_clkdm(struct clk_hw *hw); 256 int omap2_clkops_enable_clkdm(struct clk_hw *hw); 257 void omap2_clkops_disable_clkdm(struct clk_hw *hw); 259 int omap2_dflt_clk_enable(struct clk_hw *hw); [all …]
|
| D | apll.c | 40 static int dra7_apll_enable(struct clk_hw *hw) in dra7_apll_enable() 91 static void dra7_apll_disable(struct clk_hw *hw) in dra7_apll_disable() 108 static int dra7_apll_is_enabled(struct clk_hw *hw) in dra7_apll_is_enabled() 124 static u8 dra7_init_apll_parent(struct clk_hw *hw) in dra7_init_apll_parent() 139 struct clk_hw *hw = user; in omap_clk_register_apll() 140 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in omap_clk_register_apll() local 141 struct dpll_data *ad = clk_hw->dpll_data; in omap_clk_register_apll() 143 const struct clk_init_data *init = clk_hw->hw.init; in omap_clk_register_apll() 169 clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, node->name); in omap_clk_register_apll() 178 kfree(clk_hw->dpll_data); in omap_clk_register_apll() [all …]
|
| D | dpll.c | 164 struct clk_hw *hw = user; in _register_dpll() 165 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in _register_dpll() local 166 struct dpll_data *dd = clk_hw->dpll_data; in _register_dpll() 196 clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, node->name); in _register_dpll() 206 kfree(clk_hw->dpll_data); in _register_dpll() 209 kfree(clk_hw); in _register_dpll() 229 struct clk_hw_omap *clk_hw; in _register_dpll_x2() local 239 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_dpll_x2() 240 if (!clk_hw) in _register_dpll_x2() 243 clk_hw->ops = hw_ops; in _register_dpll_x2() [all …]
|
| D | interface.c | 41 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 memcpy(&clk_hw->enable_reg, reg, sizeof(*reg)); in _register_interface() 51 clk_hw->enable_bit = bit_idx; in _register_interface() 60 clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name); in _register_interface() 63 kfree(clk_hw); in _register_interface()
|
| D | gate.c | 30 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *clk); 66 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *hw) in omap36xx_gate_clk_enable_with_hsdiv_restore() 69 struct clk_hw *parent_hw; in omap36xx_gate_clk_enable_with_hsdiv_restore() 103 struct clk_hw_omap *clk_hw; in _register_gate() local 106 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_gate() 107 if (!clk_hw) in _register_gate() 110 clk_hw->hw.init = &init; in _register_gate() 115 memcpy(&clk_hw->enable_reg, reg, sizeof(*reg)); in _register_gate() 116 clk_hw->enable_bit = bit_idx; in _register_gate() 117 clk_hw->ops = hw_ops; in _register_gate() [all …]
|
| D | clockdomain.c | 42 int omap2_clkops_enable_clkdm(struct clk_hw *hw) in omap2_clkops_enable_clkdm() 77 void omap2_clkops_disable_clkdm(struct clk_hw *hw) in omap2_clkops_disable_clkdm() 106 void omap2_init_clk_clkdm(struct clk_hw *hw) in omap2_init_clk_clkdm() 131 struct clk_hw *clk_hw; in of_ti_clockdomain_setup() local 145 clk_hw = __clk_get_hw(clk); in of_ti_clockdomain_setup() 146 if (!omap2_clk_is_hw_omap(clk_hw)) { in of_ti_clockdomain_setup() 151 to_clk_hw_omap(clk_hw)->clkdm_name = clkdm_name; in of_ti_clockdomain_setup() 152 omap2_init_clk_clkdm(clk_hw); in of_ti_clockdomain_setup()
|
| /Linux-v5.4/drivers/clk/ |
| D | clk-composite.c | 10 static u8 clk_composite_get_parent(struct clk_hw *hw) in clk_composite_get_parent() 14 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_get_parent() 21 static int clk_composite_set_parent(struct clk_hw *hw, u8 index) in clk_composite_set_parent() 25 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_set_parent() 32 static unsigned long clk_composite_recalc_rate(struct clk_hw *hw, in clk_composite_recalc_rate() 37 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_recalc_rate() 44 static int clk_composite_determine_rate(struct clk_hw *hw, in clk_composite_determine_rate() 50 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_determine_rate() 51 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_determine_rate() 52 struct clk_hw *parent; in clk_composite_determine_rate() [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-axi-clkgen.c | 47 struct clk_hw clk_hw; member 244 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument 246 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen() 249 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument 252 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate() 299 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate() 316 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument 319 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate() 355 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument 357 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 …]
|
| D | clk-rk808.c | 19 struct clk_hw clkout1_hw; 20 struct clk_hw clkout2_hw; 23 static unsigned long rk808_clkout_recalc_rate(struct clk_hw *hw, in rk808_clkout_recalc_rate() 29 static int rk808_clkout2_enable(struct clk_hw *hw, bool enable) in rk808_clkout2_enable() 40 static int rk808_clkout2_prepare(struct clk_hw *hw) in rk808_clkout2_prepare() 45 static void rk808_clkout2_unprepare(struct clk_hw *hw) in rk808_clkout2_unprepare() 50 static int rk808_clkout2_is_prepared(struct clk_hw *hw) in rk808_clkout2_is_prepared() 77 static struct clk_hw * 91 static int rk817_clkout2_enable(struct clk_hw *hw, bool enable) in rk817_clkout2_enable() 103 static int rk817_clkout2_prepare(struct clk_hw *hw) in rk817_clkout2_prepare() [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() 67 static struct clk_hw * 75 struct clk_hw *hw; in __clk_hw_register_fixed_factor() 109 struct clk_hw *clk_hw_register_fixed_factor(struct device *dev, in clk_hw_register_fixed_factor() 122 struct clk_hw *hw; in clk_register_fixed_factor() 134 struct clk_hw *hw; in clk_unregister_fixed_factor() 145 void clk_hw_unregister_fixed_factor(struct clk_hw *hw) in clk_hw_unregister_fixed_factor() 162 static struct clk_hw *_of_fixed_factor_clk_setup(struct device_node *node) in _of_fixed_factor_clk_setup() [all …]
|
| /Linux-v5.4/drivers/clk/mediatek/ |
| D | clk-gate.c | 18 static int mtk_cg_bit_is_cleared(struct clk_hw *hw) in mtk_cg_bit_is_cleared() 30 static int mtk_cg_bit_is_set(struct clk_hw *hw) in mtk_cg_bit_is_set() 42 static void mtk_cg_set_bit(struct clk_hw *hw) in mtk_cg_set_bit() 49 static void mtk_cg_clr_bit(struct clk_hw *hw) in mtk_cg_clr_bit() 56 static void mtk_cg_set_bit_no_setclr(struct clk_hw *hw) in mtk_cg_set_bit_no_setclr() 64 static void mtk_cg_clr_bit_no_setclr(struct clk_hw *hw) in mtk_cg_clr_bit_no_setclr() 72 static int mtk_cg_enable(struct clk_hw *hw) in mtk_cg_enable() 79 static void mtk_cg_disable(struct clk_hw *hw) in mtk_cg_disable() 84 static int mtk_cg_enable_inv(struct clk_hw *hw) in mtk_cg_enable_inv() 91 static void mtk_cg_disable_inv(struct clk_hw *hw) in mtk_cg_disable_inv() [all …]
|
| /Linux-v5.4/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-v5.4/drivers/clk/imx/ |
| D | clk.h | 11 void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count); 129 struct clk_hw *imx_clk_hw_pllv3(enum imx_pllv3_type type, const char *name, 149 struct clk_hw *imx_clk_pllv4(const char *name, const char *parent_name, 152 struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name, 161 struct clk_hw *imx_obtain_fixed_clock_hw( 164 struct clk_hw *imx_obtain_fixed_clk_hw(struct device_node *np, 167 struct clk_hw *imx_clk_hw_gate_exclusive(const char *name, const char *parent, 170 struct clk_hw *imx_clk_hw_pfd(const char *name, const char *parent_name, 173 struct clk_hw *imx_clk_pfdv2(const char *name, const char *parent_name, 176 struct clk_hw *imx_clk_hw_busy_divider(const char *name, const char *parent_name, [all …]
|
| /Linux-v5.4/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-v5.4/drivers/clk/tegra/ |
| D | clk-periph.c | 13 static u8 clk_periph_get_parent(struct clk_hw *hw) in clk_periph_get_parent() 17 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent() 24 static int clk_periph_set_parent(struct clk_hw *hw, u8 index) in clk_periph_set_parent() 28 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent() 35 static unsigned long clk_periph_recalc_rate(struct clk_hw *hw, in clk_periph_recalc_rate() 40 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate() 47 static long clk_periph_round_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_round_rate() 52 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_round_rate() 59 static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_set_rate() 64 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate() [all …]
|
| /Linux-v5.4/drivers/clk/st/ |
| D | clk-flexgen.c | 25 struct clk_hw hw; 46 static int flexgen_enable(struct clk_hw *hw) in flexgen_enable() 49 struct clk_hw *pgate_hw = &flexgen->pgate.hw; in flexgen_enable() 50 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_enable() 63 static void flexgen_disable(struct clk_hw *hw) in flexgen_disable() 66 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_disable() 76 static int flexgen_is_enabled(struct clk_hw *hw) in flexgen_is_enabled() 79 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_is_enabled() 89 static u8 flexgen_get_parent(struct clk_hw *hw) in flexgen_get_parent() 92 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_get_parent() [all …]
|