/Linux-v5.4/drivers/clk/mxs/ |
D | clk-ref.c | 23 struct clk_ref { struct 29 #define to_clk_ref(_hw) container_of(_hw, struct clk_ref, hw) argument 33 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable() 42 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable() 50 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate() 86 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() 124 struct clk_ref *ref; in mxs_clk_ref()
|
/Linux-v5.4/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_pm.c | 19 static atomic_t clk_ref; variable 52 atomic_set(&clk_ref, 0); in s5p_mfc_init_pm() 63 atomic_inc(&clk_ref); in s5p_mfc_clock_on() 64 mfc_debug(3, "+ %d\n", atomic_read(&clk_ref)); in s5p_mfc_clock_on() 71 atomic_dec(&clk_ref); in s5p_mfc_clock_off() 72 mfc_debug(3, "- %d\n", atomic_read(&clk_ref)); in s5p_mfc_clock_off()
|
/Linux-v5.4/sound/soc/adi/ |
D | axi-spdif.c | 40 struct clk *clk_ref; member 97 clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref), in axi_spdif_hw_params() 129 ret = clk_prepare_enable(spdif->clk_ref); in axi_spdif_startup() 147 clk_disable_unprepare(spdif->clk_ref); in axi_spdif_shutdown() 206 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_spdif_probe() 207 if (IS_ERR(spdif->clk_ref)) in axi_spdif_probe() 208 return PTR_ERR(spdif->clk_ref); in axi_spdif_probe() 218 spdif->ratnum.num = clk_get_rate(spdif->clk_ref) / 128; in axi_spdif_probe()
|
D | axi-i2s.c | 43 struct clk *clk_ref; member 98 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params() 126 return clk_prepare_enable(i2s->clk_ref); in axi_i2s_startup() 134 clk_disable_unprepare(i2s->clk_ref); in axi_i2s_shutdown() 215 i2s->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_i2s_probe() 216 if (IS_ERR(i2s->clk_ref)) in axi_i2s_probe() 217 return PTR_ERR(i2s->clk_ref); in axi_i2s_probe() 247 i2s->ratnum.num = clk_get_rate(i2s->clk_ref) / 2 / AXI_I2S_BITS_PER_FRAME; in axi_i2s_probe()
|
/Linux-v5.4/sound/soc/img/ |
D | img-spdif-out.c | 43 struct clk *clk_ref; member 56 clk_disable_unprepare(spdif->clk_ref); in img_spdif_out_runtime_suspend() 73 ret = clk_prepare_enable(spdif->clk_ref); in img_spdif_out_runtime_resume() 254 pre_div_a = clk_round_rate(spdif->clk_ref, rate * 256); in img_spdif_out_hw_params() 257 pre_div_b = clk_round_rate(spdif->clk_ref, rate * 384); in img_spdif_out_hw_params() 266 clk_set_rate(spdif->clk_ref, pre_div_b); in img_spdif_out_hw_params() 268 clk_set_rate(spdif->clk_ref, pre_div_a); in img_spdif_out_hw_params() 275 clk_rate = clk_get_rate(spdif->clk_ref); in img_spdif_out_hw_params() 359 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_spdif_out_probe() 360 if (IS_ERR(spdif->clk_ref)) { in img_spdif_out_probe() [all …]
|
D | img-parallel-out.c | 38 struct clk *clk_ref; member 48 clk_disable_unprepare(prl->clk_ref); in img_prl_out_suspend() 58 ret = clk_prepare_enable(prl->clk_ref); in img_prl_out_resume() 140 clk_set_rate(prl->clk_ref, rate * 256); in img_prl_out_hw_params() 244 prl->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_prl_out_probe() 245 if (IS_ERR(prl->clk_ref)) { in img_prl_out_probe() 246 if (PTR_ERR(prl->clk_ref) != -EPROBE_DEFER) in img_prl_out_probe() 248 return PTR_ERR(prl->clk_ref); in img_prl_out_probe()
|
D | img-i2s-out.c | 54 struct clk *clk_ref; member 71 clk_disable_unprepare(i2s->clk_ref); in img_i2s_out_runtime_suspend() 88 ret = clk_prepare_enable(i2s->clk_ref); in img_i2s_out_runtime_resume() 236 pre_div_a = clk_round_rate(i2s->clk_ref, rate * 256); in img_i2s_out_hw_params() 239 pre_div_b = clk_round_rate(i2s->clk_ref, rate * 384); in img_i2s_out_hw_params() 248 clk_set_rate(i2s->clk_ref, pre_div_b); in img_i2s_out_hw_params() 250 clk_set_rate(i2s->clk_ref, pre_div_a); in img_i2s_out_hw_params() 257 clk_rate = clk_get_rate(i2s->clk_ref); in img_i2s_out_hw_params() 472 i2s->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_i2s_out_probe() 473 if (IS_ERR(i2s->clk_ref)) { in img_i2s_out_probe() [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | tegra.c | 44 if (tdev->clk_ref) { in nvkm_device_tegra_power_up() 45 ret = clk_prepare_enable(tdev->clk_ref); in nvkm_device_tegra_power_up() 73 if (tdev->clk_ref) in nvkm_device_tegra_power_up() 74 clk_disable_unprepare(tdev->clk_ref); in nvkm_device_tegra_power_up() 90 if (tdev->clk_ref) in nvkm_device_tegra_power_down() 91 clk_disable_unprepare(tdev->clk_ref); in nvkm_device_tegra_power_down() 311 tdev->clk_ref = devm_clk_get(&pdev->dev, "ref"); in nvkm_device_tegra_new() 312 if (IS_ERR(tdev->clk_ref)) { in nvkm_device_tegra_new() 313 ret = PTR_ERR(tdev->clk_ref); in nvkm_device_tegra_new()
|
/Linux-v5.4/drivers/rtc/ |
D | rtc-mxc.c | 67 struct clk *clk_ref; member 367 pdata->clk_ref = devm_clk_get(&pdev->dev, "ref"); in mxc_rtc_probe() 368 if (IS_ERR(pdata->clk_ref)) { in mxc_rtc_probe() 370 ret = PTR_ERR(pdata->clk_ref); in mxc_rtc_probe() 374 ret = clk_prepare_enable(pdata->clk_ref); in mxc_rtc_probe() 378 rate = clk_get_rate(pdata->clk_ref); in mxc_rtc_probe() 426 clk_disable_unprepare(pdata->clk_ref); in mxc_rtc_probe() 437 clk_disable_unprepare(pdata->clk_ref); in mxc_rtc_remove()
|
/Linux-v5.4/drivers/phy/amlogic/ |
D | phy-meson-g12a-usb3-pcie.c | 56 struct clk *clk_ref; member 361 priv->clk_ref = devm_clk_get(dev, "ref_clk"); in phy_g12a_usb3_pcie_probe() 362 if (IS_ERR(priv->clk_ref)) in phy_g12a_usb3_pcie_probe() 363 return PTR_ERR(priv->clk_ref); in phy_g12a_usb3_pcie_probe() 365 ret = clk_prepare_enable(priv->clk_ref); in phy_g12a_usb3_pcie_probe() 391 clk_disable_unprepare(priv->clk_ref); in phy_g12a_usb3_pcie_probe()
|
/Linux-v5.4/arch/m68k/include/asm/ |
D | mcfclk.h | 44 #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \ argument 45 static struct clk clk_##clk_ref = { \
|
/Linux-v5.4/drivers/clk/ti/ |
D | dpll44xx.c | 94 fint = clk_hw_get_rate(dd->clk_ref) / (dd->last_rounded_n + 1); in omap4_dpll_lpmode_recalc() 218 req->best_parent_hw = dd->clk_ref; in omap4_dpll_regm4xen_determine_rate()
|
D | fapll.c | 70 struct clk *clk_ref; member 566 fd->clk_ref = of_clk_get(node, 0); in ti_fapll_setup() 567 if (IS_ERR(fd->clk_ref)) { in ti_fapll_setup() 658 if (fd->clk_ref) in ti_fapll_setup() 659 clk_put(fd->clk_ref); in ti_fapll_setup()
|
D | clkt_dpll.c | 262 dpll_clk = (u64)clk_hw_get_rate(dd->clk_ref) * dpll_mult; in omap2_get_dpll_rate() 304 ref_rate = clk_hw_get_rate(dd->clk_ref); in omap2_dpll_round_rate()
|
D | dpll3xxx.c | 98 fint = clk_hw_get_rate(clk->dpll_data->clk_ref) / n; in _omap3_dpll_compute_freqsel() 464 WARN_ON(parent != dd->clk_ref); in omap3_noncore_dpll_enable() 518 req->best_parent_hw = dd->clk_ref; in omap3_noncore_dpll_determine_rate() 576 if (clk_hw_get_parent(hw) != dd->clk_ref) in omap3_noncore_dpll_set_rate()
|
D | apll.c | 155 ad->clk_ref = __clk_get_hw(clk); in omap_clk_register_apll()
|
D | dpll.c | 180 dd->clk_ref = __clk_get_hw(clk); in _register_dpll()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | tegra.h | 15 struct clk *clk_ref; member
|
/Linux-v5.4/drivers/phy/rockchip/ |
D | phy-rockchip-typec.c | 377 struct clk *clk_ref; member 734 ret = clk_prepare_enable(tcphy->clk_ref); in tcphy_phy_init() 791 clk_disable_unprepare(tcphy->clk_ref); in tcphy_phy_init() 803 clk_disable_unprepare(tcphy->clk_ref); in tcphy_phy_deinit() 1057 tcphy->clk_ref = devm_clk_get(dev, "tcpdphy-ref"); in tcphy_parse_dt() 1058 if (IS_ERR(tcphy->clk_ref)) { in tcphy_parse_dt() 1060 return PTR_ERR(tcphy->clk_ref); in tcphy_parse_dt()
|
/Linux-v5.4/drivers/phy/st/ |
D | phy-miphy28lp.c | 240 int clk_ref; member 249 .clk_ref = 0x1e, 258 .clk_ref = 0x1e, 267 .clk_ref = 0x1e, 395 writeb_relaxed(pll_ratio->clk_ref, base + MIPHY_PLL_CLKREF_FREQ); in miphy28lp_pll_calibration() 513 writeb_relaxed(pll_ratio->clk_ref, base + MIPHY_PLL_CLKREF_FREQ); in miphy28lp_compensation()
|
/Linux-v5.4/include/linux/clk/ |
D | ti.h | 86 struct clk_hw *clk_ref; member
|
/Linux-v5.4/drivers/net/ethernet/freescale/ |
D | fec.h | 507 struct clk *clk_ref; member
|
D | fec_main.c | 1917 ret = clk_prepare_enable(fep->clk_ref); in fec_enet_clk_enable() 1930 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable() 1936 if (fep->clk_ref) in fec_enet_clk_enable() 1937 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable() 3503 fep->clk_ref = devm_clk_get(&pdev->dev, "enet_clk_ref"); in fec_probe() 3504 if (IS_ERR(fep->clk_ref)) in fec_probe() 3505 fep->clk_ref = NULL; in fec_probe()
|