Home
last modified time | relevance | path

Searched defs:clk (Results 1 – 25 of 3010) sorted by relevance

12345678910>>...121

/kernel/linux/linux-5.10/arch/mips/bcm63xx/
Dclk.c21 struct clk { struct
22 void (*set)(struct clk *, int); argument
31 static void clk_enable_unlocked(struct clk *clk) in clk_enable_unlocked()
37 static void clk_disable_unlocked(struct clk *clk) in clk_disable_unlocked()
58 static void enet_misc_set(struct clk *clk, int enable) in enet_misc_set()
82 static void enetx_set(struct clk *clk, int enable) in enetx_set()
113 static void ephy_set(struct clk *clk, int enable) in ephy_set()
127 static void swpkt_sar_set(struct clk *clk, int enable) in swpkt_sar_set()
142 static void swpkt_usb_set(struct clk *clk, int enable) in swpkt_usb_set()
157 static void enetsw_set(struct clk *clk, int enable) in enetsw_set()
[all …]
/kernel/linux/linux-6.6/arch/mips/bcm63xx/
Dclk.c21 struct clk { struct
22 void (*set)(struct clk *, int); argument
31 static void clk_enable_unlocked(struct clk *clk) in clk_enable_unlocked()
37 static void clk_disable_unlocked(struct clk *clk) in clk_disable_unlocked()
58 static void enet_misc_set(struct clk *clk, int enable) in enet_misc_set()
82 static void enetx_set(struct clk *clk, int enable) in enetx_set()
113 static void ephy_set(struct clk *clk, int enable) in ephy_set()
127 static void swpkt_sar_set(struct clk *clk, int enable) in swpkt_sar_set()
142 static void swpkt_usb_set(struct clk *clk, int enable) in swpkt_usb_set()
157 static void enetsw_set(struct clk *clk, int enable) in enetsw_set()
[all …]
/kernel/linux/linux-5.10/arch/m68k/coldfire/
Dclk.c31 void __clk_init_enabled(struct clk *clk) in __clk_init_enabled()
37 void __clk_init_disabled(struct clk *clk) in __clk_init_disabled()
43 static void __clk_enable0(struct clk *clk) in __clk_enable0()
48 static void __clk_disable0(struct clk *clk) in __clk_disable0()
59 static void __clk_enable1(struct clk *clk) in __clk_enable1()
64 static void __clk_disable1(struct clk *clk) in __clk_disable1()
79 struct clk *clk; in clk_get() local
90 int clk_enable(struct clk *clk) in clk_enable()
102 void clk_disable(struct clk *clk) in clk_disable()
116 void clk_put(struct clk *clk) in clk_put()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-omap1/
Dclock.c41 unsigned long omap1_uart_recalc(struct clk *clk) in omap1_uart_recalc()
47 unsigned long omap1_sossi_recalc(struct clk *clk) in omap1_sossi_recalc()
57 static void omap1_clk_allow_idle(struct clk *clk) in omap1_clk_allow_idle()
68 static void omap1_clk_deny_idle(struct clk *clk) in omap1_clk_deny_idle()
132 static int calc_dsor_exp(struct clk *clk, unsigned long rate) in calc_dsor_exp()
164 unsigned long omap1_ckctl_recalc(struct clk *clk) in omap1_ckctl_recalc()
172 unsigned long omap1_ckctl_recalc_dsp_domain(struct clk *clk) in omap1_ckctl_recalc_dsp_domain()
191 int omap1_select_table_rate(struct clk *clk, unsigned long rate) in omap1_select_table_rate()
226 int omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate) in omap1_clk_set_rate_dsp_domain()
246 long omap1_clk_round_rate_ckctl_arm(struct clk *clk, unsigned long rate) in omap1_clk_round_rate_ckctl_arm()
[all …]
Dclock.h45 #define __clk_get_name(clk) (clk->name) argument
46 #define __clk_get_parent(clk) (clk->parent) argument
47 #define __clk_get_rate(clk) (clk->rate) argument
138 struct clk { struct
140 const struct clkops *ops; argument
142 struct clk *parent; argument
147 unsigned long (*recalc)(struct clk *); argument
148 int (*set_rate)(struct clk *, unsigned long); argument
149 long (*round_rate)(struct clk *, unsigned long); argument
150 void (*init)(struct clk *); argument
[all …]
/kernel/linux/linux-6.6/arch/m68k/coldfire/
Dclk.c31 void __clk_init_enabled(struct clk *clk) in __clk_init_enabled()
37 void __clk_init_disabled(struct clk *clk) in __clk_init_disabled()
43 static void __clk_enable0(struct clk *clk) in __clk_enable0()
48 static void __clk_disable0(struct clk *clk) in __clk_disable0()
59 static void __clk_enable1(struct clk *clk) in __clk_enable1()
64 static void __clk_disable1(struct clk *clk) in __clk_disable1()
76 int clk_enable(struct clk *clk) in clk_enable()
92 void clk_disable(struct clk *clk) in clk_disable()
106 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
116 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
[all …]
/kernel/linux/linux-6.6/arch/arm/mach-omap1/
Dclock.c47 unsigned long omap1_uart_recalc(struct omap1_clk *clk, unsigned long p_rate) in omap1_uart_recalc()
53 unsigned long omap1_sossi_recalc(struct omap1_clk *clk, unsigned long p_rate) in omap1_sossi_recalc()
63 static void omap1_clk_allow_idle(struct omap1_clk *clk) in omap1_clk_allow_idle()
74 static void omap1_clk_deny_idle(struct omap1_clk *clk) in omap1_clk_deny_idle()
166 unsigned long omap1_ckctl_recalc(struct omap1_clk *clk, unsigned long p_rate) in omap1_ckctl_recalc()
178 struct omap1_clk *clk = to_omap1_clk(hw); in omap1_clk_is_enabled() local
207 unsigned long omap1_ckctl_recalc_dsp_domain(struct omap1_clk *clk, unsigned long p_rate) in omap1_ckctl_recalc_dsp_domain()
230 int omap1_select_table_rate(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_select_table_rate()
265 int omap1_clk_set_rate_dsp_domain(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_clk_set_rate_dsp_domain()
285 long omap1_clk_round_rate_ckctl_arm(struct omap1_clk *clk, unsigned long rate, in omap1_clk_round_rate_ckctl_arm()
[all …]
/kernel/linux/linux-6.6/include/linux/
Dclk.h55 struct clk *clk; member
72 struct clk *clk; member
89 struct clk *clk; member
221 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register()
227 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister()
234 struct clk *clk, in devm_clk_notifier_register()
240 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy()
245 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase()
250 static inline long clk_get_phase(struct clk *clk) in clk_get_phase()
255 static inline int clk_set_duty_cycle(struct clk *clk, unsigned int num, in clk_set_duty_cycle()
[all …]
Dsh_clk.h38 struct clk { struct
40 struct clk *parent; argument
41 struct clk **parent_table; /* list of parents to */ argument
45 struct sh_clk_ops *ops; argument
63 struct clk_mapping *mapping; argument
80 /* drivers/sh/clk.c */ argument
/kernel/linux/linux-5.10/arch/c6x/platforms/
Dpll.c27 static void __clk_enable(struct clk *clk) in __clk_enable()
34 static void __clk_disable(struct clk *clk) in __clk_disable()
44 int clk_enable(struct clk *clk) in clk_enable()
59 void clk_disable(struct clk *clk) in clk_disable()
72 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
81 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
96 struct clk *clk; in propagate_rate() local
105 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
128 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent()
155 int clk_register(struct clk *clk) in clk_register()
[all …]
/kernel/linux/linux-5.10/arch/mips/ralink/
Dclk.c18 struct clk { struct
19 struct clk_lookup cl; argument
25 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in ralink_clk_add() local
41 int clk_enable(struct clk *clk) in clk_enable()
47 void clk_disable(struct clk *clk) in clk_disable()
52 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
61 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
67 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
75 struct clk *clk; in plat_time_init() local
/kernel/linux/linux-5.10/arch/arm/mach-ep93xx/
Dclock.c27 struct clk { struct
28 struct clk *parent; argument
35 unsigned long (*get_rate)(struct clk *clk); argument
36 int (*set_rate)(struct clk *clk, unsigned long rate); argument
244 static void __clk_enable(struct clk *clk) in __clk_enable()
263 int clk_enable(struct clk *clk) in clk_enable()
278 static void __clk_disable(struct clk *clk) in __clk_disable()
297 void clk_disable(struct clk *clk) in clk_disable()
310 static unsigned long get_uart_rate(struct clk *clk) in get_uart_rate()
322 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
[all …]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-clk.c27 struct v4l2_clk *clk; in v4l2_clk_find() local
38 struct v4l2_clk *clk; in v4l2_clk_get() local
73 void v4l2_clk_put(struct v4l2_clk *clk) in v4l2_clk_put()
96 static int v4l2_clk_lock_driver(struct v4l2_clk *clk) in v4l2_clk_lock_driver()
116 static void v4l2_clk_unlock_driver(struct v4l2_clk *clk) in v4l2_clk_unlock_driver()
121 int v4l2_clk_enable(struct v4l2_clk *clk) in v4l2_clk_enable()
150 void v4l2_clk_disable(struct v4l2_clk *clk) in v4l2_clk_disable()
172 unsigned long v4l2_clk_get_rate(struct v4l2_clk *clk) in v4l2_clk_get_rate()
196 int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate) in v4l2_clk_set_rate()
229 struct v4l2_clk *clk; in v4l2_clk_register() local
[all …]
/kernel/linux/linux-5.10/include/linux/
Dclk.h55 struct clk *clk; member
72 struct clk *clk; member
89 struct clk *clk; member
210 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register()
216 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister()
222 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy()
227 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase()
232 static inline long clk_get_phase(struct clk *clk) in clk_get_phase()
237 static inline int clk_set_duty_cycle(struct clk *clk, unsigned int num, in clk_set_duty_cycle()
243 static inline unsigned int clk_get_scaled_duty_cycle(struct clk *clk, in clk_get_scaled_duty_cycle()
[all …]
Dsh_clk.h38 struct clk { struct
40 struct clk *parent; argument
41 struct clk **parent_table; /* list of parents to */ argument
45 struct sh_clk_ops *ops; argument
63 struct clk_mapping *mapping; argument
80 /* drivers/sh/clk.c */ argument
/kernel/linux/linux-6.6/arch/mips/lantiq/
Dclk.c61 static inline int clk_good(struct clk *clk) in clk_good()
66 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
81 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
101 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
118 int clk_enable(struct clk *clk) in clk_enable()
130 void clk_disable(struct clk *clk) in clk_disable()
140 int clk_activate(struct clk *clk) in clk_activate()
152 void clk_deactivate(struct clk *clk) in clk_deactivate()
162 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent()
168 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent()
[all …]
Dclk.h58 struct clk { struct
59 struct clk_lookup cl; argument
65 int (*enable) (struct clk *clk); argument
66 void (*disable) (struct clk *clk); argument
67 int (*activate) (struct clk *clk); argument
68 void (*deactivate) (struct clk *clk); argument
69 void (*reboot) (struct clk *clk); argument
/kernel/linux/linux-5.10/arch/mips/lantiq/
Dclk.c61 static inline int clk_good(struct clk *clk) in clk_good()
66 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
81 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
101 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
118 int clk_enable(struct clk *clk) in clk_enable()
130 void clk_disable(struct clk *clk) in clk_disable()
140 int clk_activate(struct clk *clk) in clk_activate()
152 void clk_deactivate(struct clk *clk) in clk_deactivate()
162 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent()
168 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent()
[all …]
Dclk.h58 struct clk { struct
59 struct clk_lookup cl; argument
65 int (*enable) (struct clk *clk); argument
66 void (*disable) (struct clk *clk); argument
67 int (*activate) (struct clk *clk); argument
68 void (*deactivate) (struct clk *clk); argument
69 void (*reboot) (struct clk *clk); argument
/kernel/linux/linux-6.6/drivers/sh/clk/
Dcpg.c19 static unsigned int sh_clk_read(struct clk *clk) in sh_clk_read()
29 static void sh_clk_write(int value, struct clk *clk) in sh_clk_write()
39 static int sh_clk_mstp_enable(struct clk *clk) in sh_clk_mstp_enable()
68 static void sh_clk_mstp_disable(struct clk *clk) in sh_clk_mstp_disable()
97 static inline struct clk_div_table *clk_to_div_table(struct clk *clk) in clk_to_div_table()
102 static inline struct clk_div_mult_table *clk_to_div_mult_table(struct clk *clk) in clk_to_div_mult_table()
110 static long sh_clk_div_round_rate(struct clk *clk, unsigned long rate) in sh_clk_div_round_rate()
115 static unsigned long sh_clk_div_recalc(struct clk *clk) in sh_clk_div_recalc()
128 static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate) in sh_clk_div_set_rate()
150 static int sh_clk_div_enable(struct clk *clk) in sh_clk_div_enable()
[all …]
Dcore.c39 void clk_rate_table_build(struct clk *clk, in clk_rate_table_build()
137 long clk_rate_table_round(struct clk *clk, in clk_rate_table_round()
161 long clk_rate_div_range_round(struct clk *clk, unsigned int div_min, in clk_rate_div_range_round()
181 long clk_rate_mult_range_round(struct clk *clk, unsigned int mult_min, in clk_rate_mult_range_round()
195 int clk_rate_table_find(struct clk *clk, in clk_rate_table_find()
210 unsigned long followparent_recalc(struct clk *clk) in followparent_recalc()
238 static void __clk_disable(struct clk *clk) in __clk_disable()
252 void clk_disable(struct clk *clk) in clk_disable()
265 static int __clk_enable(struct clk *clk) in __clk_enable()
292 int clk_enable(struct clk *clk) in clk_enable()
[all …]
/kernel/linux/linux-5.10/drivers/sh/clk/
Dcpg.c19 static unsigned int sh_clk_read(struct clk *clk) in sh_clk_read()
29 static void sh_clk_write(int value, struct clk *clk) in sh_clk_write()
39 static int sh_clk_mstp_enable(struct clk *clk) in sh_clk_mstp_enable()
68 static void sh_clk_mstp_disable(struct clk *clk) in sh_clk_mstp_disable()
97 static inline struct clk_div_table *clk_to_div_table(struct clk *clk) in clk_to_div_table()
102 static inline struct clk_div_mult_table *clk_to_div_mult_table(struct clk *clk) in clk_to_div_mult_table()
110 static long sh_clk_div_round_rate(struct clk *clk, unsigned long rate) in sh_clk_div_round_rate()
115 static unsigned long sh_clk_div_recalc(struct clk *clk) in sh_clk_div_recalc()
128 static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate) in sh_clk_div_set_rate()
150 static int sh_clk_div_enable(struct clk *clk) in sh_clk_div_enable()
[all …]
Dcore.c39 void clk_rate_table_build(struct clk *clk, in clk_rate_table_build()
137 long clk_rate_table_round(struct clk *clk, in clk_rate_table_round()
161 long clk_rate_div_range_round(struct clk *clk, unsigned int div_min, in clk_rate_div_range_round()
181 long clk_rate_mult_range_round(struct clk *clk, unsigned int mult_min, in clk_rate_mult_range_round()
195 int clk_rate_table_find(struct clk *clk, in clk_rate_table_find()
210 unsigned long followparent_recalc(struct clk *clk) in followparent_recalc()
238 static void __clk_disable(struct clk *clk) in __clk_disable()
252 void clk_disable(struct clk *clk) in clk_disable()
265 static int __clk_enable(struct clk *clk) in __clk_enable()
292 int clk_enable(struct clk *clk) in clk_enable()
[all …]
/kernel/linux/linux-6.6/drivers/clk/starfive/
Dclk-starfive-jh71x0.c20 static struct jh71x0_clk_priv *jh71x0_priv_from(struct jh71x0_clk *clk) in jh71x0_priv_from()
25 static u32 jh71x0_clk_reg_get(struct jh71x0_clk *clk) in jh71x0_clk_reg_get()
33 static void jh71x0_clk_reg_rmw(struct jh71x0_clk *clk, u32 mask, u32 value) in jh71x0_clk_reg_rmw()
47 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_enable() local
55 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_disable() local
62 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_is_enabled() local
70 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_recalc_rate() local
79 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_determine_rate() local
109 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_set_rate() local
120 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_frac_recalc_rate() local
[all …]
/kernel/linux/linux-6.6/drivers/clk/ti/
Ddpll3xxx.c47 static void _omap3_dpll_write_clken(struct clk_hw_omap *clk, u8 clken_bits) in _omap3_dpll_write_clken()
61 static int _omap3_wait_dpll_status(struct clk_hw_omap *clk, u8 state) in _omap3_wait_dpll_status()
93 static u16 _omap3_dpll_compute_freqsel(struct clk_hw_omap *clk, u8 n) in _omap3_dpll_compute_freqsel()
138 static int _omap3_noncore_dpll_lock(struct clk_hw_omap *clk) in _omap3_noncore_dpll_lock()
184 static int _omap3_noncore_dpll_bypass(struct clk_hw_omap *clk) in _omap3_noncore_dpll_bypass()
216 static int _omap3_noncore_dpll_stop(struct clk_hw_omap *clk) in _omap3_noncore_dpll_stop()
247 static void _lookup_dco(struct clk_hw_omap *clk, u8 *dco, u16 m, u8 n) in _lookup_dco()
272 static void _lookup_sddiv(struct clk_hw_omap *clk, u8 *sd_div, u16 m, u8 n) in _lookup_sddiv()
301 static void omap3_noncore_dpll_ssc_program(struct clk_hw_omap *clk) in omap3_noncore_dpll_ssc_program()
384 static int omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 freqsel) in omap3_noncore_dpll_program()
[all …]

12345678910>>...121