/drivers/clk/ |
D | clk-axm5516.c | 38 struct axxia_clk aclk; member 41 #define to_axxia_pllclk(_aclk) container_of(_aclk, struct axxia_pllclk, aclk) 50 struct axxia_clk *aclk = to_axxia_clk(hw); in axxia_pllclk_recalc() local 51 struct axxia_pllclk *pll = to_axxia_pllclk(aclk); in axxia_pllclk_recalc() 55 regmap_read(aclk->regmap, pll->reg, &control); in axxia_pllclk_recalc() 76 struct axxia_clk aclk; member 81 #define to_axxia_divclk(_aclk) container_of(_aclk, struct axxia_divclk, aclk) 89 struct axxia_clk *aclk = to_axxia_clk(hw); in axxia_divclk_recalc_rate() local 90 struct axxia_divclk *divclk = to_axxia_divclk(aclk); in axxia_divclk_recalc_rate() 93 regmap_read(aclk->regmap, divclk->reg, &ctrl); in axxia_divclk_recalc_rate() [all …]
|
D | clk-k210.c | 334 struct clk_hw aclk; member 338 #define to_k210_sysclk(_hw) container_of(_hw, struct k210_sysclk, aclk) 660 ksc->aclk.init = &init; in k210_register_aclk() 662 ret = of_clk_hw_register(np, &ksc->aclk); in k210_register_aclk() 859 .hw = &ksc->aclk, in k210_register_aclk_child()
|
/drivers/media/dvb-frontends/ |
D | z0194a.h | 15 u8 aclk = 0; in sharp_z0194a_set_symbol_rate() local 19 aclk = 0xb7; bclk = 0x47; } in sharp_z0194a_set_symbol_rate() 21 aclk = 0xb7; bclk = 0x4b; } in sharp_z0194a_set_symbol_rate() 23 aclk = 0xb7; bclk = 0x4f; } in sharp_z0194a_set_symbol_rate() 25 aclk = 0xb7; bclk = 0x53; } in sharp_z0194a_set_symbol_rate() 27 aclk = 0xb6; bclk = 0x53; } in sharp_z0194a_set_symbol_rate() 29 aclk = 0xb4; bclk = 0x51; } in sharp_z0194a_set_symbol_rate() 31 stv0299_writereg(fe, 0x13, aclk); in sharp_z0194a_set_symbol_rate()
|
D | bsbe1.h | 36 u8 aclk = 0; in alps_bsbe1_set_symbol_rate() local 39 if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; } in alps_bsbe1_set_symbol_rate() 40 else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; } in alps_bsbe1_set_symbol_rate() 41 else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; } in alps_bsbe1_set_symbol_rate() 42 else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; } in alps_bsbe1_set_symbol_rate() 43 else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; } in alps_bsbe1_set_symbol_rate() 44 else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; } in alps_bsbe1_set_symbol_rate() 46 stv0299_writereg(fe, 0x13, aclk); in alps_bsbe1_set_symbol_rate()
|
D | bsru6.h | 55 u8 aclk = 0; in alps_bsru6_set_symbol_rate() local 59 aclk = 0xb7; in alps_bsru6_set_symbol_rate() 62 aclk = 0xb7; in alps_bsru6_set_symbol_rate() 65 aclk = 0xb7; in alps_bsru6_set_symbol_rate() 68 aclk = 0xb7; in alps_bsru6_set_symbol_rate() 71 aclk = 0xb6; in alps_bsru6_set_symbol_rate() 74 aclk = 0xb4; in alps_bsru6_set_symbol_rate() 78 stv0299_writereg(fe, 0x13, aclk); in alps_bsru6_set_symbol_rate()
|
/drivers/memory/ |
D | pl353-smc.c | 24 struct clk *aclk; member 32 clk_disable(pl353_smc->aclk); in pl353_smc_suspend() 42 ret = clk_enable(pl353_smc->aclk); in pl353_smc_resume() 51 clk_disable(pl353_smc->aclk); in pl353_smc_resume() 83 pl353_smc->aclk = devm_clk_get(&adev->dev, "apb_pclk"); in pl353_smc_probe() 84 if (IS_ERR(pl353_smc->aclk)) { in pl353_smc_probe() 86 return PTR_ERR(pl353_smc->aclk); in pl353_smc_probe() 95 err = clk_prepare_enable(pl353_smc->aclk); in pl353_smc_probe() 132 clk_disable_unprepare(pl353_smc->aclk); in pl353_smc_probe() 142 clk_disable_unprepare(pl353_smc->aclk); in pl353_smc_remove()
|
/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_dev.c | 97 return sysfs_emit(buf, "%lu\n", clk_get_rate(mdev->aclk)); in aclk_hz_show() 210 mdev->aclk = devm_clk_get(dev, "aclk"); in komeda_dev_create() 211 if (IS_ERR(mdev->aclk)) { in komeda_dev_create() 213 err = PTR_ERR(mdev->aclk); in komeda_dev_create() 214 mdev->aclk = NULL; in komeda_dev_create() 218 clk_prepare_enable(mdev->aclk); in komeda_dev_create() 258 clk_disable_unprepare(mdev->aclk); in komeda_dev_create() 275 clk_disable_unprepare(mdev->aclk); in komeda_dev_create() 293 if (mdev->aclk) in komeda_dev_destroy() 294 clk_prepare_enable(mdev->aclk); in komeda_dev_destroy() [all …]
|
D | komeda_crtc.c | 49 u64 pxlclk, aclk; in komeda_crtc_update_clock_ratio() local 57 aclk = komeda_crtc_get_aclk(kcrtc_st); in komeda_crtc_update_clock_ratio() 59 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio() 141 err = clk_set_rate(mdev->aclk, komeda_crtc_get_aclk(kcrtc_st)); in komeda_crtc_prepare() 144 err = clk_prepare_enable(mdev->aclk); in komeda_crtc_prepare() 190 clk_disable_unprepare(mdev->aclk); in komeda_crtc_unprepare() 424 return clk_round_rate(mdev->aclk, min_aclk); in komeda_crtc_get_aclk() 449 if (clk_round_rate(mdev->aclk, min_aclk) < min_aclk) { in komeda_crtc_mode_valid()
|
/drivers/media/pci/mantis/ |
D | mantis_vp1033.c | 109 u8 aclk = 0; in lgtdqcs001f_set_symbol_rate() local 113 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate() 116 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate() 119 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate() 122 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate() 125 aclk = 0xb6; in lgtdqcs001f_set_symbol_rate() 128 aclk = 0xb4; in lgtdqcs001f_set_symbol_rate() 131 stv0299_writereg(fe, 0x13, aclk); in lgtdqcs001f_set_symbol_rate()
|
/drivers/iio/adc/ |
D | stm32-dfsdm-core.c | 92 struct clk *aclk; /* audio clock */ member 106 if (ret || !priv->aclk) in stm32_dfsdm_clk_prepare_enable() 109 ret = clk_prepare_enable(priv->aclk); in stm32_dfsdm_clk_prepare_enable() 120 clk_disable_unprepare(priv->aclk); in stm32_dfsdm_clk_disable_unprepare() 143 clk_src = priv->aclk ? 1 : 0; in stm32_dfsdm_start_dfsdm() 244 priv->aclk = devm_clk_get(&pdev->dev, "audio"); in stm32_dfsdm_parse_of() 245 if (IS_ERR(priv->aclk)) in stm32_dfsdm_parse_of() 246 priv->aclk = NULL; in stm32_dfsdm_parse_of() 248 if (priv->aclk) in stm32_dfsdm_parse_of() 249 clk_freq = clk_get_rate(priv->aclk); in stm32_dfsdm_parse_of()
|
D | stm32-adc-core.c | 104 struct clk *aclk; member 141 if (!priv->aclk) { in stm32f4_adc_clk_sel() 146 rate = clk_get_rate(priv->aclk); in stm32f4_adc_clk_sel() 223 if (priv->aclk) { in stm32h7_adc_clk_sel() 228 rate = clk_get_rate(priv->aclk); in stm32h7_adc_clk_sel() 235 duty = clk_get_scaled_duty_cycle(priv->aclk, 100); in stm32h7_adc_clk_sel() 551 ret = clk_prepare_enable(priv->aclk); in stm32_adc_core_hw_start() 580 clk_disable_unprepare(priv->aclk); in stm32_adc_core_hw_stop() 736 priv->aclk = devm_clk_get_optional(&pdev->dev, "adc"); in stm32_adc_probe() 737 if (IS_ERR(priv->aclk)) in stm32_adc_probe() [all …]
|
/drivers/bus/ |
D | bt1-axi.c | 51 struct clk *aclk; member 153 clk_disable_unprepare(axi->aclk); in bt1_axi_disable_clk() 160 axi->aclk = devm_clk_get(axi->dev, "aclk"); in bt1_axi_request_clk() 161 if (IS_ERR(axi->aclk)) in bt1_axi_request_clk() 162 return dev_err_probe(axi->dev, PTR_ERR(axi->aclk), in bt1_axi_request_clk() 165 ret = clk_prepare_enable(axi->aclk); in bt1_axi_request_clk()
|
/drivers/crypto/rockchip/ |
D | rk3288_crypto.c | 31 err = clk_prepare_enable(dev->aclk); in rk_crypto_enable_clk() 53 clk_disable_unprepare(dev->aclk); in rk_crypto_enable_clk() 64 clk_disable_unprepare(dev->aclk); in rk_crypto_disable_clk() 184 crypto_info->aclk = devm_clk_get(&pdev->dev, "aclk"); in rk_crypto_probe() 185 if (IS_ERR(crypto_info->aclk)) { in rk_crypto_probe() 186 err = PTR_ERR(crypto_info->aclk); in rk_crypto_probe()
|
/drivers/media/common/b2c2/ |
D | flexcop-fe-tuner.c | 201 u8 aclk = 0; in samsung_tbmu24112_set_symbol_rate() local 205 aclk = 0xb7; bclk = 0x47; in samsung_tbmu24112_set_symbol_rate() 207 aclk = 0xb7; bclk = 0x4b; in samsung_tbmu24112_set_symbol_rate() 209 aclk = 0xb7; bclk = 0x4f; in samsung_tbmu24112_set_symbol_rate() 211 aclk = 0xb7; bclk = 0x53; in samsung_tbmu24112_set_symbol_rate() 213 aclk = 0xb6; bclk = 0x53; in samsung_tbmu24112_set_symbol_rate() 215 aclk = 0xb4; bclk = 0x51; in samsung_tbmu24112_set_symbol_rate() 218 stv0299_writereg(fe, 0x13, aclk); in samsung_tbmu24112_set_symbol_rate()
|
/drivers/clk/xilinx/ |
D | xlnx_vcu.c | 63 struct clk *aclk; member 656 xvcu->aclk = devm_clk_get(&pdev->dev, "aclk"); in xvcu_probe() 657 if (IS_ERR(xvcu->aclk)) { in xvcu_probe() 659 return PTR_ERR(xvcu->aclk); in xvcu_probe() 668 ret = clk_prepare_enable(xvcu->aclk); in xvcu_probe() 693 clk_disable_unprepare(xvcu->aclk); in xvcu_probe() 718 clk_disable_unprepare(xvcu->aclk); in xvcu_remove()
|
/drivers/phy/hisilicon/ |
D | phy-hi3670-pcie.c | 162 struct clk *aclk; member 485 ret = clk_set_rate(phy->aclk, AXI_CLK_FREQ); in hi3670_pcie_allclk_ctrl() 613 ret = clk_prepare_enable(phy->aclk); in kirin_pcie_clk_ctrl() 626 clk_disable_unprepare(phy->aclk); in kirin_pcie_clk_ctrl() 780 phy->aclk = devm_clk_get(dev, "aclk"); in hi3670_pcie_phy_get_resources() 781 if (IS_ERR(phy->aclk)) in hi3670_pcie_phy_get_resources() 782 return PTR_ERR(phy->aclk); in hi3670_pcie_phy_get_resources()
|
/drivers/gpu/drm/exynos/ |
D | exynos7_drm_decon.c | 49 struct clk *aclk; member 710 ctx->aclk = devm_clk_get(dev, "aclk_decon0"); in decon_probe() 711 if (IS_ERR(ctx->aclk)) { in decon_probe() 713 ret = PTR_ERR(ctx->aclk); in decon_probe() 789 clk_disable_unprepare(ctx->aclk); in exynos7_decon_suspend() 807 ret = clk_prepare_enable(ctx->aclk); in exynos7_decon_resume() 833 clk_disable_unprepare(ctx->aclk); in exynos7_decon_resume()
|
/drivers/ata/ |
D | ahci_dwc.c | 230 struct clk *aclk; in ahci_dwc_init_timer() local 243 aclk = ahci_platform_find_clk(hpriv, "aclk"); in ahci_dwc_init_timer() 244 if (!aclk) in ahci_dwc_init_timer() 250 rate = clk_get_rate(aclk) / 1000UL; in ahci_dwc_init_timer()
|
/drivers/pci/controller/dwc/ |
D | pcie-kirin.c | 135 struct clk *aclk; member 172 phy->aclk = devm_clk_get(dev, "pcie_aclk"); in hi3660_pcie_phy_get_clk() 173 if (IS_ERR(phy->aclk)) in hi3660_pcie_phy_get_clk() 174 return PTR_ERR(phy->aclk); in hi3660_pcie_phy_get_clk() 263 ret = clk_prepare_enable(phy->aclk); in hi3660_pcie_phy_clk_ctrl() 276 clk_disable_unprepare(phy->aclk); in hi3660_pcie_phy_clk_ctrl()
|
/drivers/iommu/ |
D | exynos-iommu.c | 276 struct clk *aclk; /* SYSMMU's aclk clock */ member 397 BUG_ON(clk_prepare_enable(data->aclk)); in __sysmmu_enable_clocks() 402 clk_disable_unprepare(data->aclk); in __sysmmu_disable_clocks() 678 data->aclk = devm_clk_get(dev, "aclk"); in exynos_sysmmu_probe() 679 if (PTR_ERR(data->aclk) == -ENOENT) in exynos_sysmmu_probe() 680 data->aclk = NULL; in exynos_sysmmu_probe() 681 else if (IS_ERR(data->aclk)) in exynos_sysmmu_probe() 682 return PTR_ERR(data->aclk); in exynos_sysmmu_probe() 690 if (!data->clk && (!data->aclk || !data->pclk)) { in exynos_sysmmu_probe()
|
/drivers/media/platform/rockchip/rga/ |
D | rga.c | 706 ret = clk_prepare_enable(rga->aclk); in rga_enable_clocks() 723 clk_disable_unprepare(rga->aclk); in rga_enable_clocks() 732 clk_disable_unprepare(rga->aclk); in rga_disable_clocks() 775 rga->aclk = devm_clk_get(rga->dev, "aclk"); in rga_parse_dt() 776 if (IS_ERR(rga->aclk)) { in rga_parse_dt() 778 return PTR_ERR(rga->aclk); in rga_parse_dt()
|
/drivers/media/usb/ttusb-budget/ |
D | dvb-ttusb-budget.c | 1200 u8 aclk = 0; in alps_stv0299_set_symbol_rate() local 1204 aclk = 0xb7; in alps_stv0299_set_symbol_rate() 1207 aclk = 0xb7; in alps_stv0299_set_symbol_rate() 1210 aclk = 0xb7; in alps_stv0299_set_symbol_rate() 1213 aclk = 0xb7; in alps_stv0299_set_symbol_rate() 1216 aclk = 0xb6; in alps_stv0299_set_symbol_rate() 1219 aclk = 0xb4; in alps_stv0299_set_symbol_rate() 1223 stv0299_writereg(fe, 0x13, aclk); in alps_stv0299_set_symbol_rate()
|
/drivers/media/pci/cx88/ |
D | cx88-dvb.c | 944 u8 aclk = 0; in samsung_smt_7020_stv0299_set_symbol_rate() local 948 aclk = 0xb7; in samsung_smt_7020_stv0299_set_symbol_rate() 951 aclk = 0xb7; in samsung_smt_7020_stv0299_set_symbol_rate() 954 aclk = 0xb7; in samsung_smt_7020_stv0299_set_symbol_rate() 957 aclk = 0xb7; in samsung_smt_7020_stv0299_set_symbol_rate() 960 aclk = 0xb6; in samsung_smt_7020_stv0299_set_symbol_rate() 963 aclk = 0xb4; in samsung_smt_7020_stv0299_set_symbol_rate() 967 stv0299_writereg(fe, 0x13, aclk); in samsung_smt_7020_stv0299_set_symbol_rate()
|
/drivers/gpu/drm/arm/ |
D | malidp_drv.c | 683 clk_disable_unprepare(hwdev->aclk); in malidp_runtime_pm_suspend() 696 clk_prepare_enable(hwdev->aclk); in malidp_runtime_pm_resume() 739 hwdev->aclk = devm_clk_get(dev, "aclk"); in malidp_bind() 740 if (IS_ERR(hwdev->aclk)) in malidp_bind() 741 return PTR_ERR(hwdev->aclk); in malidp_bind()
|
/drivers/staging/media/deprecated/saa7146/ttpci/ |
D | budget-av.c | 460 u8 aclk = 0; in philips_su1278_ty_ci_set_symbol_rate() local 464 aclk = 0xb5; in philips_su1278_ty_ci_set_symbol_rate() 478 stv0299_writereg(fe, 0x13, aclk); in philips_su1278_ty_ci_set_symbol_rate() 833 u8 aclk = 0; in philips_sd1878_ci_set_symbol_rate() local 837 aclk = 0xb5; in philips_sd1878_ci_set_symbol_rate() 854 stv0299_writereg(fe, 0x13, aclk); in philips_sd1878_ci_set_symbol_rate()
|