Home
last modified time | relevance | path

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

12345678910>>...62

/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
/Linux-v5.15/include/linux/
Dclk.h55 struct clk *clk; member
72 struct clk *clk; member
89 struct clk *clk; member
188 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register()
194 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister()
201 struct clk *clk, in devm_clk_notifier_register()
207 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy()
212 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase()
217 static inline long clk_get_phase(struct clk *clk) in clk_get_phase()
222 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
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
Dapll.c42 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_enable() local
93 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_disable() local
110 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_is_enabled() local
142 struct clk *clk; in omap_clk_register_apll() local
243 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_is_enabled() local
258 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_recalc() local
268 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_enable() local
299 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_disable() local
316 static void omap2_apll_set_autoidle(struct clk_hw_omap *clk, u32 val) in omap2_apll_set_autoidle()
330 static void omap2_apll_allow_idle(struct clk_hw_omap *clk) in omap2_apll_allow_idle()
[all …]
Dclkt_dflt.c58 static int _wait_idlest_generic(struct clk_hw_omap *clk, in _wait_idlest_generic()
93 static void _omap2_module_wait_ready(struct clk_hw_omap *clk) in _omap2_module_wait_ready()
142 void omap2_clk_dflt_find_companion(struct clk_hw_omap *clk, in omap2_clk_dflt_find_companion()
171 void omap2_clk_dflt_find_idlest(struct clk_hw_omap *clk, in omap2_clk_dflt_find_idlest()
204 struct clk_hw_omap *clk; in omap2_dflt_clk_enable() local
253 struct clk_hw_omap *clk; in omap2_dflt_clk_disable() local
281 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_dflt_clk_is_enabled() local
/Linux-v5.15/arch/mips/lantiq/
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
Dclk.c60 static inline int clk_good(struct clk *clk) in clk_good()
65 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
80 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
100 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
117 int clk_enable(struct clk *clk) in clk_enable()
129 void clk_disable(struct clk *clk) in clk_disable()
139 int clk_activate(struct clk *clk) in clk_activate()
151 void clk_deactivate(struct clk *clk) in clk_deactivate()
179 struct clk *clk; in plat_time_init() local
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgk104.c50 read_vco(struct gk104_clk *clk, u32 dsrc) in read_vco()
60 read_pll(struct gk104_clk *clk, u32 pll) in read_pll()
106 read_div(struct gk104_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div()
133 read_mem(struct gk104_clk *clk) in read_mem()
145 read_clk(struct gk104_clk *clk, int idx) in read_clk()
191 struct gk104_clk *clk = gk104_clk(base); in gk104_clk_read() local
223 calc_div(struct gk104_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div()
234 calc_src(struct gk104_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src()
263 calc_pll(struct gk104_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll()
287 calc_clk(struct gk104_clk *clk, in calc_clk()
[all …]
Dgk20a.c65 gk20a_pllg_read_mnp(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_read_mnp()
77 gk20a_pllg_write_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_write_mnp()
89 gk20a_pllg_calc_rate(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_calc_rate()
101 gk20a_pllg_calc_mnp(struct gk20a_clk *clk, unsigned long rate, in gk20a_pllg_calc_mnp()
211 gk20a_pllg_slide(struct gk20a_clk *clk, u32 n) in gk20a_pllg_slide()
256 gk20a_pllg_enable(struct gk20a_clk *clk) in gk20a_pllg_enable()
284 gk20a_pllg_disable(struct gk20a_clk *clk) in gk20a_pllg_disable()
296 gk20a_pllg_program_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp()
335 gk20a_pllg_program_mnp_slide(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp_slide()
462 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_read() local
[all …]
Dbase.c41 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, in nvkm_clk_adjust()
79 nvkm_cstate_valid(struct nvkm_clk *clk, struct nvkm_cstate *cstate, in nvkm_cstate_valid()
112 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best()
145 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get()
160 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog()
223 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new()
265 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog()
300 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); in nvkm_pstate_work() local
335 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc()
345 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) in nvkm_pstate_info()
[all …]
Dgt215.c43 read_vco(struct gt215_clk *clk, int idx) in read_vco()
61 read_clk(struct gt215_clk *clk, int idx, bool ignore_en) in read_clk()
108 read_pll(struct gt215_clk *clk, int idx, u32 pll) in read_pll()
145 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_read() local
190 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_info() local
238 struct gt215_clk *clk = gt215_clk(base); in gt215_pll_info() local
274 calc_clk(struct gt215_clk *clk, struct nvkm_cstate *cstate, in calc_clk()
285 calc_host(struct gt215_clk *clk, struct nvkm_cstate *cstate) in calc_host()
307 gt215_clk_pre(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_pre()
342 gt215_clk_post(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_post()
[all …]
Dgf100.c49 read_vco(struct gf100_clk *clk, u32 dsrc) in read_vco()
59 read_pll(struct gf100_clk *clk, u32 pll) in read_pll()
98 read_div(struct gf100_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div()
133 read_clk(struct gf100_clk *clk, int idx) in read_clk()
160 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_read() local
210 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div()
221 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src()
250 calc_pll(struct gf100_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll()
274 calc_clk(struct gf100_clk *clk, struct nvkm_cstate *cstate, int idx, int dom) in calc_clk()
327 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_calc() local
[all …]
/Linux-v5.15/drivers/clk/meson/
Dclk-phase.c16 meson_clk_phase_data(struct clk_regmap *clk) in meson_clk_phase_data()
39 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_phase_get_phase() local
50 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_phase_set_phase() local
76 meson_clk_triphase_data(struct clk_regmap *clk) in meson_clk_triphase_data()
83 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_sync() local
97 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_get_phase() local
109 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_set_phase() local
135 meson_sclk_ws_inv_data(struct clk_regmap *clk) in meson_sclk_ws_inv_data()
142 struct clk_regmap *clk = to_clk_regmap(hw); in meson_sclk_ws_inv_sync() local
155 struct clk_regmap *clk = to_clk_regmap(hw); in meson_sclk_ws_inv_get_phase() local
[all …]
Dsclk-div.c26 meson_sclk_div_data(struct clk_regmap *clk) in meson_sclk_div_data()
102 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_round_rate() local
111 static void sclk_apply_ratio(struct clk_regmap *clk, in sclk_apply_ratio()
127 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_set_duty_cycle() local
141 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_get_duty_cycle() local
157 static void sclk_apply_divider(struct clk_regmap *clk, in sclk_apply_divider()
169 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_set_rate() local
184 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_recalc_rate() local
192 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_enable() local
202 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_disable() local
[all …]
/Linux-v5.15/drivers/clk/ux500/
Dclk-prcmu.c31 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_prepare() local
42 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_unprepare() local
52 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_prepared() local
58 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_enable() local
65 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_disable() local
71 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_enabled() local
78 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_recalc_rate() local
85 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_round_rate() local
92 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_set_rate() local
99 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_opp_prepare() local
[all …]
/Linux-v5.15/kernel/time/
Dposix-clock.c22 struct posix_clock *clk = fp->private_data; in get_posix_clock() local
34 static void put_posix_clock(struct posix_clock *clk) in put_posix_clock()
42 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_read() local
58 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_poll() local
75 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_ioctl() local
93 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_compat_ioctl() local
111 struct posix_clock *clk = in posix_clock_open() local
136 struct posix_clock *clk = fp->private_data; in posix_clock_release() local
162 int posix_clock_register(struct posix_clock *clk, struct device *dev) in posix_clock_register()
182 void posix_clock_unregister(struct posix_clock *clk) in posix_clock_unregister()
[all …]
/Linux-v5.15/arch/sh/kernel/cpu/sh4/
Dclock-sh4-202.c22 static unsigned long emi_clk_recalc(struct clk *clk) in emi_clk_recalc()
28 static inline int frqcr3_lookup(struct clk *clk, unsigned long rate) in frqcr3_lookup()
50 static unsigned long femi_clk_recalc(struct clk *clk) in femi_clk_recalc()
65 static void shoc_clk_init(struct clk *clk) in shoc_clk_init()
88 static unsigned long shoc_clk_recalc(struct clk *clk) in shoc_clk_recalc()
94 static int shoc_clk_verify_rate(struct clk *clk, unsigned long rate) in shoc_clk_verify_rate()
109 static int shoc_clk_set_rate(struct clk *clk, unsigned long rate) in shoc_clk_set_rate()
156 struct clk *clk; in arch_clk_init() local
/Linux-v5.15/drivers/clk/imx/
Dclk-scu.c88 u8 clk; member
93 u8 clk; member
129 u8 clk; member
147 u8 clk; member
164 u8 clk; member
230 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_recalc_rate() local
274 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_atf_set_cpu_rate() local
304 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_set_rate() local
322 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_get_parent() local
349 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_set_parent() local
[all …]

12345678910>>...62