Searched refs:clk (Results 176 - 200 of 4090) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dnv50.c32 read_div(struct nv50_clk *clk) argument
34 struct nvkm_device *device = clk->base.subdev.device;
52 read_pll_src(struct nv50_clk *clk, u32 base) argument
54 struct nvkm_subdev *subdev = &clk->base.subdev;
56 u32 coef, ref = nvkm_clk_read(&clk->base, nv_clk_src_crystal);
103 case 1: return nvkm_clk_read(&clk->base, nv_clk_src_crystal);
104 case 2: return nvkm_clk_read(&clk->base, nv_clk_src_href);
125 read_pll_ref(struct nv50_clk *clk, u32 base) argument
127 struct nvkm_subdev *subdev = &clk->base.subdev;
145 return nvkm_clk_read(&clk
158 read_pll(struct nv50_clk *clk, u32 base) argument
194 struct nv50_clk *clk = nv50_clk(base); local
326 calc_pll(struct nv50_clk *clk, u32 reg, u32 idx, int *N, int *M, int *P) argument
371 struct nv50_clk *clk = nv50_clk(base); local
498 struct nv50_clk *clk = nv50_clk(base); local
505 struct nv50_clk *clk = nv50_clk(base); local
513 struct nv50_clk *clk; local
[all...]
/linux-master/drivers/clk/hisilicon/
H A Dclk.c14 #include <linux/clk-provider.h>
22 #include "clk.h"
31 struct clk **clk_table;
62 struct clk **clk_table;
94 struct clk *clk; local
98 clk = clk_register_fixed_rate(NULL, clks[i].name,
102 if (IS_ERR(clk)) {
107 data->clk_data.clks[clks[i].id] = clk;
116 return PTR_ERR(clk);
124 struct clk *clk; local
153 struct clk *clk; local
193 struct clk *clk; local
215 struct clk *clk; local
253 struct clk *clk; local
290 struct clk *clk; local
319 struct clk *clk; local
[all...]
/linux-master/drivers/clk/
H A Dclk_test.c3 * Kunit test for clk rate management
5 #include <linux/clk.h>
6 #include <linux/clk-provider.h>
9 #include "clk.h"
221 struct clk *clk = clk_hw_get_clk(hw, NULL); local
224 rate = clk_get_rate(clk);
228 clk_put(clk);
242 struct clk *clk local
267 struct clk *clk = clk_hw_get_clk(hw, NULL); local
293 struct clk *clk = clk_hw_get_clk(hw, NULL); local
363 struct clk *clk = clk_hw_get_clk(hw, NULL); local
387 struct clk *clk = clk_hw_get_clk(hw, NULL); local
416 struct clk *clk = clk_hw_get_clk(hw, NULL); local
511 struct clk *clk = clk_hw_get_clk(hw, NULL); local
529 struct clk *clk = clk_hw_get_clk(hw, NULL); local
557 struct clk *clk = clk_hw_get_clk(hw, NULL); local
665 struct clk *clk = clk_hw_get_clk(hw, NULL); local
682 struct clk *clk = clk_hw_get_clk(hw, NULL); local
710 struct clk *clk = clk_hw_get_clk(hw, NULL); local
744 struct clk *clk = clk_hw_get_clk(hw, NULL); local
774 struct clk *clk, *parent; local
809 struct clk *clk = clk_hw_get_clk(hw, NULL); local
842 struct clk *clk = clk_hw_get_clk(hw, NULL); local
879 struct clk *clk = clk_hw_get_clk(hw, NULL); local
908 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1015 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1033 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1056 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1088 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1117 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1147 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1185 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1285 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1389 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1411 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1463 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1488 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1535 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1560 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1591 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1620 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1645 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1676 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1709 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1741 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1801 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1853 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1912 struct clk *clk = clk_hw_get_clk(hw, NULL); local
1989 struct clk *clk = clk_hw_get_clk(hw, NULL); local
2041 struct clk *clk = clk_hw_get_clk(hw, NULL); local
2096 struct clk *clk = clk_hw_get_clk(hw, NULL); local
2320 struct clk *clk = clk_hw_get_clk(hw, NULL); local
2371 struct clk *clk; member in struct:clk_mux_notifier_ctx
2453 struct clk *clk = ctx->clk; local
2472 struct clk *clk = clk_hw_get_clk(hw, NULL); local
2575 struct clk *clk = clk_hw_get_clk(hw, NULL); local
2611 struct clk *clk = clk_hw_get_clk(hw, NULL); local
[all...]
H A Dclk-bulk.c8 #include <linux/clk.h>
9 #include <linux/clk-provider.h>
23 clks[i].clk = NULL;
28 clks[i].clk = of_clk_get(np, i);
29 if (IS_ERR(clks[i].clk)) {
30 ret = PTR_ERR(clks[i].clk);
31 pr_err("%pOF: Failed to get clk index: %d ret: %d\n",
33 clks[i].clk = NULL;
75 clk_put(clks[num_clks].clk);
76 clks[num_clks].clk
[all...]
/linux-master/drivers/clk/mvebu/
H A Dap-cpu-clk.c11 #define pr_fmt(fmt) "ap-cpu-clk: " fmt
13 #include <linux/clk-provider.h>
14 #include <linux/clk.h>
146 struct ap_cpu_clk *clk = to_ap_cpu_clk(hw); local
150 cpu_clkdiv_reg = clk->pll_regs->divider_reg +
151 (clk->cluster * clk->pll_regs->cluster_offset);
152 regmap_read(clk->pll_cr_base, cpu_clkdiv_reg, &cpu_clkdiv_ratio);
153 cpu_clkdiv_ratio &= clk->pll_regs->divider_mask;
154 cpu_clkdiv_ratio >>= clk
162 struct ap_cpu_clk *clk = to_ap_cpu_clk(hw); local
[all...]
/linux-master/drivers/clk/meson/
H A Dclk-mpll.c14 #include <linux/clk-provider.h>
18 #include "clk-regmap.h"
19 #include "clk-mpll.h"
26 meson_clk_mpll_data(struct clk_regmap *clk) argument
28 return (struct meson_clk_mpll_data *)clk->data;
78 struct clk_regmap *clk = to_clk_regmap(hw); local
79 struct meson_clk_mpll_data *mpll = meson_clk_mpll_data(clk);
83 sdm = meson_parm_read(clk->map, &mpll->sdm);
84 n2 = meson_parm_read(clk->map, &mpll->n2);
92 struct clk_regmap *clk local
112 struct clk_regmap *clk = to_clk_regmap(hw); local
140 struct clk_regmap *clk = to_clk_regmap(hw); local
[all...]
H A Dclk-dualdiv.c24 #include <linux/clk-provider.h>
27 #include "clk-regmap.h"
28 #include "clk-dualdiv.h"
31 meson_clk_dualdiv_data(struct clk_regmap *clk) argument
33 return (struct meson_clk_dualdiv_data *)clk->data;
50 struct clk_regmap *clk = to_clk_regmap(hw); local
51 struct meson_clk_dualdiv_data *dualdiv = meson_clk_dualdiv_data(clk);
54 setting.dual = meson_parm_read(clk->map, &dualdiv->dual);
55 setting.n1 = meson_parm_read(clk->map, &dualdiv->n1) + 1;
56 setting.m1 = meson_parm_read(clk
92 struct clk_regmap *clk = to_clk_regmap(hw); local
111 struct clk_regmap *clk = to_clk_regmap(hw); local
[all...]
H A DMakefile6 obj-$(CONFIG_COMMON_CLK_MESON_CPU_DYNDIV) += clk-cpu-dyndiv.o
7 obj-$(CONFIG_COMMON_CLK_MESON_DUALDIV) += clk-dualdiv.o
9 obj-$(CONFIG_COMMON_CLK_MESON_MPLL) += clk-mpll.o
10 obj-$(CONFIG_COMMON_CLK_MESON_PHASE) += clk-phase.o
11 obj-$(CONFIG_COMMON_CLK_MESON_PLL) += clk-pll.o
12 obj-$(CONFIG_COMMON_CLK_MESON_REGMAP) += clk-regmap.o
/linux-master/drivers/clk/ti/
H A Dinterface.c10 #include <linux/clk-provider.h>
14 #include <linux/clk/ti.h>
27 static struct clk *_register_interface(struct device_node *node,
35 struct clk *clk; local
53 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
55 if (IS_ERR(clk))
58 return clk;
64 struct clk *clk; local
[all...]
H A Ddpll3xxx.c23 #include <linux/clk.h>
27 #include <linux/clk/ti.h>
40 static u32 omap3_dpll_autoidle_read(struct clk_hw_omap *clk);
41 static void omap3_dpll_deny_idle(struct clk_hw_omap *clk);
42 static void omap3_dpll_allow_idle(struct clk_hw_omap *clk);
47 static void _omap3_dpll_write_clken(struct clk_hw_omap *clk, u8 clken_bits) argument
52 dd = clk->dpll_data;
61 static int _omap3_wait_dpll_status(struct clk_hw_omap *clk, u8 state) argument
68 dd = clk->dpll_data;
69 clk_name = clk_hw_get_name(&clk
93 _omap3_dpll_compute_freqsel(struct clk_hw_omap *clk, u8 n) argument
138 _omap3_noncore_dpll_lock(struct clk_hw_omap *clk) argument
184 _omap3_noncore_dpll_bypass(struct clk_hw_omap *clk) argument
216 _omap3_noncore_dpll_stop(struct clk_hw_omap *clk) argument
247 _lookup_dco(struct clk_hw_omap *clk, u8 *dco, u16 m, u8 n) argument
272 _lookup_sddiv(struct clk_hw_omap *clk, u8 *sd_div, u16 m, u8 n) argument
301 omap3_noncore_dpll_ssc_program(struct clk_hw_omap *clk) argument
384 omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 freqsel) argument
501 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
524 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
566 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
588 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
622 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
650 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
728 omap3_dpll_autoidle_read(struct clk_hw_omap *clk) argument
757 omap3_dpll_allow_idle(struct clk_hw_omap *clk) argument
787 omap3_dpll_deny_idle(struct clk_hw_omap *clk) argument
878 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
907 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
939 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
968 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
1073 struct clk_hw_omap *clk = to_clk_hw_omap(hw); local
[all...]
/linux-master/drivers/clk/starfive/
H A Dclk-starfive-jh71x0.c8 #include <linux/clk-provider.h>
13 #include "clk-starfive-jh71x0.h"
20 static struct jh71x0_clk_priv *jh71x0_priv_from(struct jh71x0_clk *clk) argument
22 return container_of(clk, struct jh71x0_clk_priv, reg[clk->idx]);
25 static u32 jh71x0_clk_reg_get(struct jh71x0_clk *clk) argument
27 struct jh71x0_clk_priv *priv = jh71x0_priv_from(clk);
28 void __iomem *reg = priv->base + 4 * clk->idx;
33 static void jh71x0_clk_reg_rmw(struct jh71x0_clk *clk, u32 mask, u32 value) argument
35 struct jh71x0_clk_priv *priv = jh71x0_priv_from(clk);
47 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
55 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
62 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
70 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
79 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
109 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
120 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
151 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
162 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
170 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
179 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
187 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
208 struct jh71x0_clk *clk = jh71x0_clk_from(hw); local
[all...]
/linux-master/drivers/base/power/
H A Dclock_ops.c13 #include <linux/clk.h>
34 struct clk *clk; member in struct:pm_clock_entry
153 ret = clk_prepare_enable(ce->clk);
156 ret = clk_enable(ce->clk);
164 dev_err(dev, "%s: failed to enable clk %p, error %d\n",
165 __func__, ce->clk, ret);
175 if (!ce->clk)
176 ce->clk = clk_get(dev, ce->con_id);
177 if (IS_ERR(ce->clk)) {
195 __pm_clk_add(struct device *dev, const char *con_id, struct clk *clk) argument
256 pm_clk_add_clk(struct device *dev, struct clk *clk) argument
275 struct clk *clk; local
427 pm_clk_remove_clk(struct device *dev, struct clk *clk) argument
712 struct clk *clk; local
729 struct clk *clk; local
[all...]
/linux-master/drivers/mmc/host/
H A Dsdhci-milbeaut.c11 #include <linux/clk.h>
54 struct clk *clk_iface;
55 struct clk *clk; member in struct:f_sdhost_priv
88 u16 clk; local
92 clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL);
93 clk = (clk & ~SDHCI_CLOCK_CARD_EN) | SDHCI_CLOCK_INT_EN;
94 sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL);
98 clk |
146 u32 val, clk; local
[all...]
/linux-master/drivers/clk/keystone/
H A Dsci-clk.c8 #include <linux/clk-provider.h>
73 struct sci_clk *clk = to_sci_clk(hw); local
74 bool enable_ssc = clk->flags & SCI_CLK_SSC_ENABLE;
75 bool allow_freq_change = clk->flags & SCI_CLK_ALLOW_FREQ_CHANGE;
76 bool input_termination = clk->flags & SCI_CLK_INPUT_TERMINATION;
78 return clk->provider->ops->get_clock(clk->provider->sci, clk->dev_id,
79 clk->clk_id, enable_ssc,
92 struct sci_clk *clk local
112 struct sci_clk *clk = to_sci_clk(hw); local
140 struct sci_clk *clk = to_sci_clk(hw); local
169 struct sci_clk *clk = to_sci_clk(hw); local
212 struct sci_clk *clk = to_sci_clk(hw); local
227 struct sci_clk *clk = to_sci_clk(hw); local
254 struct sci_clk *clk = to_sci_clk(hw); local
381 struct sci_clk **clk; local
[all...]
/linux-master/drivers/clk/tegra/
H A Dclk-audio-sync.c6 #include <linux/clk-provider.h>
10 #include "clk.h"
46 struct clk *tegra_clk_register_sync_source(const char *name,
51 struct clk *clk; local
55 pr_err("%s: could not allocate sync source clk\n", __func__);
70 clk = clk_register(NULL, &sync->hw);
71 if (IS_ERR(clk))
74 return clk;
/linux-master/drivers/clk/sunxi/
H A Dclk-sun6i-apb0.c10 #include <linux/clk-provider.h>
16 * The APB0 clk has a configurable divisor.
36 struct clk *clk; local
48 clk = clk_register_divider_table(&pdev->dev, clk_name, clk_parent,
51 if (IS_ERR(clk))
52 return PTR_ERR(clk);
54 return of_clk_add_provider(np, of_clk_src_simple_get, clk);
58 { .compatible = "allwinner,sun6i-a31-apb0-clk" },
64 .name = "sun6i-a31-apb0-clk",
[all...]
/linux-master/drivers/clk/mmp/
H A Dclk-apmu.c15 #include "clk.h"
17 #define to_clk_apmu(clk) (container_of(clk, struct clk_apmu, clk))
65 struct clk *mmp_clk_register_apmu(const char *name, const char *parent_name,
69 struct clk *clk; local
87 clk = clk_register(NULL, &apmu->hw);
89 if (IS_ERR(clk))
92 return clk;
[all...]
/linux-master/sound/soc/mediatek/mt8188/
H A Dmt8188-afe-clk.h3 * mt8188-afe-clk.h -- MediaTek 8188 afe clock ctrl definition
114 int mt8188_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk);
115 void mt8188_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk);
116 int mt8188_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk,
118 int mt8188_afe_set_clk_parent(struct mtk_base_afe *afe, struct clk *clk,
119 struct clk *paren
[all...]
/linux-master/include/linux/
H A Dpm_clock.h20 struct clk;
43 extern int pm_clk_add_clk(struct device *dev, struct clk *clk);
47 extern void pm_clk_remove_clk(struct device *dev, struct clk *clk);
71 static inline int pm_clk_add_clk(struct device *dev, struct clk *clk) argument
84 static inline void pm_clk_remove_clk(struct device *dev, struct clk *clk) argument
/linux-master/drivers/gpu/drm/sun4i/
H A Dsun8i_tcon_top.h7 #include <linux/clk.h>
8 #include <linux/clk-provider.h>
27 struct clk *bus;
/linux-master/sound/soc/mediatek/mt6797/
H A Dmt6797-afe-common.h44 struct clk;
47 struct clk **clk; member in struct:mt6797_afe_private
/linux-master/drivers/phy/
H A Dphy-lpc18xx-usb-otg.c8 #include <linux/clk.h>
23 struct clk *clk; member in struct:lpc18xx_usb_otg_phy
33 ret = clk_set_rate(lpc->clk, 480000000);
37 return clk_prepare(lpc->clk);
44 clk_unprepare(lpc->clk);
54 ret = clk_enable(lpc->clk);
62 clk_disable(lpc->clk);
80 clk_disable(lpc->clk);
108 lpc->clk
[all...]
/linux-master/sound/soc/ux500/
H A Dux500_msp_dai.h57 struct clk *clk; member in struct:ux500_msp_i2s_drvdata
58 struct clk *pclk;
/linux-master/sound/soc/fsl/
H A Dfsl_utils.c9 #include <linux/clk.h>
10 #include <linux/clk-provider.h>
97 void fsl_asoc_get_pll_clocks(struct device *dev, struct clk **pll8k_clk,
98 struct clk **pll11k_clk)
114 * @clk: root clock pointer
121 void fsl_asoc_reparent_pll_clocks(struct device *dev, struct clk *clk, argument
122 struct clk *pll8k_clk,
123 struct clk *pll11k_clk, u64 ratio)
125 struct clk *
[all...]
/linux-master/drivers/cpufreq/
H A Dqoriq-cpufreq.c10 #include <linux/clk.h>
11 #include <linux/clk-provider.h>
29 struct clk **pclk;
45 struct clk *pltclk;
68 static struct clk *cpu_to_clk(int cpu)
71 struct clk *clk; local
80 clk = of_clk_get(np, 0);
82 return clk;
89 struct clk *cl local
160 struct clk *clk; local
[all...]

Completed in 287 milliseconds

1234567891011>>