| /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 …]
|
| H A D | clk-system.c | 21 struct clk_hw hw; 41 static int clk_system_prepare(struct clk_hw *hw) in clk_system_prepare() 56 static void clk_system_unprepare(struct clk_hw *hw) in clk_system_unprepare() 63 static int clk_system_is_prepared(struct clk_hw *hw) in clk_system_is_prepared() 81 static int clk_system_save_context(struct clk_hw *hw) in clk_system_save_context() 90 static void clk_system_restore_context(struct clk_hw *hw) in clk_system_restore_context() 106 struct clk_hw * __init 108 const char *parent_name, struct clk_hw *parent_hw, u8 id, in at91_clk_register_system() 112 struct clk_hw *hw; in at91_clk_register_system() 126 init.parent_hws = (const struct clk_hw **)&parent_hw; in at91_clk_register_system()
|
| /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 …]
|
| H A D | interface.c | 34 struct clk_hw_omap *clk_hw; in _register_interface() local 37 clk_hw = kzalloc_obj(*clk_hw); in _register_interface() 38 if (!clk_hw) in _register_interface() 41 clk_hw->hw.init = &init; in _register_interface() 42 clk_hw->ops = ops; in _register_interface() 43 memcpy(&clk_hw->enable_reg, reg, sizeof(*reg)); in _register_interface() 44 clk_hw->enable_bit = bit_idx; in _register_interface() 53 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in _register_interface() 56 kfree(clk_hw); in _register_interface()
|
| H A D | gate.c | 22 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *clk); 58 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *hw) in omap36xx_gate_clk_enable_with_hsdiv_restore() 61 struct clk_hw *parent_hw; in omap36xx_gate_clk_enable_with_hsdiv_restore() 95 struct clk_hw_omap *clk_hw; in _register_gate() local 98 clk_hw = kzalloc_obj(*clk_hw); in _register_gate() 99 if (!clk_hw) in _register_gate() 102 clk_hw->hw.init = &init; in _register_gate() 107 memcpy(&clk_hw->enable_reg, reg, sizeof(*reg)); in _register_gate() 108 clk_hw->enable_bit = bit_idx; in _register_gate() 109 clk_hw->ops = hw_ops; in _register_gate() [all …]
|
| /linux/drivers/clk/ |
| 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-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-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() 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 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-rk808.c | 18 struct clk_hw clkout1_hw; 19 struct clk_hw clkout2_hw; 22 static unsigned long rk808_clkout_recalc_rate(struct clk_hw *hw, in rk808_clkout_recalc_rate() 28 static int rk808_clkout2_enable(struct clk_hw *hw, bool enable) in rk808_clkout2_enable() 38 static int rk808_clkout2_prepare(struct clk_hw *hw) in rk808_clkout2_prepare() 43 static void rk808_clkout2_unprepare(struct clk_hw *hw) in rk808_clkout2_unprepare() 48 static int rk808_clkout2_is_prepared(struct clk_hw *hw) in rk808_clkout2_is_prepared() 74 static struct clk_hw * 88 static int rk817_clkout2_enable(struct clk_hw *hw, bool enable) in rk817_clkout2_enable() 99 static int rk817_clkout2_prepare(struct clk_hw *hw) in rk817_clkout2_prepare() [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 …]
|
| H A D | clk.h | 7 struct clk_hw; 12 struct clk_hw *of_clk_get_hw(struct device_node *np, 15 static inline struct clk_hw *of_clk_get_hw(struct device_node *np, in of_clk_get_hw() 22 struct clk_hw *clk_find_hw(const char *dev_id, const char *con_id); 25 struct clk *clk_hw_create_clk(struct device *dev, struct clk_hw *hw, 31 clk_hw_create_clk(struct device *dev, struct clk_hw *hw, const char *dev_id, in clk_hw_create_clk()
|
| /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/ux500/ |
| H A 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 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 …]
|
| H A D | clk.h | 16 struct clk_hw; 30 struct clk_hw *clk_reg_prcmu_scalable(const char *name, 36 struct clk_hw *clk_reg_prcmu_gate(const char *name, 41 struct clk_hw *clk_reg_prcmu_scalable_rate(const char *name, 47 struct clk_hw *clk_reg_prcmu_rate(const char *name, 52 struct clk_hw *clk_reg_prcmu_opp_gate(const char *name, 57 struct clk_hw *clk_reg_prcmu_opp_volt_scalable(const char *name, 63 struct clk_hw *clk_reg_prcmu_clkout(const char *name,
|
| /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/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/qcom/ |
| H A D | gcc-ipq5332.c | 72 .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 …]
|