Home
last modified time | relevance | path

Searched refs:ahb_clk (Results 1 - 25 of 35) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/hwspinlock/
H A Dsun6i_hwspinlock.c32 struct clk *ahb_clk; member
87 clk_disable_unprepare(priv->ahb_clk); in sun6i_hwspinlock_disable()
107 priv->ahb_clk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_hwspinlock_probe()
108 if (IS_ERR(priv->ahb_clk)) { in sun6i_hwspinlock_probe()
109 err = PTR_ERR(priv->ahb_clk); in sun6i_hwspinlock_probe()
125 err = clk_prepare_enable(priv->ahb_clk); in sun6i_hwspinlock_probe()
186 clk_disable_unprepare(priv->ahb_clk); in sun6i_hwspinlock_probe()
/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-rb4xx.c137 struct clk *ahb_clk; in rb4xx_spi_probe() local
150 ahb_clk = devm_clk_get(&pdev->dev, "ahb"); in rb4xx_spi_probe()
151 if (IS_ERR(ahb_clk)) in rb4xx_spi_probe()
152 return PTR_ERR(ahb_clk); in rb4xx_spi_probe()
165 rbspi->clk = ahb_clk; in rb4xx_spi_probe()
174 err = clk_prepare_enable(ahb_clk); in rb4xx_spi_probe()
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-rb4xx.c137 struct clk *ahb_clk; in rb4xx_spi_probe() local
150 ahb_clk = devm_clk_get(&pdev->dev, "ahb"); in rb4xx_spi_probe()
151 if (IS_ERR(ahb_clk)) in rb4xx_spi_probe()
152 return PTR_ERR(ahb_clk); in rb4xx_spi_probe()
165 rbspi->clk = ahb_clk; in rb4xx_spi_probe()
174 err = clk_prepare_enable(ahb_clk); in rb4xx_spi_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_mdss.c21 struct clk *ahb_clk; member
139 clk_prepare_enable(mdp5_mdss->ahb_clk); in mdp5_mdss_enable()
157 clk_disable_unprepare(mdp5_mdss->ahb_clk); in mdp5_mdss_disable()
167 mdp5_mdss->ahb_clk = msm_clk_get(pdev, "iface"); in msm_mdss_get_clocks()
168 if (IS_ERR(mdp5_mdss->ahb_clk)) in msm_mdss_get_clocks()
169 mdp5_mdss->ahb_clk = NULL; in msm_mdss_get_clocks()
H A Dmdp5_kms.c308 clk_disable_unprepare(mdp5_kms->ahb_clk); in mdp5_disable()
323 clk_prepare_enable(mdp5_kms->ahb_clk); in mdp5_enable()
861 ret = get_clk(pdev, &mdp5_kms->ahb_clk, "iface", true); in mdp5_init()
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_hw.c150 clk_disable_unprepare(dev->ahb_clk); in cedrus_hw_suspend()
169 ret = clk_prepare_enable(dev->ahb_clk); in cedrus_hw_resume()
195 clk_disable_unprepare(dev->ahb_clk); in cedrus_hw_resume()
257 dev->ahb_clk = devm_clk_get(dev->dev, "ahb"); in cedrus_hw_probe()
258 if (IS_ERR(dev->ahb_clk)) { in cedrus_hw_probe()
261 ret = PTR_ERR(dev->ahb_clk); in cedrus_hw_probe()
H A Dcedrus.h173 struct clk *ahb_clk; member
/kernel/linux/linux-6.6/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_hw.c177 clk_disable_unprepare(dev->ahb_clk); in cedrus_hw_suspend()
196 ret = clk_prepare_enable(dev->ahb_clk); in cedrus_hw_resume()
222 clk_disable_unprepare(dev->ahb_clk); in cedrus_hw_resume()
266 dev->ahb_clk = devm_clk_get(dev->dev, "ahb"); in cedrus_hw_probe()
267 if (IS_ERR(dev->ahb_clk)) { in cedrus_hw_probe()
270 ret = PTR_ERR(dev->ahb_clk); in cedrus_hw_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/
H A Dedp_ctrl.c66 struct clk *ahb_clk; member
163 ctrl->ahb_clk = msm_clk_get(pdev, "iface"); in edp_clk_init()
164 if (IS_ERR(ctrl->ahb_clk)) { in edp_clk_init()
165 ret = PTR_ERR(ctrl->ahb_clk); in edp_clk_init()
167 ctrl->ahb_clk = NULL; in edp_clk_init()
196 /* ahb_clk should be enabled first */ in edp_clk_enable()
198 ret = clk_prepare_enable(ctrl->ahb_clk); in edp_clk_enable()
272 clk_disable_unprepare(ctrl->ahb_clk); in edp_clk_enable()
288 clk_disable_unprepare(ctrl->ahb_clk); in edp_clk_disable()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Drockchip-nand-controller.c171 struct clk *ahb_clk; member
431 rate = clk_get_rate(nfc->ahb_clk); in rk_nfc_setup_interface()
919 ret = clk_prepare_enable(nfc->ahb_clk); in rk_nfc_enable_clks()
932 clk_disable_unprepare(nfc->ahb_clk); in rk_nfc_disable_clks()
1395 nfc->ahb_clk = devm_clk_get(dev, "ahb"); in rk_nfc_probe()
1396 if (IS_ERR(nfc->ahb_clk)) { in rk_nfc_probe()
1398 ret = PTR_ERR(nfc->ahb_clk); in rk_nfc_probe()
/kernel/linux/linux-5.10/drivers/ata/
H A Dahci_imx.c96 struct clk *ahb_clk; member
1079 imxpriv->ahb_clk = devm_clk_get(dev, "ahb"); in imx_ahci_probe()
1080 if (IS_ERR(imxpriv->ahb_clk)) { in imx_ahci_probe()
1082 return PTR_ERR(imxpriv->ahb_clk); in imx_ahci_probe()
1161 reg_val = clk_get_rate(imxpriv->ahb_clk) / 1000; in imx_ahci_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy.h84 struct clk *ahb_clk; member
H A Ddsi_phy.c565 ret = clk_prepare_enable(phy->ahb_clk); in dsi_phy_enable_resource()
576 clk_disable_unprepare(phy->ahb_clk); in dsi_phy_disable_resource()
700 phy->ahb_clk = msm_clk_get(pdev, "iface"); in dsi_phy_driver_probe()
701 if (IS_ERR(phy->ahb_clk)) { in dsi_phy_driver_probe()
703 ret = PTR_ERR(phy->ahb_clk); in dsi_phy_driver_probe()
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
H A Dccu-suniv-f1c100s.c117 static struct ccu_div ahb_clk = { variable
320 &ahb_clk.common,
411 [CLK_AHB] = &ahb_clk.common.hw,
H A Dccu-sun5i.c203 static struct ccu_div ahb_clk = { variable
522 &ahb_clk.common,
650 [CLK_AHB] = &ahb_clk.common.hw,
789 [CLK_AHB] = &ahb_clk.common.hw,
895 [CLK_AHB] = &ahb_clk.common.hw,
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/
H A Dccu-suniv-f1c100s.c118 static struct ccu_div ahb_clk = { variable
328 &ahb_clk.common,
420 [CLK_AHB] = &ahb_clk.common.hw,
H A Dccu-sun5i.c203 static struct ccu_div ahb_clk = { variable
522 &ahb_clk.common,
650 [CLK_AHB] = &ahb_clk.common.hw,
789 [CLK_AHB] = &ahb_clk.common.hw,
895 [CLK_AHB] = &ahb_clk.common.hw,
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy.h107 struct clk *ahb_clk; member
H A Ddsi_phy.c523 ret = clk_prepare_enable(phy->ahb_clk); in dsi_phy_enable_resource()
534 clk_disable_unprepare(phy->ahb_clk); in dsi_phy_disable_resource()
689 phy->ahb_clk = msm_clk_get(pdev, "iface"); in dsi_phy_driver_probe()
690 if (IS_ERR(phy->ahb_clk)) in dsi_phy_driver_probe()
691 return dev_err_probe(dev, PTR_ERR(phy->ahb_clk), in dsi_phy_driver_probe()
/kernel/linux/linux-5.10/drivers/clk/actions/
H A Dowl-s500.c188 static OWL_GATE(spi0_clk, "spi0_clk", "ahb_clk", CMU_DEVCLKEN1, 10, 0, CLK_IGNORE_UNUSED);
189 static OWL_GATE(spi1_clk, "spi1_clk", "ahb_clk", CMU_DEVCLKEN1, 11, 0, CLK_IGNORE_UNUSED);
190 static OWL_GATE(spi2_clk, "spi2_clk", "ahb_clk", CMU_DEVCLKEN1, 12, 0, CLK_IGNORE_UNUSED);
191 static OWL_GATE(spi3_clk, "spi3_clk", "ahb_clk", CMU_DEVCLKEN1, 13, 0, CLK_IGNORE_UNUSED);
197 static OWL_DIVIDER(apb_clk, "apb_clk", "ahb_clk", CMU_BUSCLK1, 14, 2, NULL, 0, 0);
211 static OWL_COMP_FIXED_FACTOR(ahb_clk, "ahb_clk", "h_clk",
431 &ahb_clk.common,
499 [CLK_AHB] = &ahb_clk.common.hw,
H A Dowl-s900.c162 static OWL_DIVIDER(ahb_clk, "ahb_clk", "noc_clk_div", CMU_BUSCLK, 4, 1, NULL, 0, 0);
163 static OWL_DIVIDER(apb_clk, "apb_clk", "ahb_clk", CMU_BUSCLK, 8, 2, apb_div_table, 0, 0);
234 static OWL_GATE(spi0_clk, "spi0_clk", "ahb_clk", CMU_DEVCLKEN1, 10, 0, CLK_IGNORE_UNUSED);
235 static OWL_GATE(spi1_clk, "spi1_clk", "ahb_clk", CMU_DEVCLKEN1, 11, 0, CLK_IGNORE_UNUSED);
236 static OWL_GATE(spi2_clk, "spi2_clk", "ahb_clk", CMU_DEVCLKEN1, 12, 0, CLK_IGNORE_UNUSED);
237 static OWL_GATE(spi3_clk, "spi3_clk", "ahb_clk", CMU_DEVCLKEN1, 13, 0, CLK_IGNORE_UNUSED);
515 &ahb_clk.common,
608 [CLK_AHB] = &ahb_clk.common.hw,
/kernel/linux/linux-6.6/drivers/clk/actions/
H A Dowl-s500.c189 static OWL_GATE(spi0_clk, "spi0_clk", "ahb_clk", CMU_DEVCLKEN1, 10, 0, CLK_IGNORE_UNUSED);
190 static OWL_GATE(spi1_clk, "spi1_clk", "ahb_clk", CMU_DEVCLKEN1, 11, 0, CLK_IGNORE_UNUSED);
191 static OWL_GATE(spi2_clk, "spi2_clk", "ahb_clk", CMU_DEVCLKEN1, 12, 0, CLK_IGNORE_UNUSED);
192 static OWL_GATE(spi3_clk, "spi3_clk", "ahb_clk", CMU_DEVCLKEN1, 13, 0, CLK_IGNORE_UNUSED);
218 static OWL_COMP_FIXED_FACTOR(ahb_clk, "ahb_clk", "h_clk",
442 &ahb_clk.common,
512 [CLK_AHB] = &ahb_clk.common.hw,
H A Dowl-s900.c162 static OWL_DIVIDER(ahb_clk, "ahb_clk", "noc_clk_div", CMU_BUSCLK, 4, 1, NULL, 0, 0);
163 static OWL_DIVIDER(apb_clk, "apb_clk", "ahb_clk", CMU_BUSCLK, 8, 2, apb_div_table, 0, 0);
234 static OWL_GATE(spi0_clk, "spi0_clk", "ahb_clk", CMU_DEVCLKEN1, 10, 0, CLK_IGNORE_UNUSED);
235 static OWL_GATE(spi1_clk, "spi1_clk", "ahb_clk", CMU_DEVCLKEN1, 11, 0, CLK_IGNORE_UNUSED);
236 static OWL_GATE(spi2_clk, "spi2_clk", "ahb_clk", CMU_DEVCLKEN1, 12, 0, CLK_IGNORE_UNUSED);
237 static OWL_GATE(spi3_clk, "spi3_clk", "ahb_clk", CMU_DEVCLKEN1, 13, 0, CLK_IGNORE_UNUSED);
515 &ahb_clk.common,
608 [CLK_AHB] = &ahb_clk.common.hw,
/kernel/linux/linux-6.6/drivers/ata/
H A Dahci_imx.c96 struct clk *ahb_clk; member
1084 imxpriv->ahb_clk = devm_clk_get(dev, "ahb"); in imx_ahci_probe()
1085 if (IS_ERR(imxpriv->ahb_clk)) { in imx_ahci_probe()
1087 return PTR_ERR(imxpriv->ahb_clk); in imx_ahci_probe()
1166 reg_val = clk_get_rate(imxpriv->ahb_clk) / 1000; in imx_ahci_probe()
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
H A Dpcie-qcom.c152 struct clk *ahb_clk; member
989 res->ahb_clk = devm_clk_get(dev, "ahb"); in qcom_pcie_get_resources_2_3_3()
990 if (IS_ERR(res->ahb_clk)) in qcom_pcie_get_resources_2_3_3()
991 return PTR_ERR(res->ahb_clk); in qcom_pcie_get_resources_2_3_3()
1013 clk_disable_unprepare(res->ahb_clk); in qcom_pcie_deinit_2_3_3()
1069 ret = clk_prepare_enable(res->ahb_clk); in qcom_pcie_init_2_3_3()
1110 clk_disable_unprepare(res->ahb_clk); in qcom_pcie_init_2_3_3()

Completed in 23 milliseconds

12