/Linux-v4.19/drivers/gpu/drm/sun4i/ |
D | sun6i_drc.c | 22 struct clk *mod_clk; member 57 drc->mod_clk = devm_clk_get(dev, "mod"); in sun6i_drc_bind() 58 if (IS_ERR(drc->mod_clk)) { in sun6i_drc_bind() 60 ret = PTR_ERR(drc->mod_clk); in sun6i_drc_bind() 63 clk_prepare_enable(drc->mod_clk); in sun6i_drc_bind() 79 clk_disable_unprepare(drc->mod_clk); in sun6i_drc_unbind()
|
D | sun6i_mipi_dphy.c | 87 clk_prepare_enable(dphy->mod_clk); in sun6i_dphy_init() 88 clk_set_rate_exclusive(dphy->mod_clk, 150000000); in sun6i_dphy_init() 194 clk_rate_exclusive_put(dphy->mod_clk); in sun6i_dphy_exit() 195 clk_disable_unprepare(dphy->mod_clk); in sun6i_dphy_exit() 263 dphy->mod_clk = of_clk_get_by_name(node, "mod"); in sun6i_dphy_probe() 264 if (IS_ERR(dphy->mod_clk)) { in sun6i_dphy_probe() 266 ret = PTR_ERR(dphy->mod_clk); in sun6i_dphy_probe() 287 clk_put(dphy->mod_clk); in sun6i_dphy_remove()
|
D | sun4i_frontend.c | 277 frontend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_frontend_bind() 278 if (IS_ERR(frontend->mod_clk)) { in sun4i_frontend_bind() 280 return PTR_ERR(frontend->mod_clk); in sun4i_frontend_bind() 326 clk_set_rate(frontend->mod_clk, 300000000); in sun4i_frontend_runtime_resume() 329 clk_prepare_enable(frontend->mod_clk); in sun4i_frontend_runtime_resume() 356 clk_disable_unprepare(frontend->mod_clk); in sun4i_frontend_runtime_suspend()
|
D | sun6i_mipi_dsi.h | 18 struct clk *mod_clk; member 29 struct clk *mod_clk; member
|
D | sun8i_mixer.c | 440 mixer->mod_clk = devm_clk_get(dev, "mod"); in sun8i_mixer_bind() 441 if (IS_ERR(mixer->mod_clk)) { in sun8i_mixer_bind() 443 ret = PTR_ERR(mixer->mod_clk); in sun8i_mixer_bind() 453 clk_set_rate(mixer->mod_clk, mixer->cfg->mod_rate); in sun8i_mixer_bind() 455 clk_prepare_enable(mixer->mod_clk); in sun8i_mixer_bind() 504 clk_disable_unprepare(mixer->mod_clk); in sun8i_mixer_unbind()
|
D | sun4i_hdmi_enc.c | 125 clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000); in sun4i_hdmi_mode_set() 515 hdmi->mod_clk = devm_clk_get(dev, "mod"); in sun4i_hdmi_bind() 516 if (IS_ERR(hdmi->mod_clk)) { in sun4i_hdmi_bind() 518 ret = PTR_ERR(hdmi->mod_clk); in sun4i_hdmi_bind() 521 clk_prepare_enable(hdmi->mod_clk); in sun4i_hdmi_bind() 636 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_bind() 653 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_unbind()
|
D | sun4i_backend.c | 804 backend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_backend_bind() 805 if (IS_ERR(backend->mod_clk)) { in sun4i_backend_bind() 807 ret = PTR_ERR(backend->mod_clk); in sun4i_backend_bind() 810 clk_prepare_enable(backend->mod_clk); in sun4i_backend_bind() 884 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_bind() 904 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_unbind()
|
D | sun6i_mipi_dsi.c | 1004 dsi->mod_clk = devm_clk_get(dev, "mod"); in sun6i_dsi_probe() 1005 if (IS_ERR(dsi->mod_clk)) { in sun6i_dsi_probe() 1007 return PTR_ERR(dsi->mod_clk); in sun6i_dsi_probe() 1014 clk_set_rate_exclusive(dsi->mod_clk, 297000000); in sun6i_dsi_probe() 1046 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_probe() 1059 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_remove() 1069 clk_prepare_enable(dsi->mod_clk); in sun6i_dsi_runtime_resume() 1097 clk_disable_unprepare(dsi->mod_clk); in sun6i_dsi_runtime_suspend()
|
D | sun4i_frontend.h | 80 struct clk *mod_clk; member
|
D | sun8i_mixer.h | 147 struct clk *mod_clk; member
|
D | sun4i_backend.h | 181 struct clk *mod_clk; member
|
D | sun4i_hdmi.h | 262 struct clk *mod_clk; member
|
/Linux-v4.19/drivers/clk/sunxi-ng/ |
D | ccu-sun8i-de2.c | 202 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local 225 mod_clk = devm_clk_get(&pdev->dev, "mod"); in sunxi_de2_clk_probe() 226 if (IS_ERR(mod_clk)) { in sunxi_de2_clk_probe() 227 ret = PTR_ERR(mod_clk); in sunxi_de2_clk_probe() 249 ret = clk_prepare_enable(mod_clk); in sunxi_de2_clk_probe() 272 clk_disable_unprepare(mod_clk); in sunxi_de2_clk_probe()
|
/Linux-v4.19/sound/soc/sunxi/ |
D | sun4i-i2s.c | 174 struct clk *mod_clk; member 308 ret = clk_set_rate(i2s->mod_clk, clk_rate); in sun4i_i2s_set_clk_rate() 662 return clk_prepare_enable(i2s->mod_clk); in sun4i_i2s_startup() 670 clk_disable_unprepare(i2s->mod_clk); in sun4i_i2s_shutdown() 1069 i2s->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun4i_i2s_probe() 1070 if (IS_ERR(i2s->mod_clk)) { in sun4i_i2s_probe() 1072 return PTR_ERR(i2s->mod_clk); in sun4i_i2s_probe()
|
/Linux-v4.19/drivers/mtd/nand/raw/ |
D | sunxi_nand.c | 239 struct clk *mod_clk; member 455 clk_set_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_select_chip() 1614 real_clk_rate = clk_round_rate(nfc->mod_clk, chip->clk_rate); in sunxi_nfc_setup_data_interface() 2032 nfc->mod_clk = devm_clk_get(dev, "mod"); in sunxi_nfc_probe() 2033 if (IS_ERR(nfc->mod_clk)) { in sunxi_nfc_probe() 2035 ret = PTR_ERR(nfc->mod_clk); in sunxi_nfc_probe() 2039 ret = clk_prepare_enable(nfc->mod_clk); in sunxi_nfc_probe() 2096 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_probe() 2113 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_remove()
|