Home
last modified time | relevance | path

Searched refs:clk (Results 1 - 25 of 7524) sorted by relevance

12345678910>>...301

/kernel/linux/linux-5.10/drivers/clk/ux500/
H A Du8500_of_clk.c11 #include <linux/clk-provider.h>
13 #include "clk.h"
18 static struct clk *prcmu_clk[PRCMU_NUM_CLKS];
19 static struct clk *prcc_pclk[(PRCC_NUM_PERIPH_CLUSTERS + 1) * PRCC_PERIPHS_PER_CLUSTER];
20 static struct clk *prcc_kclk[(PRCC_NUM_PERIPH_CLUSTERS + 1) * PRCC_PERIPHS_PER_CLUSTER];
22 #define PRCC_SHOW(clk, base, bit) \
23 clk[(base * PRCC_PERIPHS_PER_CLUSTER) + bit]
24 #define PRCC_PCLK_STORE(clk, base, bit) \
25 prcc_pclk[(base * PRCC_PERIPHS_PER_CLUSTER) + bit] = clk
26 #define PRCC_KCLK_STORE(clk, bas
64 struct clk *clk, *rtc_clk, *twd_clk; u8500_clk_init() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dclk.h3 * linux/include/linux/clk.h
17 struct clk;
22 * DOC: clk notifier callback types
24 * PRE_RATE_CHANGE - called immediately before the clk rate is changed,
32 * the clk will be called with ABORT_RATE_CHANGE. Callbacks must
35 * POST_RATE_CHANGE - called after the clk rate change has successfully
44 * struct clk_notifier - associate a clk with a notifier
45 * @clk: struct clk * to associate the notifier with
46 * @notifier_head: a blocking_notifier_head for this clk
55 struct clk *clk; global() member
72 struct clk *clk; global() member
89 struct clk *clk; global() member
221 clk_notifier_register(struct clk *clk, struct notifier_block *nb) clk_notifier_register() argument
227 clk_notifier_unregister(struct clk *clk, struct notifier_block *nb) clk_notifier_unregister() argument
233 devm_clk_notifier_register(struct device *dev, struct clk *clk, struct notifier_block *nb) devm_clk_notifier_register() argument
240 clk_get_accuracy(struct clk *clk) clk_get_accuracy() argument
245 clk_set_phase(struct clk *clk, int phase) clk_set_phase() argument
250 clk_get_phase(struct clk *clk) clk_get_phase() argument
255 clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den) clk_set_duty_cycle() argument
261 clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale) clk_get_scaled_duty_cycle() argument
272 clk_rate_exclusive_get(struct clk *clk) clk_rate_exclusive_get() argument
277 clk_rate_exclusive_put(struct clk *clk) clk_rate_exclusive_put() argument
311 clk_prepare(struct clk *clk) clk_prepare() argument
324 clk_is_enabled_when_prepared(struct clk *clk) clk_is_enabled_when_prepared() argument
343 clk_unprepare(struct clk *clk) clk_unprepare() argument
977 clk_put(struct clk *clk) clk_put() argument
983 devm_clk_put(struct device *dev, struct clk *clk) devm_clk_put() argument
985 clk_enable(struct clk *clk) clk_enable() argument
996 clk_disable(struct clk *clk) clk_disable() argument
1002 clk_get_rate(struct clk *clk) clk_get_rate() argument
1007 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
1012 clk_set_rate_exclusive(struct clk *clk, unsigned long rate) clk_set_rate_exclusive() argument
1017 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
1022 clk_has_parent(struct clk *clk, struct clk *parent) clk_has_parent() argument
1027 clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max) clk_set_rate_range() argument
1033 clk_set_min_rate(struct clk *clk, unsigned long rate) clk_set_min_rate() argument
1038 clk_set_max_rate(struct clk *clk, unsigned long rate) clk_set_max_rate() argument
1043 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
1048 clk_get_parent(struct clk *clk) clk_get_parent() argument
1068 clk_prepare_enable(struct clk *clk) clk_prepare_enable() argument
1083 clk_disable_unprepare(struct clk *clk) clk_disable_unprepare() argument
1117 clk_drop_range(struct clk *clk) clk_drop_range() argument
1133 struct clk *clk = clk_get(dev, id); clk_get_optional() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dclk.h3 * linux/include/linux/clk.h
17 struct clk;
22 * DOC: clk notifier callback types
24 * PRE_RATE_CHANGE - called immediately before the clk rate is changed,
32 * the clk will be called with ABORT_RATE_CHANGE. Callbacks must
35 * POST_RATE_CHANGE - called after the clk rate change has successfully
44 * struct clk_notifier - associate a clk with a notifier
45 * @clk: struct clk * to associate the notifier with
46 * @notifier_head: a blocking_notifier_head for this clk
55 struct clk *clk; global() member
72 struct clk *clk; global() member
89 struct clk *clk; global() member
210 clk_notifier_register(struct clk *clk, struct notifier_block *nb) clk_notifier_register() argument
216 clk_notifier_unregister(struct clk *clk, struct notifier_block *nb) clk_notifier_unregister() argument
222 clk_get_accuracy(struct clk *clk) clk_get_accuracy() argument
227 clk_set_phase(struct clk *clk, int phase) clk_set_phase() argument
232 clk_get_phase(struct clk *clk) clk_get_phase() argument
237 clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den) clk_set_duty_cycle() argument
243 clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale) clk_get_scaled_duty_cycle() argument
254 clk_rate_exclusive_get(struct clk *clk) clk_rate_exclusive_get() argument
259 clk_rate_exclusive_put(struct clk *clk) clk_rate_exclusive_put() argument
276 clk_prepare(struct clk *clk) clk_prepare() argument
303 clk_unprepare(struct clk *clk) clk_unprepare() argument
924 clk_put(struct clk *clk) clk_put() argument
930 devm_clk_put(struct device *dev, struct clk *clk) devm_clk_put() argument
932 clk_enable(struct clk *clk) clk_enable() argument
943 clk_disable(struct clk *clk) clk_disable() argument
949 clk_get_rate(struct clk *clk) clk_get_rate() argument
954 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
959 clk_set_rate_exclusive(struct clk *clk, unsigned long rate) clk_set_rate_exclusive() argument
964 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
969 clk_has_parent(struct clk *clk, struct clk *parent) clk_has_parent() argument
974 clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max) clk_set_rate_range() argument
980 clk_set_min_rate(struct clk *clk, unsigned long rate) clk_set_min_rate() argument
985 clk_set_max_rate(struct clk *clk, unsigned long rate) clk_set_max_rate() argument
990 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
995 clk_get_parent(struct clk *clk) clk_get_parent() argument
1015 clk_prepare_enable(struct clk *clk) clk_prepare_enable() argument
1030 clk_disable_unprepare(struct clk *clk) clk_disable_unprepare() argument
1069 struct clk *clk = clk_get(dev, id); clk_get_optional() local
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-omap1/
H A Dclock.h13 #include <linux/clk.h>
19 struct clk;
32 .clk = ck, \
45 #define __clk_get_name(clk) (clk->name)
46 #define __clk_get_parent(clk) (clk->parent)
47 #define __clk_get_rate(clk) (clk->rate)
54 * @find_companion: function returning the "companion" clk re
138 struct clk { global() struct
220 struct clk clk; global() member
226 struct clk clk; global() member
[all...]
H A Dclock.c17 #include <linux/clk.h>
31 struct clk *api_ck_p, *ck_dpll1_p, *ck_ref_p;
41 unsigned long omap1_uart_recalc(struct clk *clk) in omap1_uart_recalc() argument
43 unsigned int val = __raw_readl(clk->enable_reg); in omap1_uart_recalc()
44 return val & 1 << clk->enable_bit ? 48000000 : 12000000; in omap1_uart_recalc()
47 unsigned long omap1_sossi_recalc(struct clk *clk) in omap1_sossi_recalc() argument
54 return clk->parent->rate / div; in omap1_sossi_recalc()
57 static void omap1_clk_allow_idle(struct clk *cl argument
68 omap1_clk_deny_idle(struct clk *clk) omap1_clk_deny_idle() argument
132 calc_dsor_exp(struct clk *clk, unsigned long rate) calc_dsor_exp() argument
164 omap1_ckctl_recalc(struct clk *clk) omap1_ckctl_recalc() argument
172 omap1_ckctl_recalc_dsp_domain(struct clk *clk) omap1_ckctl_recalc_dsp_domain() argument
191 omap1_select_table_rate(struct clk *clk, unsigned long rate) omap1_select_table_rate() argument
226 omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate) omap1_clk_set_rate_dsp_domain() argument
246 omap1_clk_round_rate_ckctl_arm(struct clk *clk, unsigned long rate) omap1_clk_round_rate_ckctl_arm() argument
256 omap1_clk_set_rate_ckctl_arm(struct clk *clk, unsigned long rate) omap1_clk_set_rate_ckctl_arm() argument
276 omap1_round_to_table_rate(struct clk *clk, unsigned long rate) omap1_round_to_table_rate() argument
327 omap1_set_uart_rate(struct clk *clk, unsigned long rate) omap1_set_uart_rate() argument
345 omap1_set_ext_clk_rate(struct clk *clk, unsigned long rate) omap1_set_ext_clk_rate() argument
363 omap1_set_sossi_rate(struct clk *clk, unsigned long rate) omap1_set_sossi_rate() argument
386 omap1_round_ext_clk_rate(struct clk *clk, unsigned long rate) omap1_round_ext_clk_rate() argument
391 omap1_init_ext_clk(struct clk *clk) omap1_init_ext_clk() argument
409 omap1_clk_enable(struct clk *clk) omap1_clk_enable() argument
437 omap1_clk_disable(struct clk *clk) omap1_clk_disable() argument
449 omap1_clk_enable_generic(struct clk *clk) omap1_clk_enable_generic() argument
473 omap1_clk_disable_generic(struct clk *clk) omap1_clk_disable_generic() argument
497 omap1_clk_enable_dsp_domain(struct clk *clk) omap1_clk_enable_dsp_domain() argument
510 omap1_clk_disable_dsp_domain(struct clk *clk) omap1_clk_disable_dsp_domain() argument
524 omap1_clk_enable_uart_functional_16xx(struct clk *clk) omap1_clk_enable_uart_functional_16xx() argument
541 omap1_clk_disable_uart_functional_16xx(struct clk *clk) omap1_clk_disable_uart_functional_16xx() argument
558 omap1_clk_round_rate(struct clk *clk, unsigned long rate) omap1_clk_round_rate() argument
566 omap1_clk_set_rate(struct clk *clk, unsigned long rate) omap1_clk_set_rate() argument
581 omap1_clk_disable_unused(struct clk *clk) omap1_clk_disable_unused() argument
610 clk_enable(struct clk *clk) clk_enable() argument
626 clk_disable(struct clk *clk) clk_disable() argument
648 clk_get_rate(struct clk *clk) clk_get_rate() argument
668 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
684 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
702 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
710 clk_get_parent(struct clk *clk) clk_get_parent() argument
721 followparent_recalc(struct clk *clk) followparent_recalc() argument
730 omap_fixed_divisor_recalc(struct clk *clk) omap_fixed_divisor_recalc() argument
787 clk_preinit(struct clk *clk) clk_preinit() argument
792 clk_register(struct clk *clk) clk_register() argument
818 clk_unregister(struct clk *clk) clk_unregister() argument
901 clkll_enable_null(struct clk *clk) clkll_enable_null() argument
906 clkll_disable_null(struct clk *clk) clkll_disable_null() argument
[all...]
/kernel/linux/linux-5.10/drivers/clk/imx/
H A Dclk-imx5.c7 #include <linux/clk.h>
10 #include <linux/clk-provider.h>
19 #include "clk.h"
128 static struct clk *clk[IMX5_CLK_END]; variable
133 clk[IMX5_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in mx5_clocks_common_init()
134 clk[IMX5_CLK_CKIL] = imx_obtain_fixed_clock("ckil", 0); in mx5_clocks_common_init()
135 clk[IMX5_CLK_OSC] = imx_obtain_fixed_clock("osc", 0); in mx5_clocks_common_init()
136 clk[IMX5_CLK_CKIH1] = imx_obtain_fixed_clock("ckih1", 0); in mx5_clocks_common_init()
137 clk[IMX5_CLK_CKIH in mx5_clocks_common_init()
[all...]
H A Dclk-vf610.c8 #include <linux/clk.h>
12 #include "clk.h"
113 static struct clk *clk[VF610_CLK_END]; variable
131 static struct clk * __init vf610_get_fixed_clock( in vf610_get_fixed_clock()
134 struct clk *clk = of_clk_get_by_name(ccm_node, name); in vf610_get_fixed_clock() local
137 if (IS_ERR(clk)) in vf610_get_fixed_clock()
138 clk = imx_obtain_fixed_clock(name, 0); in vf610_get_fixed_clock()
139 return clk; in vf610_get_fixed_clock()
[all...]
H A Dclk-imx27.c2 #include <linux/clk.h>
3 #include <linux/clk-provider.h>
14 #include "clk.h"
49 static struct clk *clk[IMX27_CLK_MAX]; variable
56 clk[IMX27_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in _mx27_clocks_init()
57 clk[IMX27_CLK_CKIH] = imx_clk_fixed("ckih", fref); in _mx27_clocks_init()
58 clk[IMX27_CLK_CKIL] = imx_clk_fixed("ckil", 32768); in _mx27_clocks_init()
59 clk[IMX27_CLK_FPM] = imx_clk_fixed_factor("fpm", "ckil", 1024, 1); in _mx27_clocks_init()
60 clk[IMX27_CLK_CKIH_DIV1P in _mx27_clocks_init()
[all...]
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-imx5.c7 #include <linux/clk.h>
10 #include <linux/clk-provider.h>
19 #include "clk.h"
128 static struct clk *clk[IMX5_CLK_END]; variable
133 clk[IMX5_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in mx5_clocks_common_init()
134 clk[IMX5_CLK_CKIL] = imx_obtain_fixed_clock("ckil", 0); in mx5_clocks_common_init()
135 clk[IMX5_CLK_OSC] = imx_obtain_fixed_clock("osc", 0); in mx5_clocks_common_init()
136 clk[IMX5_CLK_CKIH1] = imx_obtain_fixed_clock("ckih1", 0); in mx5_clocks_common_init()
137 clk[IMX5_CLK_CKIH in mx5_clocks_common_init()
[all...]
H A Dclk-vf610.c8 #include <linux/clk.h>
12 #include "clk.h"
113 static struct clk *clk[VF610_CLK_END]; variable
131 static struct clk * __init vf610_get_fixed_clock( in vf610_get_fixed_clock()
134 struct clk *clk = of_clk_get_by_name(ccm_node, name); in vf610_get_fixed_clock() local
137 if (IS_ERR(clk)) in vf610_get_fixed_clock()
138 clk = imx_obtain_fixed_clock(name, 0); in vf610_get_fixed_clock()
139 return clk; in vf610_get_fixed_clock()
[all...]
H A Dclk-imx27.c2 #include <linux/clk.h>
3 #include <linux/clk-provider.h>
13 #include "clk.h"
48 static struct clk *clk[IMX27_CLK_MAX]; variable
55 clk[IMX27_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in _mx27_clocks_init()
56 clk[IMX27_CLK_CKIH] = imx_clk_fixed("ckih", fref); in _mx27_clocks_init()
57 clk[IMX27_CLK_CKIL] = imx_clk_fixed("ckil", 32768); in _mx27_clocks_init()
58 clk[IMX27_CLK_FPM] = imx_clk_fixed_factor("fpm", "ckil", 1024, 1); in _mx27_clocks_init()
59 clk[IMX27_CLK_CKIH_DIV1P in _mx27_clocks_init()
[all...]
/kernel/linux/linux-5.10/arch/mips/lantiq/
H A Dclk.c12 #include <linux/clk.h>
23 #include "clk.h"
27 static struct clk cpu_clk_generic[4];
38 struct clk *clk_get_cpu(void) in clk_get_cpu()
43 struct clk *clk_get_fpi(void) in clk_get_fpi()
49 struct clk *clk_get_io(void) in clk_get_io()
55 struct clk *clk_get_ppe(void) in clk_get_ppe()
61 static inline int clk_good(struct clk *clk) in clk_good() argument
63 return clk in clk_good()
66 clk_get_rate(struct clk *clk) clk_get_rate() argument
81 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
101 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
118 clk_enable(struct clk *clk) clk_enable() argument
130 clk_disable(struct clk *clk) clk_disable() argument
140 clk_activate(struct clk *clk) clk_activate() argument
152 clk_deactivate(struct clk *clk) clk_deactivate() argument
162 clk_get_parent(struct clk *clk) clk_get_parent() argument
168 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
192 struct clk *clk; plat_time_init() local
[all...]
/kernel/linux/linux-6.6/arch/mips/lantiq/
H A Dclk.c12 #include <linux/clk.h>
23 #include "clk.h"
27 static struct clk cpu_clk_generic[4];
38 struct clk *clk_get_cpu(void) in clk_get_cpu()
43 struct clk *clk_get_fpi(void) in clk_get_fpi()
49 struct clk *clk_get_io(void) in clk_get_io()
55 struct clk *clk_get_ppe(void) in clk_get_ppe()
61 static inline int clk_good(struct clk *clk) in clk_good() argument
63 return clk in clk_good()
66 clk_get_rate(struct clk *clk) clk_get_rate() argument
81 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
101 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
118 clk_enable(struct clk *clk) clk_enable() argument
130 clk_disable(struct clk *clk) clk_disable() argument
140 clk_activate(struct clk *clk) clk_activate() argument
152 clk_deactivate(struct clk *clk) clk_deactivate() argument
162 clk_get_parent(struct clk *clk) clk_get_parent() argument
168 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
192 struct clk *clk; plat_time_init() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/mmp/
H A Dclk-mmp2.c12 #include <linux/clk.h>
19 #include <linux/clk/mmp.h>
21 #include "clk.h"
79 struct clk *clk; in mmp2_clk_init() local
80 struct clk *vctcxo; in mmp2_clk_init()
103 clk = clk_register_fixed_rate(NULL, "clk32", NULL, 0, 3200); in mmp2_clk_init()
104 clk_register_clkdev(clk, "clk32", NULL); in mmp2_clk_init()
109 clk = clk_register_fixed_rate(NULL, "pll1", NULL, 0, 800000000); in mmp2_clk_init()
110 clk_register_clkdev(clk, "pll in mmp2_clk_init()
[all...]
H A Dclk-pxa910.c12 #include <linux/clk.h>
13 #include <linux/clk/mmp.h>
21 #include "clk.h"
70 struct clk *clk; in pxa910_clk_init() local
71 struct clk *uart_pll; in pxa910_clk_init()
101 clk = clk_register_fixed_rate(NULL, "clk32", NULL, 0, 3200); in pxa910_clk_init()
102 clk_register_clkdev(clk, "clk32", NULL); in pxa910_clk_init()
104 clk = clk_register_fixed_rate(NULL, "vctcxo", NULL, 0, 26000000); in pxa910_clk_init()
105 clk_register_clkdev(clk, "vctcx in pxa910_clk_init()
[all...]
/kernel/linux/linux-5.10/drivers/sh/clk/
H A Dcore.c29 #include <linux/clk.h>
39 void clk_rate_table_build(struct clk *clk, in clk_rate_table_build() argument
49 clk->nr_freqs = nr_freqs; in clk_rate_table_build()
64 freq = clk->parent->rate * mult / div; in clk_rate_table_build()
137 long clk_rate_table_round(struct clk *clk, in clk_rate_table_round() argument
143 .max = clk->nr_freqs - 1, in clk_rate_table_round()
149 if (clk->nr_freqs < 1) in clk_rate_table_round()
161 long clk_rate_div_range_round(struct clk *cl argument
181 clk_rate_mult_range_round(struct clk *clk, unsigned int mult_min, unsigned int mult_max, unsigned long rate) clk_rate_mult_range_round() argument
195 clk_rate_table_find(struct clk *clk, struct cpufreq_frequency_table *freq_table, unsigned long rate) clk_rate_table_find() argument
210 followparent_recalc(struct clk *clk) followparent_recalc() argument
238 __clk_disable(struct clk *clk) __clk_disable() argument
252 clk_disable(struct clk *clk) clk_disable() argument
265 __clk_enable(struct clk *clk) __clk_enable() argument
292 clk_enable(struct clk *clk) clk_enable() argument
330 lookup_root_clock(struct clk *clk) lookup_root_clock() argument
338 clk_establish_mapping(struct clk *clk) clk_establish_mapping() argument
397 clk_teardown_mapping(struct clk *clk) clk_teardown_mapping() argument
411 clk_register(struct clk *clk) clk_register() argument
452 clk_unregister(struct clk *clk) clk_unregister() argument
471 clk_get_rate(struct clk *clk) clk_get_rate() argument
480 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
511 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
543 clk_get_parent(struct clk *clk) clk_get_parent() argument
552 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
607 struct clk *clk; clk_late_init() local
[all...]
H A Dcpg.c11 #include <linux/clk.h>
19 static unsigned int sh_clk_read(struct clk *clk) in sh_clk_read() argument
21 if (clk->flags & CLK_ENABLE_REG_8BIT) in sh_clk_read()
22 return ioread8(clk->mapped_reg); in sh_clk_read()
23 else if (clk->flags & CLK_ENABLE_REG_16BIT) in sh_clk_read()
24 return ioread16(clk->mapped_reg); in sh_clk_read()
26 return ioread32(clk->mapped_reg); in sh_clk_read()
29 static void sh_clk_write(int value, struct clk *clk) in sh_clk_write() argument
39 sh_clk_mstp_enable(struct clk *clk) sh_clk_mstp_enable() argument
68 sh_clk_mstp_disable(struct clk *clk) sh_clk_mstp_disable() argument
97 clk_to_div_table(struct clk *clk) clk_to_div_table() argument
102 clk_to_div_mult_table(struct clk *clk) clk_to_div_mult_table() argument
110 sh_clk_div_round_rate(struct clk *clk, unsigned long rate) sh_clk_div_round_rate() argument
115 sh_clk_div_recalc(struct clk *clk) sh_clk_div_recalc() argument
128 sh_clk_div_set_rate(struct clk *clk, unsigned long rate) sh_clk_div_set_rate() argument
150 sh_clk_div_enable(struct clk *clk) sh_clk_div_enable() argument
162 sh_clk_div_disable(struct clk *clk) sh_clk_div_disable() argument
194 sh_clk_init_parent(struct clk *clk) sh_clk_init_parent() argument
279 sh_clk_div6_set_parent(struct clk *clk, struct clk *parent) sh_clk_div6_set_parent() argument
336 sh_clk_div4_set_parent(struct clk *clk, struct clk *parent) sh_clk_div4_set_parent() argument
395 fsidiv_recalc(struct clk *clk) fsidiv_recalc() argument
408 fsidiv_round_rate(struct clk *clk, unsigned long rate) fsidiv_round_rate() argument
413 fsidiv_disable(struct clk *clk) fsidiv_disable() argument
418 fsidiv_enable(struct clk *clk) fsidiv_enable() argument
431 fsidiv_set_rate(struct clk *clk, unsigned long rate) fsidiv_set_rate() argument
[all...]
/kernel/linux/linux-6.6/drivers/sh/clk/
H A Dcore.c29 #include <linux/clk.h>
39 void clk_rate_table_build(struct clk *clk, in clk_rate_table_build() argument
49 clk->nr_freqs = nr_freqs; in clk_rate_table_build()
64 freq = clk->parent->rate * mult / div; in clk_rate_table_build()
137 long clk_rate_table_round(struct clk *clk, in clk_rate_table_round() argument
143 .max = clk->nr_freqs - 1, in clk_rate_table_round()
149 if (clk->nr_freqs < 1) in clk_rate_table_round()
161 long clk_rate_div_range_round(struct clk *cl argument
181 clk_rate_mult_range_round(struct clk *clk, unsigned int mult_min, unsigned int mult_max, unsigned long rate) clk_rate_mult_range_round() argument
195 clk_rate_table_find(struct clk *clk, struct cpufreq_frequency_table *freq_table, unsigned long rate) clk_rate_table_find() argument
210 followparent_recalc(struct clk *clk) followparent_recalc() argument
238 __clk_disable(struct clk *clk) __clk_disable() argument
252 clk_disable(struct clk *clk) clk_disable() argument
265 __clk_enable(struct clk *clk) __clk_enable() argument
292 clk_enable(struct clk *clk) clk_enable() argument
330 lookup_root_clock(struct clk *clk) lookup_root_clock() argument
338 clk_establish_mapping(struct clk *clk) clk_establish_mapping() argument
397 clk_teardown_mapping(struct clk *clk) clk_teardown_mapping() argument
411 clk_register(struct clk *clk) clk_register() argument
452 clk_unregister(struct clk *clk) clk_unregister() argument
471 clk_get_rate(struct clk *clk) clk_get_rate() argument
480 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
511 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
543 clk_get_parent(struct clk *clk) clk_get_parent() argument
552 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
607 struct clk *clk; clk_late_init() local
[all...]
H A Dcpg.c11 #include <linux/clk.h>
19 static unsigned int sh_clk_read(struct clk *clk) in sh_clk_read() argument
21 if (clk->flags & CLK_ENABLE_REG_8BIT) in sh_clk_read()
22 return ioread8(clk->mapped_reg); in sh_clk_read()
23 else if (clk->flags & CLK_ENABLE_REG_16BIT) in sh_clk_read()
24 return ioread16(clk->mapped_reg); in sh_clk_read()
26 return ioread32(clk->mapped_reg); in sh_clk_read()
29 static void sh_clk_write(int value, struct clk *clk) in sh_clk_write() argument
39 sh_clk_mstp_enable(struct clk *clk) sh_clk_mstp_enable() argument
68 sh_clk_mstp_disable(struct clk *clk) sh_clk_mstp_disable() argument
97 clk_to_div_table(struct clk *clk) clk_to_div_table() argument
102 clk_to_div_mult_table(struct clk *clk) clk_to_div_mult_table() argument
110 sh_clk_div_round_rate(struct clk *clk, unsigned long rate) sh_clk_div_round_rate() argument
115 sh_clk_div_recalc(struct clk *clk) sh_clk_div_recalc() argument
128 sh_clk_div_set_rate(struct clk *clk, unsigned long rate) sh_clk_div_set_rate() argument
150 sh_clk_div_enable(struct clk *clk) sh_clk_div_enable() argument
162 sh_clk_div_disable(struct clk *clk) sh_clk_div_disable() argument
194 sh_clk_init_parent(struct clk *clk) sh_clk_init_parent() argument
279 sh_clk_div6_set_parent(struct clk *clk, struct clk *parent) sh_clk_div6_set_parent() argument
336 sh_clk_div4_set_parent(struct clk *clk, struct clk *parent) sh_clk_div4_set_parent() argument
395 fsidiv_recalc(struct clk *clk) fsidiv_recalc() argument
408 fsidiv_round_rate(struct clk *clk, unsigned long rate) fsidiv_round_rate() argument
413 fsidiv_disable(struct clk *clk) fsidiv_disable() argument
418 fsidiv_enable(struct clk *clk) fsidiv_enable() argument
431 fsidiv_set_rate(struct clk *clk, unsigned long rate) fsidiv_set_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
H A Dv4l2-clk.c9 #include <linux/clk.h>
19 #include <media/v4l2-clk.h>
27 struct v4l2_clk *clk; in v4l2_clk_find() local
29 list_for_each_entry(clk, &clk_list, list) in v4l2_clk_find()
30 if (!strcmp(dev_id, clk->dev_id)) in v4l2_clk_find()
31 return clk; in v4l2_clk_find()
38 struct v4l2_clk *clk; in v4l2_clk_get() local
39 struct clk *ccf_clk = clk_get(dev, id); in v4l2_clk_get()
46 clk = kzalloc(sizeof(*clk), GFP_KERNE in v4l2_clk_get()
73 v4l2_clk_put(struct v4l2_clk *clk) v4l2_clk_put() argument
96 v4l2_clk_lock_driver(struct v4l2_clk *clk) v4l2_clk_lock_driver() argument
116 v4l2_clk_unlock_driver(struct v4l2_clk *clk) v4l2_clk_unlock_driver() argument
121 v4l2_clk_enable(struct v4l2_clk *clk) v4l2_clk_enable() argument
150 v4l2_clk_disable(struct v4l2_clk *clk) v4l2_clk_disable() argument
172 v4l2_clk_get_rate(struct v4l2_clk *clk) v4l2_clk_get_rate() argument
196 v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate) v4l2_clk_set_rate() argument
229 struct v4l2_clk *clk; v4l2_clk_register() local
268 v4l2_clk_unregister(struct v4l2_clk *clk) v4l2_clk_unregister() argument
289 fixed_get_rate(struct v4l2_clk *clk) fixed_get_rate() argument
298 struct v4l2_clk *clk; __v4l2_clk_register_fixed() local
316 v4l2_clk_unregister_fixed(struct v4l2_clk *clk) v4l2_clk_unregister_fixed() argument
[all...]
/kernel/linux/linux-5.10/arch/c6x/platforms/
H A Dpll.c16 #include <linux/clk.h>
27 static void __clk_enable(struct clk *clk) in __clk_enable() argument
29 if (clk->parent) in __clk_enable()
30 __clk_enable(clk->parent); in __clk_enable()
31 clk->usecount++; in __clk_enable()
34 static void __clk_disable(struct clk *clk) in __clk_disable() argument
36 if (WARN_ON(clk->usecount == 0)) in __clk_disable()
38 --clk in __clk_disable()
44 clk_enable(struct clk *clk) clk_enable() argument
59 clk_disable(struct clk *clk) clk_disable() argument
72 clk_get_rate(struct clk *clk) clk_get_rate() argument
81 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
96 struct clk *clk; propagate_rate() local
105 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
128 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
155 clk_register(struct clk *clk) clk_register() argument
187 clk_unregister(struct clk *clk) clk_unregister() argument
205 clk_sysclk_recalc(struct clk *clk) clk_sysclk_recalc() argument
254 clk_leafclk_recalc(struct clk *clk) clk_leafclk_recalc() argument
265 clk_pllclk_recalc(struct clk *clk) clk_pllclk_recalc() argument
322 __init_clk(struct clk *clk) __init_clk() argument
347 struct clk *clk; c6x_clks_init() local
379 struct clk *clk; dump_clock() local
406 struct clk *clk; c6x_ck_show() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/spear/
H A Dspear3xx_clock.c9 #include <linux/clk.h>
11 #include <linux/clk/spear.h>
16 #include "clk.h"
141 struct clk *clk; in spear300_clk_init() local
143 clk = clk_register_fixed_factor(NULL, "clcd_clk", "ras_pll3_clk", 0, in spear300_clk_init()
145 clk_register_clkdev(clk, NULL, "60000000.clcd"); in spear300_clk_init()
147 clk = clk_register_fixed_factor(NULL, "fsmc_clk", "ras_ahb_clk", 0, 1, in spear300_clk_init()
149 clk_register_clkdev(clk, NULL, "94000000.flash"); in spear300_clk_init()
151 clk in spear300_clk_init()
171 struct clk *clk; spear310_clk_init() local
249 struct clk *clk; spear320_clk_init() local
390 struct clk *clk, *clk1, *ras_apb_clk; spear3xx_clk_init() local
[all...]
/kernel/linux/linux-5.10/arch/m68k/coldfire/
H A Dclk.c5 * clk.c -- general ColdFire CPU kernel clk handling
16 #include <linux/clk.h>
31 void __clk_init_enabled(struct clk *clk) in __clk_init_enabled() argument
33 clk->enabled = 1; in __clk_init_enabled()
34 clk->clk_ops->enable(clk); in __clk_init_enabled()
37 void __clk_init_disabled(struct clk *clk) in __clk_init_disabled() argument
43 __clk_enable0(struct clk *clk) __clk_enable0() argument
48 __clk_disable0(struct clk *clk) __clk_disable0() argument
59 __clk_enable1(struct clk *clk) __clk_enable1() argument
64 __clk_disable1(struct clk *clk) __clk_disable1() argument
79 struct clk *clk; clk_get() local
90 clk_enable(struct clk *clk) clk_enable() argument
102 clk_disable(struct clk *clk) clk_disable() argument
116 clk_put(struct clk *clk) clk_put() argument
123 clk_get_rate(struct clk *clk) clk_get_rate() argument
133 clk_round_rate(struct clk *clk, unsigned long rate) clk_round_rate() argument
140 clk_set_rate(struct clk *clk, unsigned long rate) clk_set_rate() argument
147 clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument
154 clk_get_parent(struct clk *clk) clk_get_parent() argument
[all...]
/kernel/linux/linux-5.10/drivers/clk/spear/
H A Dspear3xx_clock.c12 #include <linux/clk.h>
18 #include "clk.h"
143 struct clk *clk; in spear300_clk_init() local
145 clk = clk_register_fixed_factor(NULL, "clcd_clk", "ras_pll3_clk", 0, in spear300_clk_init()
147 clk_register_clkdev(clk, NULL, "60000000.clcd"); in spear300_clk_init()
149 clk = clk_register_fixed_factor(NULL, "fsmc_clk", "ras_ahb_clk", 0, 1, in spear300_clk_init()
151 clk_register_clkdev(clk, NULL, "94000000.flash"); in spear300_clk_init()
153 clk = clk_register_fixed_factor(NULL, "sdhci_clk", "ras_ahb_clk", 0, 1, in spear300_clk_init()
155 clk_register_clkdev(clk, NUL in spear300_clk_init()
173 struct clk *clk; spear310_clk_init() local
251 struct clk *clk; spear320_clk_init() local
392 struct clk *clk, *clk1, *ras_apb_clk; spear3xx_clk_init() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/zte/
H A Dclk-zx296702.c7 #include <linux/clk-provider.h>
10 #include "clk.h"
18 static struct clk *topclk[ZX296702_TOPCLK_END];
19 static struct clk *lsp0clk[ZX296702_LSP0CLK_END];
20 static struct clk *lsp1clk[ZX296702_LSP1CLK_END];
196 static inline struct clk *zx_divtbl(const char *name, const char *parent, in zx_divtbl()
204 static inline struct clk *zx_div(const char *name, const char *parent, in zx_div()
211 static inline struct clk *zx_mux(const char *name, const char * const *parents, in zx_mux()
218 static inline struct clk *zx_gate(const char *name, const char *parent, in zx_gate()
227 struct clk **cl in zx296702_top_clocks_init() local
595 struct clk **clk = lsp0clk; zx296702_lsp0_clocks_init() local
679 struct clk **clk = lsp1clk; zx296702_lsp1_clocks_init() local
[all...]

Completed in 13 milliseconds

12345678910>>...301