/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-xgene.c | 446 struct xgene_clk *pclk = to_xgene_clk(hw); in xgene_clk_enable() local 450 if (pclk->lock) in xgene_clk_enable() 451 spin_lock_irqsave(pclk->lock, flags); in xgene_clk_enable() 453 if (pclk->param.csr_reg) { in xgene_clk_enable() 456 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable() 457 pclk->param.reg_clk_offset); in xgene_clk_enable() 458 data |= pclk->param.reg_clk_mask; in xgene_clk_enable() 459 xgene_clk_write(data, pclk->param.csr_reg + in xgene_clk_enable() 460 pclk->param.reg_clk_offset); in xgene_clk_enable() 463 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable() [all …]
|
D | clk-conf.c | 18 struct clk *clk, *pclk; in __set_clk_parents() local 40 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() 68 rc = clk_set_parent(clk, pclk); in __set_clk_parents() 71 __clk_get_name(clk), __clk_get_name(pclk), rc); in __set_clk_parents() 73 clk_put(pclk); in __set_clk_parents() 77 clk_put(pclk); in __set_clk_parents()
|
/kernel/linux/linux-5.10/drivers/clk/x86/ |
D | clk-pmc-atom.c | 165 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() 179 pclk->hw.init = &init; in plt_clk_register() 180 pclk->reg = pmc_data->base + PMC_CLK_CTL_OFFSET + id * PMC_CLK_CTL_SIZE; in plt_clk_register() 181 spin_lock_init(&pclk->lock); in plt_clk_register() 188 if (pmc_data->critical && plt_clk_is_enabled(&pclk->hw)) in plt_clk_register() 191 ret = devm_clk_hw_register(&pdev->dev, &pclk->hw); in plt_clk_register() 193 pclk = ERR_PTR(ret); in plt_clk_register() 197 pclk->lookup = clkdev_hw_create(&pclk->hw, init.name, NULL); in plt_clk_register() [all …]
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | versatile-ab.dts | 150 pclk: pclk@24M { label 225 clocks = <&pclk>; 233 clocks = <&xtal24mhz>, <&pclk>; 241 clocks = <&xtal24mhz>, <&pclk>; 249 clocks = <&xtal24mhz>, <&pclk>; 256 clocks = <&pclk>; 263 clocks = <&pclk>; 271 clocks = <&osc1>, <&pclk>; 310 clocks = <&pclk>; 318 clocks = <&pclk>; [all …]
|
D | ecx-common.dtsi | 50 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>;
|
D | arm-realview-eb.dtsi | 111 pclk: pclk@0 { label 313 clocks = <&pclk>; 326 clocks = <&mclk>, <&pclk>; 336 clocks = <&kmiclk>, <&pclk>; 343 clocks = <&kmiclk>, <&pclk>; 350 clocks = <&pclk>; 357 clocks = <&uartclk>, <&pclk>; 364 clocks = <&uartclk>, <&pclk>; 371 clocks = <&uartclk>, <&pclk>; 378 clocks = <&uartclk>, <&pclk>; [all …]
|
D | meson6.dtsi | 52 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";
|
D | arm-realview-pbx.dtsi | 126 pclk: pclk@0 { label 355 clocks = <&uartclk>, <&pclk>; 362 clocks = <&uartclk>, <&pclk>; 369 clocks = <&uartclk>, <&pclk>; 376 clocks = <&sspclk>, <&pclk>; 383 clocks = <&wdogclk>, <&pclk>; 391 clocks = <&wdogclk>, <&pclk>; 401 <&pclk>; 412 <&pclk>; 425 clocks = <&pclk>; [all …]
|
D | arm-realview-pb1176.dts | 113 pclk: pclk@0 { label 355 clocks = <&timclk>, <&timclk>, <&pclk>; 365 clocks = <&timclk>, <&timclk>, <&pclk>; 374 clocks = <&pclk>; 387 clocks = <&pclk>; 396 clocks = <&sspclk>, <&pclk>; 405 clocks = <&uartclk>, <&pclk>; 414 clocks = <&uartclk>, <&pclk>; 423 clocks = <&uartclk>, <&pclk>; 432 clocks = <&uartclk>, <&pclk>; [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
D | timer-microchip-pit64b.c | 59 struct clk *pclk; member 166 clk_disable_unprepare(timer->pclk); in mchp_pit64b_clkevt_suspend() 173 clk_prepare_enable(timer->pclk); in mchp_pit64b_clkevt_resume() 247 pclk_rate = clk_get_rate(timer->pclk); in mchp_pit64b_init_mode() 256 goto pclk; in mchp_pit64b_init_mode() 259 goto pclk; in mchp_pit64b_init_mode() 271 pclk: in mchp_pit64b_init_mode() 335 ce->timer.pclk = timer->pclk; in mchp_pit64b_init_clkevt() 372 timer.pclk = of_clk_get_by_name(node, "pclk"); in mchp_pit64b_dt_init_timer() 373 if (IS_ERR(timer.pclk)) in mchp_pit64b_dt_init_timer() [all …]
|
D | timer-rockchip.c | 37 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()
|
D | nomadik-mtu.c | 185 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()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
D | s3c2410-cpufreq.c | 45 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()
|
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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 88 ret = clk_notifier_register(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_probe() 112 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()
|
/kernel/linux/linux-5.10/drivers/pwm/ |
D | pwm-rockchip.c | 35 struct clk *pclk; member 71 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state() 93 clk_disable(pc->pclk); in rockchip_pwm_get_state() 188 ret = clk_enable(pc->pclk); in rockchip_pwm_apply() 211 clk_disable(pc->pclk); in rockchip_pwm_apply() 319 pc->pclk = devm_clk_get(&pdev->dev, "pclk"); in rockchip_pwm_probe() 321 pc->pclk = pc->clk; in rockchip_pwm_probe() 323 if (IS_ERR(pc->pclk)) { in rockchip_pwm_probe() 324 ret = PTR_ERR(pc->pclk); in rockchip_pwm_probe() 336 ret = clk_prepare_enable(pc->pclk); in rockchip_pwm_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/pxa/ |
D | clk-pxa.c | 59 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()
|
/kernel/linux/linux-5.10/sound/soc/stm/ |
D | stm32_sai.c | 49 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/ |
D | macb_pci.c | 62 plat_data.pclk = clk_register_fixed_rate(&pdev->dev, "pclk", NULL, 0, in macb_probe() 64 if (IS_ERR(plat_data.pclk)) { in macb_probe() 65 err = PTR_ERR(plat_data.pclk); in macb_probe() 103 clk_unregister(plat_data.pclk); in macb_probe() 114 clk_unregister(plat_data->pclk); in macb_remove()
|
/kernel/linux/linux-5.10/sound/soc/samsung/ |
D | s3c24xx_uda134x.c | 22 struct clk *pclk; member 65 priv->pclk = clk_get(cpu_dai->dev, "iis"); in s3c24xx_uda134x_startup() 66 if (IS_ERR(priv->pclk)) { in s3c24xx_uda134x_startup() 70 ret = PTR_ERR(priv->pclk); in s3c24xx_uda134x_startup() 81 rates[i*33 + j] = clk_get_rate(priv->pclk) / in s3c24xx_uda134x_startup() 112 clk_put(priv->pclk); in s3c24xx_uda134x_shutdown() 113 priv->pclk = NULL; in s3c24xx_uda134x_shutdown()
|