Home
last modified time | relevance | path

Searched refs:pclk (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/linux/drivers/clk/
A Dclk-xgene.c449 if (pclk->lock) in xgene_clk_enable()
452 if (pclk->param.csr_reg) { in xgene_clk_enable()
462 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable()
473 pclk->param.reg_csr_offset, pclk->param.reg_csr_mask, in xgene_clk_enable()
477 if (pclk->lock) in xgene_clk_enable()
489 if (pclk->lock) in xgene_clk_disable()
492 if (pclk->param.csr_reg) { in xgene_clk_disable()
509 if (pclk->lock) in xgene_clk_disable()
527 if (!pclk->param.csr_reg) in xgene_clk_is_enabled()
565 if (pclk->lock) in xgene_clk_set_rate()
[all …]
A Dclk-conf.c18 struct clk *clk, *pclk; in __set_clk_parents() local
38 pclk = of_clk_get_from_provider(&clkspec); in __set_clk_parents()
39 if (IS_ERR(pclk)) { in __set_clk_parents()
40 if (PTR_ERR(pclk) != -EPROBE_DEFER) in __set_clk_parents()
43 return PTR_ERR(pclk); in __set_clk_parents()
63 rc = clk_set_parent(clk, pclk); in __set_clk_parents()
66 __clk_get_name(clk), __clk_get_name(pclk), rc); in __set_clk_parents()
68 clk_put(pclk); in __set_clk_parents()
72 clk_put(pclk); in __set_clk_parents()
/linux/drivers/clk/x86/
A Dclk-pmc-atom.c165 struct clk_plt *pclk; in plt_clk_register() local
169 pclk = devm_kzalloc(&pdev->dev, sizeof(*pclk), GFP_KERNEL); in plt_clk_register()
170 if (!pclk) in plt_clk_register()
197 pclk->lookup = clkdev_hw_create(&pclk->hw, init.name, NULL); in plt_clk_register()
198 if (!pclk->lookup) { in plt_clk_register()
205 return pclk; in plt_clk_register()
220 pclk = devm_kzalloc(&pdev->dev, sizeof(*pclk), GFP_KERNEL); in plt_clk_register_fixed_rate()
221 if (!pclk) in plt_clk_register_fixed_rate()
229 pclk->lookup = clkdev_hw_create(pclk->clk, name, NULL); in plt_clk_register_fixed_rate()
230 if (!pclk->lookup) { in plt_clk_register_fixed_rate()
[all …]
/linux/arch/arm/boot/dts/
A Dversatile-ab.dts161 pclk: pclk@24M { label
236 clocks = <&pclk>;
267 clocks = <&pclk>;
274 clocks = <&pclk>;
321 clocks = <&pclk>;
329 clocks = <&pclk>;
357 clocks = <&pclk>;
369 clocks = <&pclk>;
377 clocks = <&pclk>;
385 clocks = <&pclk>;
[all …]
A Decx-common.dtsi50 clocks = <&pclk>;
60 clocks = <&pclk>;
71 clocks = <&pclk>;
82 clocks = <&pclk>;
93 clocks = <&pclk>;
102 clocks = <&pclk>;
110 clocks = <&pclk>;
118 clocks = <&pclk>, <&pclk>;
187 pclk: pclk { label
199 clocks = <&pclk>;
A Darm-realview-eb.dtsi111 pclk: pclk@0 { label
329 clocks = <&pclk>;
342 clocks = <&mclk>, <&pclk>;
352 clocks = <&kmiclk>, <&pclk>;
359 clocks = <&kmiclk>, <&pclk>;
366 clocks = <&pclk>;
401 clocks = <&sspclk>, <&pclk>;
434 clocks = <&pclk>;
445 clocks = <&pclk>;
456 clocks = <&pclk>;
[all …]
A Darm-realview-pbx.dtsi126 pclk: pclk@0 { label
392 clocks = <&sspclk>, <&pclk>;
417 <&pclk>;
428 <&pclk>;
441 clocks = <&pclk>;
452 clocks = <&pclk>;
463 clocks = <&pclk>;
477 clocks = <&pclk>;
527 clocks = <&pclk>;
540 clocks = <&mclk>, <&pclk>;
[all …]
A Darm-realview-pb1176.dts113 pclk: pclk@0 { label
390 clocks = <&pclk>;
403 clocks = <&pclk>;
412 clocks = <&sspclk>, <&pclk>;
503 clocks = <&pclk>;
518 clocks = <&mclk>, <&pclk>;
530 clocks = <&kmiclk>, <&pclk>;
548 clocks = <&pclk>;
582 clocks = <&pclk>;
595 clocks = <&pclk>;
[all …]
A Dste-nomadik-stn8815.dtsi64 clocks = <&pclk>;
78 clocks = <&pclk>;
92 clocks = <&pclk>;
107 clocks = <&pclk>;
233 pclk: pclk@0 { label
332 clocks = <&pclk>;
338 clocks = <&pclk>;
344 clocks = <&pclk>;
350 clocks = <&pclk>;
356 clocks = <&pclk>;
[all …]
A Dmeson6.dtsi52 clock-names = "xtal", "pclk";
57 clock-names = "xtal", "pclk", "baud";
62 clock-names = "xtal", "pclk", "baud";
67 clock-names = "xtal", "pclk", "baud";
72 clock-names = "xtal", "pclk", "baud";
/linux/drivers/clocksource/
A Dtimer-microchip-pit64b.c59 struct clk *pclk; member
138 clk_disable_unprepare(timer->pclk); in mchp_pit64b_suspend()
143 clk_prepare_enable(timer->pclk); in mchp_pit64b_resume()
295 goto pclk; in mchp_pit64b_init_mode()
298 goto pclk; in mchp_pit64b_init_mode()
310 pclk: in mchp_pit64b_init_mode()
350 cs->timer.pclk = timer->pclk; in mchp_pit64b_init_clksrc()
391 ce->timer.pclk = timer->pclk; in mchp_pit64b_init_clkevt()
429 if (IS_ERR(timer.pclk)) in mchp_pit64b_dt_init_timer()
430 return PTR_ERR(timer.pclk); in mchp_pit64b_dt_init_timer()
[all …]
A Dtimer-rockchip.c37 struct clk *pclk; member
131 struct clk *pclk; in rk_timer_probe() local
146 pclk = of_clk_get_by_name(np, "pclk"); in rk_timer_probe()
147 if (IS_ERR(pclk)) { in rk_timer_probe()
148 ret = PTR_ERR(pclk); in rk_timer_probe()
153 ret = clk_prepare_enable(pclk); in rk_timer_probe()
158 timer->pclk = pclk; in rk_timer_probe()
191 clk_disable_unprepare(pclk); in rk_timer_probe()
201 clk_disable_unprepare(timer->pclk); in rk_timer_cleanup()
A Ddw_apb_timer_of.c21 struct clk *pclk; in timer_get_base_and_rate() local
44 pclk = of_clk_get_by_name(np, "pclk"); in timer_get_base_and_rate()
45 if (!IS_ERR(pclk)) in timer_get_base_and_rate()
46 if (clk_prepare_enable(pclk)) in timer_get_base_and_rate()
77 if (!IS_ERR(pclk)) { in timer_get_base_and_rate()
78 clk_disable_unprepare(pclk); in timer_get_base_and_rate()
79 clk_put(pclk); in timer_get_base_and_rate()
A Dnomadik-mtu.c185 struct clk *pclk, struct clk *clk) in nmdk_timer_init() argument
193 BUG_ON(clk_prepare_enable(pclk)); in nmdk_timer_init()
251 struct clk *pclk; in nmdk_timer_of_init() local
262 pclk = of_clk_get_by_name(node, "apb_pclk"); in nmdk_timer_of_init()
263 if (IS_ERR(pclk)) { in nmdk_timer_of_init()
265 return PTR_ERR(pclk); in nmdk_timer_of_init()
280 return nmdk_timer_init(base, irq, pclk, clk); in nmdk_timer_of_init()
/linux/drivers/cpufreq/
A Ds3c2410-cpufreq.c45 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local
65 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
66 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs()
68 if (pclk > cfg->max.pclk) { in s3c2410_cpufreq_calcdivs()
86 .pclk = 50000000,
139 s3c2410_cpufreq_info.max.pclk = 66500000; in s3c2410a_cpufreq_add()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
A Dhdmi_common.c52 int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) in hdmi_compute_acr() argument
75 if (pclk == 27027000 || pclk == 74250000) in hdmi_compute_acr()
78 if (pclk == 27027000) in hdmi_compute_acr()
85 if (pclk == 27027000) in hdmi_compute_acr()
146 *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10); in hdmi_compute_acr()
/linux/drivers/gpu/drm/omapdrm/dss/
A Dhdmi_common.c52 int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) in hdmi_compute_acr() argument
75 if (pclk == 27027000 || pclk == 74250000) in hdmi_compute_acr()
78 if (pclk == 27027000) in hdmi_compute_acr()
85 if (pclk == 27027000) in hdmi_compute_acr()
146 *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10); in hdmi_compute_acr()
/linux/drivers/pwm/
A Dpwm-rockchip.c35 struct clk *pclk; member
71 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state()
98 clk_disable(pc->pclk); in rockchip_pwm_get_state()
193 ret = clk_enable(pc->pclk); in rockchip_pwm_apply()
221 clk_disable(pc->pclk); in rockchip_pwm_apply()
329 pc->pclk = pc->clk; in rockchip_pwm_probe()
331 if (IS_ERR(pc->pclk)) { in rockchip_pwm_probe()
332 ret = PTR_ERR(pc->pclk); in rockchip_pwm_probe()
371 clk_disable(pc->pclk); in rockchip_pwm_probe()
376 clk_disable_unprepare(pc->pclk); in rockchip_pwm_probe()
[all …]
/linux/drivers/soc/canaan/
A Dk210-sysctl.c17 struct clk *pclk; in k210_sysctl_probe() local
23 pclk = devm_clk_get(dev, NULL); in k210_sysctl_probe()
24 if (IS_ERR(pclk)) in k210_sysctl_probe()
25 return dev_err_probe(dev, PTR_ERR(pclk), in k210_sysctl_probe()
28 ret = clk_prepare_enable(pclk); in k210_sysctl_probe()
/linux/arch/arm/mach-spear/
A Dspear3xx.c76 struct clk *gpt_clk, *pclk; in spear3xx_timer_init() local
88 pclk = clk_get(NULL, pclk_name); in spear3xx_timer_init()
89 if (IS_ERR(pclk)) { in spear3xx_timer_init()
95 clk_set_parent(gpt_clk, pclk); in spear3xx_timer_init()
97 clk_put(pclk); in spear3xx_timer_init()
A Dspear13xx.c104 struct clk *gpt_clk, *pclk; in spear13xx_timer_init() local
116 pclk = clk_get(NULL, pclk_name); in spear13xx_timer_init()
117 if (IS_ERR(pclk)) { in spear13xx_timer_init()
123 clk_set_parent(gpt_clk, pclk); in spear13xx_timer_init()
125 clk_put(pclk); in spear13xx_timer_init()
/linux/drivers/clk/qcom/
A Dapcs-sdx55.c82 a7cc->pclk = devm_clk_get(parent, "pll"); in qcom_apcs_sdx55_clk_probe()
83 if (IS_ERR(a7cc->pclk)) in qcom_apcs_sdx55_clk_probe()
84 return dev_err_probe(dev, PTR_ERR(a7cc->pclk), in qcom_apcs_sdx55_clk_probe()
88 ret = clk_notifier_register(a7cc->pclk, &a7cc->clk_nb); in qcom_apcs_sdx55_clk_probe()
119 clk_notifier_unregister(a7cc->pclk, &a7cc->clk_nb); in qcom_apcs_sdx55_clk_probe()
128 clk_notifier_unregister(a7cc->pclk, &a7cc->clk_nb); in qcom_apcs_sdx55_clk_remove()
A Dapcs-msm8916.c85 a53cc->pclk = devm_clk_get(parent, NULL); in qcom_apcs_msm8916_clk_probe()
86 if (IS_ERR(a53cc->pclk)) { in qcom_apcs_msm8916_clk_probe()
87 ret = PTR_ERR(a53cc->pclk); in qcom_apcs_msm8916_clk_probe()
94 ret = clk_notifier_register(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_probe()
118 clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_probe()
126 clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_remove()
/linux/drivers/clk/pxa/
A Dclk-pxa.c59 struct pxa_clk *pclk = to_pxa_clk(hw); in cken_recalc_rate() local
62 if (!pclk->is_in_low_power || pclk->is_in_low_power()) in cken_recalc_rate()
63 fix = &pclk->lp; in cken_recalc_rate()
65 fix = &pclk->hp; in cken_recalc_rate()
76 struct pxa_clk *pclk = to_pxa_clk(hw); in cken_get_parent() local
78 if (!pclk->is_in_low_power) in cken_get_parent()
80 return pclk->is_in_low_power() ? 0 : 1; in cken_get_parent()
/linux/sound/soc/stm/
A Dstm32_sai.c49 clk_disable_unprepare(sai->pclk); in stm32_sai_pclk_disable()
59 ret = clk_prepare_enable(sai->pclk); in stm32_sai_pclk_enable()
175 sai->pclk = devm_clk_get(&pdev->dev, "pclk"); in stm32_sai_probe()
176 if (IS_ERR(sai->pclk)) { in stm32_sai_probe()
177 if (PTR_ERR(sai->pclk) != -EPROBE_DEFER) in stm32_sai_probe()
179 PTR_ERR(sai->pclk)); in stm32_sai_probe()
180 return PTR_ERR(sai->pclk); in stm32_sai_probe()
218 ret = clk_prepare_enable(sai->pclk); in stm32_sai_probe()
239 clk_disable_unprepare(sai->pclk); in stm32_sai_probe()

Completed in 39 milliseconds

12345678910>>...18