/Linux-v4.19/drivers/clk/ |
D | clk-xgene.c | 461 struct xgene_clk *pclk = to_xgene_clk(hw); in xgene_clk_enable() local 465 if (pclk->lock) in xgene_clk_enable() 466 spin_lock_irqsave(pclk->lock, flags); in xgene_clk_enable() 468 if (pclk->param.csr_reg) { in xgene_clk_enable() 471 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable() 472 pclk->param.reg_clk_offset); in xgene_clk_enable() 473 data |= pclk->param.reg_clk_mask; in xgene_clk_enable() 474 xgene_clk_write(data, pclk->param.csr_reg + in xgene_clk_enable() 475 pclk->param.reg_clk_offset); in xgene_clk_enable() 478 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable() [all …]
|
D | clk-conf.c | 21 struct clk *clk, *pclk; in __set_clk_parents() local 41 pclk = of_clk_get_from_provider(&clkspec); in __set_clk_parents() 42 if (IS_ERR(pclk)) { in __set_clk_parents() 43 if (PTR_ERR(pclk) != -EPROBE_DEFER) in __set_clk_parents() 46 return PTR_ERR(pclk); in __set_clk_parents() 66 rc = clk_set_parent(clk, pclk); in __set_clk_parents() 69 __clk_get_name(clk), __clk_get_name(pclk), rc); in __set_clk_parents() 71 clk_put(pclk); in __set_clk_parents() 75 clk_put(pclk); in __set_clk_parents()
|
/Linux-v4.19/drivers/clk/x86/ |
D | clk-pmc-atom.c | 172 struct clk_plt *pclk; in plt_clk_register() local 176 pclk = devm_kzalloc(&pdev->dev, sizeof(*pclk), GFP_KERNEL); in plt_clk_register() 177 if (!pclk) in plt_clk_register() 186 pclk->hw.init = &init; in plt_clk_register() 187 pclk->reg = base + PMC_CLK_CTL_OFFSET + id * PMC_CLK_CTL_SIZE; in plt_clk_register() 188 spin_lock_init(&pclk->lock); in plt_clk_register() 190 ret = devm_clk_hw_register(&pdev->dev, &pclk->hw); in plt_clk_register() 192 pclk = ERR_PTR(ret); in plt_clk_register() 196 pclk->lookup = clkdev_hw_create(&pclk->hw, init.name, NULL); in plt_clk_register() 197 if (!pclk->lookup) { in plt_clk_register() [all …]
|
/Linux-v4.19/drivers/clk/versatile/ |
D | clk-impd1.c | 24 struct clk *pclk; member 91 struct clk *pclk; in integrator_impd1_clk_init() local 102 pclk = clk_register_fixed_rate(NULL, imc->pclkname, NULL, 0, 0); in integrator_impd1_clk_init() 103 imc->pclk = pclk; in integrator_impd1_clk_init() 109 imc->clks[0] = clkdev_alloc(pclk, "apb_pclk", "lm%x:01000", id); in integrator_impd1_clk_init() 119 imc->clks[2] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00700", id); in integrator_impd1_clk_init() 127 imc->clks[4] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00100", id); in integrator_impd1_clk_init() 129 imc->clks[6] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00200", id); in integrator_impd1_clk_init() 136 imc->clks[8] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00300", id); in integrator_impd1_clk_init() 140 imc->clks[10] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00400", id); in integrator_impd1_clk_init() [all …]
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | versatile-ab.dts | 150 pclk: pclk@24M { label 223 clocks = <&pclk>; 231 clocks = <&xtal24mhz>, <&pclk>; 239 clocks = <&xtal24mhz>, <&pclk>; 247 clocks = <&xtal24mhz>, <&pclk>; 254 clocks = <&pclk>; 261 clocks = <&pclk>; 269 clocks = <&osc1>, <&pclk>; 308 clocks = <&pclk>; 316 clocks = <&pclk>; [all …]
|
D | arm-realview-eb.dtsi | 109 pclk: pclk@0 { label 305 clocks = <&pclk>; 318 clocks = <&mclk>, <&pclk>; 328 clocks = <&kmiclk>, <&pclk>; 335 clocks = <&kmiclk>, <&pclk>; 342 clocks = <&pclk>; 349 clocks = <&uartclk>, <&pclk>; 356 clocks = <&uartclk>, <&pclk>; 363 clocks = <&uartclk>, <&pclk>; 370 clocks = <&uartclk>, <&pclk>; [all …]
|
D | ecx-common.dtsi | 60 clocks = <&pclk>; 70 clocks = <&pclk>; 81 clocks = <&pclk>; 92 clocks = <&pclk>; 103 clocks = <&pclk>; 112 clocks = <&pclk>; 120 clocks = <&pclk>; 128 clocks = <&pclk>; 197 pclk: pclk { label 209 clocks = <&pclk>;
|
D | arm-realview-pbx.dtsi | 124 pclk: pclk@0 { label 347 clocks = <&uartclk>, <&pclk>; 354 clocks = <&uartclk>, <&pclk>; 361 clocks = <&uartclk>, <&pclk>; 368 clocks = <&sspclk>, <&pclk>; 375 clocks = <&wdogclk>, <&pclk>; 383 clocks = <&wdogclk>, <&pclk>; 393 <&pclk>; 404 <&pclk>; 417 clocks = <&pclk>; [all …]
|
D | arm-realview-pb1176.dts | 111 pclk: pclk@0 { label 347 clocks = <&timclk>, <&timclk>, <&pclk>; 357 clocks = <&timclk>, <&timclk>, <&pclk>; 366 clocks = <&pclk>; 379 clocks = <&pclk>; 388 clocks = <&sspclk>, <&pclk>; 397 clocks = <&uartclk>, <&pclk>; 406 clocks = <&uartclk>, <&pclk>; 415 clocks = <&uartclk>, <&pclk>; 424 clocks = <&uartclk>, <&pclk>; [all …]
|
/Linux-v4.19/drivers/cpufreq/ |
D | s3c2410-cpufreq.c | 48 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local 68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 69 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs() 71 if (pclk > cfg->max.pclk) { in s3c2410_cpufreq_calcdivs() 89 .pclk = 50000000, 142 s3c2410_cpufreq_info.max.pclk = 66500000; in s3c2410a_cpufreq_add()
|
D | spear-cpufreq.c | 37 int pclk; in spear1340_cpu_get_possible_parent() local 54 pclk = 0; /* src is sys_syn_clk */ in spear1340_cpu_get_possible_parent() 56 pclk = 3; /* src is pll3_clk */ in spear1340_cpu_get_possible_parent() 58 pclk = 1; /* src is pll1_clk */ in spear1340_cpu_get_possible_parent() 63 sys_pclk = clk_get(NULL, sys_clk_src[pclk]); in spear1340_cpu_get_possible_parent() 65 pr_err("Failed to get %s clock\n", sys_clk_src[pclk]); in spear1340_cpu_get_possible_parent()
|
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/ |
D | hdmi_common.c | 52 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-v4.19/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_common.c | 52 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-v4.19/drivers/iio/dac/ |
D | stm32-dac-core.c | 27 struct clk *pclk; member 103 priv->pclk = devm_clk_get(dev, "pclk"); in stm32_dac_probe() 104 if (IS_ERR(priv->pclk)) { in stm32_dac_probe() 105 ret = PTR_ERR(priv->pclk); in stm32_dac_probe() 110 ret = clk_prepare_enable(priv->pclk); in stm32_dac_probe() 125 priv->common.hfsel = (clk_get_rate(priv->pclk) > 80000000UL); in stm32_dac_probe() 145 clk_disable_unprepare(priv->pclk); in stm32_dac_probe() 158 clk_disable_unprepare(priv->pclk); in stm32_dac_remove()
|
/Linux-v4.19/arch/arm/mach-spear/ |
D | spear3xx.c | 86 struct clk *gpt_clk, *pclk; in spear3xx_timer_init() local 98 pclk = clk_get(NULL, pclk_name); in spear3xx_timer_init() 99 if (IS_ERR(pclk)) { in spear3xx_timer_init() 105 clk_set_parent(gpt_clk, pclk); in spear3xx_timer_init() 107 clk_put(pclk); in spear3xx_timer_init()
|
D | spear13xx.c | 103 struct clk *gpt_clk, *pclk; in spear13xx_timer_init() local 115 pclk = clk_get(NULL, pclk_name); in spear13xx_timer_init() 116 if (IS_ERR(pclk)) { in spear13xx_timer_init() 122 clk_set_parent(gpt_clk, pclk); in spear13xx_timer_init() 124 clk_put(pclk); in spear13xx_timer_init()
|
/Linux-v4.19/sound/soc/stm/ |
D | stm32_sai.c | 52 ret = clk_prepare_enable(sai->pclk); in stm32_sai_sync_conf_client() 60 clk_disable_unprepare(sai->pclk); in stm32_sai_sync_conf_client() 71 ret = clk_prepare_enable(sai->pclk); in stm32_sai_sync_conf_provider() 86 clk_disable_unprepare(sai->pclk); in stm32_sai_sync_conf_provider() 92 clk_disable_unprepare(sai->pclk); in stm32_sai_sync_conf_provider() 150 sai->pclk = devm_clk_get(&pdev->dev, "pclk"); in stm32_sai_probe() 151 if (IS_ERR(sai->pclk)) { in stm32_sai_probe() 153 return PTR_ERR(sai->pclk); in stm32_sai_probe()
|
/Linux-v4.19/drivers/clocksource/ |
D | rockchip_timer.c | 40 struct clk *pclk; member 134 struct clk *pclk; in rk_timer_probe() local 149 pclk = of_clk_get_by_name(np, "pclk"); in rk_timer_probe() 150 if (IS_ERR(pclk)) { in rk_timer_probe() 151 ret = PTR_ERR(pclk); in rk_timer_probe() 156 ret = clk_prepare_enable(pclk); in rk_timer_probe() 161 timer->pclk = pclk; in rk_timer_probe() 194 clk_disable_unprepare(pclk); in rk_timer_probe() 204 clk_disable_unprepare(timer->pclk); in rk_timer_cleanup()
|
D | nomadik-mtu.c | 197 struct clk *pclk, struct clk *clk) in nmdk_timer_init() argument 204 BUG_ON(clk_prepare_enable(pclk)); in nmdk_timer_init() 256 struct clk *pclk; in nmdk_timer_of_init() local 267 pclk = of_clk_get_by_name(node, "apb_pclk"); in nmdk_timer_of_init() 268 if (IS_ERR(pclk)) { in nmdk_timer_of_init() 270 return PTR_ERR(pclk); in nmdk_timer_of_init() 285 return nmdk_timer_init(base, irq, pclk, clk); in nmdk_timer_of_init()
|
/Linux-v4.19/drivers/clk/qcom/ |
D | apcs-msm8916.c | 79 a53cc->pclk = devm_clk_get(parent, NULL); in qcom_apcs_msm8916_clk_probe() 80 if (IS_ERR(a53cc->pclk)) { in qcom_apcs_msm8916_clk_probe() 81 ret = PTR_ERR(a53cc->pclk); in qcom_apcs_msm8916_clk_probe() 87 ret = clk_notifier_register(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_probe() 111 clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_probe() 120 clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_remove()
|
/Linux-v4.19/drivers/clk/pxa/ |
D | clk-pxa.c | 62 struct pxa_clk *pclk = to_pxa_clk(hw); in cken_recalc_rate() local 65 if (!pclk->is_in_low_power || pclk->is_in_low_power()) in cken_recalc_rate() 66 fix = &pclk->lp; in cken_recalc_rate() 68 fix = &pclk->hp; in cken_recalc_rate() 79 struct pxa_clk *pclk = to_pxa_clk(hw); in cken_get_parent() local 81 if (!pclk->is_in_low_power) in cken_get_parent() 83 return pclk->is_in_low_power() ? 0 : 1; in cken_get_parent()
|
/Linux-v4.19/drivers/pwm/ |
D | pwm-rockchip.c | 38 struct clk *pclk; member 74 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state() 101 clk_disable(pc->pclk); in rockchip_pwm_get_state() 196 ret = clk_enable(pc->pclk); in rockchip_pwm_apply() 225 clk_disable(pc->pclk); in rockchip_pwm_apply() 335 pc->pclk = devm_clk_get(&pdev->dev, "pclk"); in rockchip_pwm_probe() 337 pc->pclk = pc->clk; in rockchip_pwm_probe() 339 if (IS_ERR(pc->pclk)) { in rockchip_pwm_probe() 340 ret = PTR_ERR(pc->pclk); in rockchip_pwm_probe() 352 ret = clk_prepare(pc->pclk); in rockchip_pwm_probe() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | nv04.c | 75 nv04_clk_new(struct nvkm_device *device, int index, struct nvkm_clk **pclk) in nv04_clk_new() argument 77 int ret = nvkm_clk_new_(&nv04_clk, device, index, false, pclk); in nv04_clk_new() 79 (*pclk)->pll_calc = nv04_clk_pll_calc; in nv04_clk_new() 80 (*pclk)->pll_prog = nv04_clk_pll_prog; in nv04_clk_new()
|
/Linux-v4.19/drivers/net/ethernet/cadence/ |
D | macb_pci.c | 74 plat_data.pclk = clk_register_fixed_rate(&pdev->dev, "pclk", NULL, 0, in macb_probe() 76 if (IS_ERR(plat_data.pclk)) { in macb_probe() 77 err = PTR_ERR(plat_data.pclk); in macb_probe() 115 clk_unregister(plat_data.pclk); in macb_probe() 127 clk_unregister(plat_data->pclk); in macb_remove()
|
/Linux-v4.19/sound/soc/samsung/ |
D | s3c24xx_uda134x.c | 26 struct clk *pclk; member 69 priv->pclk = clk_get(cpu_dai->dev, "iis"); in s3c24xx_uda134x_startup() 70 if (IS_ERR(priv->pclk)) { in s3c24xx_uda134x_startup() 74 ret = PTR_ERR(priv->pclk); in s3c24xx_uda134x_startup() 85 rates[i*33 + j] = clk_get_rate(priv->pclk) / in s3c24xx_uda134x_startup() 116 clk_put(priv->pclk); in s3c24xx_uda134x_shutdown() 117 priv->pclk = NULL; in s3c24xx_uda134x_shutdown()
|