/Linux-v4.19/include/linux/ |
D | clk-provider.h | 45 struct clk_hw; 68 struct clk_hw *best_parent_hw; 218 int (*prepare)(struct clk_hw *hw); 219 void (*unprepare)(struct clk_hw *hw); 220 int (*is_prepared)(struct clk_hw *hw); 221 void (*unprepare_unused)(struct clk_hw *hw); 222 int (*enable)(struct clk_hw *hw); 223 void (*disable)(struct clk_hw *hw); 224 int (*is_enabled)(struct clk_hw *hw); 225 void (*disable_unused)(struct clk_hw *hw); [all …]
|
D | clkdev.h | 18 struct clk_hw; 26 struct clk_hw *clk_hw; member 38 struct clk_lookup *clkdev_hw_alloc(struct clk_hw *hw, const char *con_id, 46 struct clk_lookup *clkdev_hw_create(struct clk_hw *hw, const char *con_id, 53 int clk_hw_register_clkdev(struct clk_hw *, const char *, const char *);
|
/Linux-v4.19/drivers/clk/ti/ |
D | clock.h | 20 struct clk_hw hw; 32 struct clk_hw hw; 195 struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw, 202 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup); 213 int ti_clk_add_component(struct device_node *node, struct clk_hw *hw, int type); 215 void omap2_init_clk_hw_omap_clocks(struct clk_hw *hw); 236 void omap2_init_clk_clkdm(struct clk_hw *hw); 237 int omap2_clkops_enable_clkdm(struct clk_hw *hw); 238 void omap2_clkops_disable_clkdm(struct clk_hw *hw); 240 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() 168 clk = ti_clk_register(NULL, &clk_hw->hw, node->name); in omap_clk_register_apll() 171 kfree(clk_hw->hw.init->parent_names); in omap_clk_register_apll() 172 kfree(clk_hw->hw.init); in omap_clk_register_apll() [all …]
|
D | dpll.c | 158 struct clk_hw *hw = user; in _register_dpll() 159 struct clk_hw_omap *clk_hw = to_clk_hw_omap(hw); in _register_dpll() local 160 struct dpll_data *dd = clk_hw->dpll_data; in _register_dpll() 189 clk = ti_clk_register(NULL, &clk_hw->hw, node->name); in _register_dpll() 192 omap2_init_clk_hw_omap_clocks(&clk_hw->hw); in _register_dpll() 194 kfree(clk_hw->hw.init->parent_names); in _register_dpll() 195 kfree(clk_hw->hw.init); in _register_dpll() 200 kfree(clk_hw->dpll_data); in _register_dpll() 201 kfree(clk_hw->hw.init->parent_names); in _register_dpll() 202 kfree(clk_hw->hw.init); in _register_dpll() [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(NULL, &clk_hw->hw, name); in _register_interface() 63 kfree(clk_hw); in _register_interface() 65 omap2_init_clk_hw_omap_clocks(&clk_hw->hw); in _register_interface()
|
D | gate.c | 30 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *clk); 63 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *hw) in omap36xx_gate_clk_enable_with_hsdiv_restore() 66 struct clk_hw *parent_hw; in omap36xx_gate_clk_enable_with_hsdiv_restore() 100 struct clk_hw_omap *clk_hw; in _register_gate() local 103 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_gate() 104 if (!clk_hw) in _register_gate() 107 clk_hw->hw.init = &init; in _register_gate() 112 memcpy(&clk_hw->enable_reg, reg, sizeof(*reg)); in _register_gate() 113 clk_hw->enable_bit = bit_idx; in _register_gate() 114 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 (clk_hw_get_flags(clk_hw) & CLK_IS_BASIC) { 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()
|
D | clk-dra7-atl.c | 48 struct clk_hw hw; 80 static int atl_clk_enable(struct clk_hw *hw) in atl_clk_enable() 102 static void atl_clk_disable(struct clk_hw *hw) in atl_clk_disable() 116 static int atl_clk_is_enabled(struct clk_hw *hw) in atl_clk_is_enabled() 123 static unsigned long atl_clk_recalc_rate(struct clk_hw *hw, in atl_clk_recalc_rate() 131 static long atl_clk_round_rate(struct clk_hw *hw, unsigned long rate, in atl_clk_round_rate() 143 static int atl_clk_set_rate(struct clk_hw *hw, unsigned long rate, in atl_clk_set_rate() 173 struct dra7_atl_desc *clk_hw = NULL; in of_dra7_atl_clock_setup() local 179 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_atl_clock_setup() 180 if (!clk_hw) { in of_dra7_atl_clock_setup() [all …]
|
/Linux-v4.19/drivers/clk/samsung/ |
D | clk.c | 92 struct clk_hw *clk_hw, unsigned int id) in samsung_clk_add_lookup() argument 95 ctx->clk_data.hws[id] = clk_hw; in samsung_clk_add_lookup() 103 struct clk_hw *clk_hw; in samsung_clk_register_alias() local 113 clk_hw = ctx->clk_data.hws[list->id]; in samsung_clk_register_alias() 114 if (!clk_hw) { in samsung_clk_register_alias() 120 ret = clk_hw_register_clkdev(clk_hw, list->alias, in samsung_clk_register_alias() 133 struct clk_hw *clk_hw; in samsung_clk_register_fixed_rate() local 137 clk_hw = clk_hw_register_fixed_rate(ctx->dev, list->name, in samsung_clk_register_fixed_rate() 139 if (IS_ERR(clk_hw)) { in samsung_clk_register_fixed_rate() 145 samsung_clk_add_lookup(ctx, clk_hw, list->id); in samsung_clk_register_fixed_rate() [all …]
|
/Linux-v4.19/drivers/clk/ |
D | clk-composite.c | 22 static u8 clk_composite_get_parent(struct clk_hw *hw) in clk_composite_get_parent() 26 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_get_parent() 33 static int clk_composite_set_parent(struct clk_hw *hw, u8 index) in clk_composite_set_parent() 37 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_set_parent() 44 static unsigned long clk_composite_recalc_rate(struct clk_hw *hw, in clk_composite_recalc_rate() 49 struct clk_hw *rate_hw = composite->rate_hw; in clk_composite_recalc_rate() 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() 63 struct clk_hw *mux_hw = composite->mux_hw; in clk_composite_determine_rate() 64 struct clk_hw *parent; in clk_composite_determine_rate() [all …]
|
D | clk-hi655x.c | 30 struct clk_hw clk_hw; member 33 static unsigned long hi655x_clk_recalc_rate(struct clk_hw *hw, in hi655x_clk_recalc_rate() 39 static int hi655x_clk_enable(struct clk_hw *hw, bool enable) in hi655x_clk_enable() 42 container_of(hw, struct hi655x_clk, clk_hw); in hi655x_clk_enable() 50 static int hi655x_clk_prepare(struct clk_hw *hw) in hi655x_clk_prepare() 55 static void hi655x_clk_unprepare(struct clk_hw *hw) in hi655x_clk_unprepare() 60 static int hi655x_clk_is_prepared(struct clk_hw *hw) in hi655x_clk_is_prepared() 63 container_of(hw, struct hi655x_clk, clk_hw); in hi655x_clk_is_prepared() 101 hi655x_clk->clk_hw.init = &init; in hi655x_clk_probe() 106 ret = devm_clk_hw_register(&pdev->dev, &hi655x_clk->clk_hw); in hi655x_clk_probe() [all …]
|
D | clk-axi-clkgen.c | 49 struct clk_hw clk_hw; member 246 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument 248 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen() 251 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument 254 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate() 301 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate() 318 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument 321 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate() 357 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument 359 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-wm831x.c | 24 struct clk_hw xtal_hw; 25 struct clk_hw fll_hw; 26 struct clk_hw clkout_hw; 30 static int wm831x_xtal_is_prepared(struct clk_hw *hw) in wm831x_xtal_is_prepared() 38 static unsigned long wm831x_xtal_recalc_rate(struct clk_hw *hw, in wm831x_xtal_recalc_rate() 71 static int wm831x_fll_is_prepared(struct clk_hw *hw) in wm831x_fll_is_prepared() 88 static int wm831x_fll_prepare(struct clk_hw *hw) in wm831x_fll_prepare() 106 static void wm831x_fll_unprepare(struct clk_hw *hw) in wm831x_fll_unprepare() 118 static unsigned long wm831x_fll_recalc_rate(struct clk_hw *hw, in wm831x_fll_recalc_rate() 141 static long wm831x_fll_round_rate(struct clk_hw *hw, unsigned long rate, in wm831x_fll_round_rate() [all …]
|
/Linux-v4.19/drivers/clk/mediatek/ |
D | clk-gate.c | 26 static int mtk_cg_bit_is_cleared(struct clk_hw *hw) in mtk_cg_bit_is_cleared() 38 static int mtk_cg_bit_is_set(struct clk_hw *hw) in mtk_cg_bit_is_set() 50 static void mtk_cg_set_bit(struct clk_hw *hw) in mtk_cg_set_bit() 57 static void mtk_cg_clr_bit(struct clk_hw *hw) in mtk_cg_clr_bit() 64 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() 80 static int mtk_cg_enable(struct clk_hw *hw) in mtk_cg_enable() 87 static void mtk_cg_disable(struct clk_hw *hw) in mtk_cg_disable() 92 static int mtk_cg_enable_inv(struct clk_hw *hw) in mtk_cg_enable_inv() 99 static void mtk_cg_disable_inv(struct clk_hw *hw) in mtk_cg_disable_inv() [all …]
|
/Linux-v4.19/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-v4.19/drivers/clk/at91/ |
D | clk-main.c | 31 struct clk_hw hw; 38 struct clk_hw hw; 47 struct clk_hw hw; 54 struct clk_hw hw; 70 static int clk_main_osc_prepare(struct clk_hw *hw) in clk_main_osc_prepare() 93 static void clk_main_osc_unprepare(struct clk_hw *hw) in clk_main_osc_unprepare() 110 static int clk_main_osc_is_prepared(struct clk_hw *hw) in clk_main_osc_is_prepared() 131 static struct clk_hw * __init 139 struct clk_hw *hw; in at91_clk_register_main_osc() 176 struct clk_hw *hw; in of_at91rm9200_clk_main_osc_setup() [all …]
|
D | sckc.c | 32 struct clk_hw hw; 40 struct clk_hw hw; 49 struct clk_hw hw; 59 struct clk_hw hw; 66 static int clk_slow_osc_prepare(struct clk_hw *hw) in clk_slow_osc_prepare() 82 static void clk_slow_osc_unprepare(struct clk_hw *hw) in clk_slow_osc_unprepare() 94 static int clk_slow_osc_is_prepared(struct clk_hw *hw) in clk_slow_osc_is_prepared() 112 static struct clk_hw * __init 120 struct clk_hw *hw; in at91_clk_register_slow_osc() 158 struct clk_hw *hw; in of_at91sam9x5_clk_slow_osc_setup() [all …]
|
D | clk-usb.c | 29 struct clk_hw hw; 37 struct clk_hw hw; 45 static unsigned long at91sam9x5_clk_usb_recalc_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_recalc_rate() 58 static int at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw, in at91sam9x5_clk_usb_determine_rate() 61 struct clk_hw *parent; in at91sam9x5_clk_usb_determine_rate() 109 static int at91sam9x5_clk_usb_set_parent(struct clk_hw *hw, u8 index) in at91sam9x5_clk_usb_set_parent() 122 static u8 at91sam9x5_clk_usb_get_parent(struct clk_hw *hw) in at91sam9x5_clk_usb_get_parent() 132 static int at91sam9x5_clk_usb_set_rate(struct clk_hw *hw, unsigned long rate, in at91sam9x5_clk_usb_set_rate() 159 static int at91sam9n12_clk_usb_enable(struct clk_hw *hw) in at91sam9n12_clk_usb_enable() 169 static void at91sam9n12_clk_usb_disable(struct clk_hw *hw) in at91sam9n12_clk_usb_disable() [all …]
|
D | clk-audio-pll.c | 62 struct clk_hw hw; 69 struct clk_hw hw; 76 struct clk_hw hw; 85 static int clk_audio_pll_frac_enable(struct clk_hw *hw) in clk_audio_pll_frac_enable() 110 static int clk_audio_pll_pad_enable(struct clk_hw *hw) in clk_audio_pll_pad_enable() 123 static int clk_audio_pll_pmc_enable(struct clk_hw *hw) in clk_audio_pll_pmc_enable() 135 static void clk_audio_pll_frac_disable(struct clk_hw *hw) in clk_audio_pll_frac_disable() 146 static void clk_audio_pll_pad_disable(struct clk_hw *hw) in clk_audio_pll_pad_disable() 154 static void clk_audio_pll_pmc_disable(struct clk_hw *hw) in clk_audio_pll_pmc_disable() 176 static unsigned long clk_audio_pll_frac_recalc_rate(struct clk_hw *hw, in clk_audio_pll_frac_recalc_rate() [all …]
|
/Linux-v4.19/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-v4.19/drivers/clk/tegra/ |
D | clk-periph.c | 24 static u8 clk_periph_get_parent(struct clk_hw *hw) in clk_periph_get_parent() 28 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent() 35 static int clk_periph_set_parent(struct clk_hw *hw, u8 index) in clk_periph_set_parent() 39 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent() 46 static unsigned long clk_periph_recalc_rate(struct clk_hw *hw, in clk_periph_recalc_rate() 51 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate() 58 static long clk_periph_round_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_round_rate() 63 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_round_rate() 70 static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_set_rate() 75 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate() [all …]
|
/Linux-v4.19/drivers/clk/st/ |
D | clk-flexgen.c | 24 struct clk_hw hw; 45 static int flexgen_enable(struct clk_hw *hw) in flexgen_enable() 48 struct clk_hw *pgate_hw = &flexgen->pgate.hw; in flexgen_enable() 49 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_enable() 62 static void flexgen_disable(struct clk_hw *hw) in flexgen_disable() 65 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_disable() 75 static int flexgen_is_enabled(struct clk_hw *hw) in flexgen_is_enabled() 78 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_is_enabled() 88 static u8 flexgen_get_parent(struct clk_hw *hw) in flexgen_get_parent() 91 struct clk_hw *mux_hw = &flexgen->mux.hw; in flexgen_get_parent() [all …]
|
/Linux-v4.19/drivers/clk/qcom/ |
D | clk-rcg2.c | 48 static int clk_rcg2_is_enabled(struct clk_hw *hw) in clk_rcg2_is_enabled() 61 static u8 clk_rcg2_get_parent(struct clk_hw *hw) in clk_rcg2_get_parent() 89 struct clk_hw *hw = &rcg->clkr.hw; in update_config() 111 static int clk_rcg2_set_parent(struct clk_hw *hw, u8 index) in clk_rcg2_set_parent() 151 clk_rcg2_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_rcg2_recalc_rate() 177 static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f, in _freq_tbl_determine_rate() 182 struct clk_hw *p; in _freq_tbl_determine_rate() 229 static int clk_rcg2_determine_rate(struct clk_hw *hw, in clk_rcg2_determine_rate() 237 static int clk_rcg2_determine_floor_rate(struct clk_hw *hw, in clk_rcg2_determine_floor_rate() 248 struct clk_hw *hw = &rcg->clkr.hw; in __clk_rcg2_configure() [all …]
|