/drivers/gpu/drm/sun4i/ |
D | sun6i_drc.c | 18 struct clk *mod_clk; member 53 drc->mod_clk = devm_clk_get(dev, "mod"); in sun6i_drc_bind() 54 if (IS_ERR(drc->mod_clk)) { in sun6i_drc_bind() 56 ret = PTR_ERR(drc->mod_clk); in sun6i_drc_bind() 60 ret = clk_set_rate_exclusive(drc->mod_clk, 300000000); in sun6i_drc_bind() 66 clk_prepare_enable(drc->mod_clk); in sun6i_drc_bind() 82 clk_rate_exclusive_put(drc->mod_clk); in sun6i_drc_unbind() 83 clk_disable_unprepare(drc->mod_clk); in sun6i_drc_unbind()
|
D | sun4i_backend.c | 843 backend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_backend_bind() 844 if (IS_ERR(backend->mod_clk)) { in sun4i_backend_bind() 846 ret = PTR_ERR(backend->mod_clk); in sun4i_backend_bind() 850 ret = clk_set_rate_exclusive(backend->mod_clk, 300000000); in sun4i_backend_bind() 856 clk_prepare_enable(backend->mod_clk); in sun4i_backend_bind() 932 clk_rate_exclusive_put(backend->mod_clk); in sun4i_backend_bind() 933 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_bind() 953 clk_rate_exclusive_put(backend->mod_clk); in sun4i_backend_unbind() 954 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_unbind()
|
D | sun8i_mixer.c | 425 mixer->mod_clk = devm_clk_get(dev, "mod"); in sun8i_mixer_bind() 426 if (IS_ERR(mixer->mod_clk)) { in sun8i_mixer_bind() 428 ret = PTR_ERR(mixer->mod_clk); in sun8i_mixer_bind() 438 clk_set_rate(mixer->mod_clk, mixer->cfg->mod_rate); in sun8i_mixer_bind() 440 clk_prepare_enable(mixer->mod_clk); in sun8i_mixer_bind() 516 clk_disable_unprepare(mixer->mod_clk); in sun8i_mixer_unbind()
|
D | sun4i_hdmi_enc.c | 128 clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000); in sun4i_hdmi_mode_set() 536 hdmi->mod_clk = devm_clk_get(dev, "mod"); in sun4i_hdmi_bind() 537 if (IS_ERR(hdmi->mod_clk)) { in sun4i_hdmi_bind() 539 ret = PTR_ERR(hdmi->mod_clk); in sun4i_hdmi_bind() 542 clk_prepare_enable(hdmi->mod_clk); in sun4i_hdmi_bind() 667 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_bind() 683 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_unbind()
|
D | sun4i_frontend.c | 600 frontend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_frontend_bind() 601 if (IS_ERR(frontend->mod_clk)) { in sun4i_frontend_bind() 603 return PTR_ERR(frontend->mod_clk); in sun4i_frontend_bind() 649 clk_set_rate(frontend->mod_clk, 300000000); in sun4i_frontend_runtime_resume() 652 clk_prepare_enable(frontend->mod_clk); in sun4i_frontend_runtime_resume() 675 clk_disable_unprepare(frontend->mod_clk); in sun4i_frontend_runtime_suspend()
|
D | sun6i_mipi_dsi.c | 733 clk_prepare_enable(dsi->mod_clk); in sun6i_dsi_encoder_enable() 811 clk_disable_unprepare(dsi->mod_clk); in sun6i_dsi_encoder_disable() 1160 dsi->mod_clk = devm_clk_get(dev, "mod"); in sun6i_dsi_probe() 1161 if (IS_ERR(dsi->mod_clk)) { in sun6i_dsi_probe() 1163 ret = PTR_ERR(dsi->mod_clk); in sun6i_dsi_probe() 1172 clk_set_rate_exclusive(dsi->mod_clk, 297000000); in sun6i_dsi_probe() 1198 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_probe() 1212 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_remove()
|
D | sun6i_mipi_dsi.h | 24 struct clk *mod_clk; member
|
D | sun4i_frontend.h | 127 struct clk *mod_clk; member
|
D | sun8i_mixer.h | 179 struct clk *mod_clk; member
|
D | sun4i_backend.h | 176 struct clk *mod_clk; member
|
D | sun4i_hdmi.h | 258 struct clk *mod_clk; member
|
D | sun8i_vi_layer.c | 177 ability = clk_get_rate(mixer->mod_clk); in sun8i_vi_layer_update_coord()
|
/drivers/phy/allwinner/ |
D | phy-sun6i-mipi-dphy.c | 89 struct clk *mod_clk; member 102 clk_prepare_enable(dphy->mod_clk); in sun6i_dphy_init() 103 clk_set_rate_exclusive(dphy->mod_clk, 150000000); in sun6i_dphy_init() 228 clk_rate_exclusive_put(dphy->mod_clk); in sun6i_dphy_exit() 229 clk_disable_unprepare(dphy->mod_clk); in sun6i_dphy_exit() 281 dphy->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun6i_dphy_probe() 282 if (IS_ERR(dphy->mod_clk)) { in sun6i_dphy_probe() 284 return PTR_ERR(dphy->mod_clk); in sun6i_dphy_probe()
|
/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_hw.c | 151 clk_disable_unprepare(dev->mod_clk); in cedrus_hw_suspend() 178 ret = clk_prepare_enable(dev->mod_clk); in cedrus_hw_resume() 195 clk_disable_unprepare(dev->mod_clk); in cedrus_hw_resume() 249 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in cedrus_hw_probe() 250 if (IS_ERR(dev->mod_clk)) { in cedrus_hw_probe() 253 ret = PTR_ERR(dev->mod_clk); in cedrus_hw_probe() 281 ret = clk_set_rate(dev->mod_clk, variant->mod_rate); in cedrus_hw_probe()
|
D | cedrus.h | 188 struct clk *mod_clk; member
|
/drivers/clk/sunxi-ng/ |
D | ccu-sun8i-de2.c | 284 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local 307 mod_clk = devm_clk_get(&pdev->dev, "mod"); in sunxi_de2_clk_probe() 308 if (IS_ERR(mod_clk)) { in sunxi_de2_clk_probe() 309 ret = PTR_ERR(mod_clk); in sunxi_de2_clk_probe() 331 ret = clk_prepare_enable(mod_clk); in sunxi_de2_clk_probe() 354 clk_disable_unprepare(mod_clk); in sunxi_de2_clk_probe()
|
/drivers/thermal/ |
D | sun8i_thermal.c | 89 struct clk *mod_clk; member 362 tmdev->mod_clk = devm_clk_get_enabled(&pdev->dev, "mod"); in sun8i_ths_resource_init() 363 if (IS_ERR(tmdev->mod_clk)) in sun8i_ths_resource_init() 364 return PTR_ERR(tmdev->mod_clk); in sun8i_ths_resource_init() 367 ret = clk_set_rate(tmdev->mod_clk, 24000000); in sun8i_ths_resource_init()
|
/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 840 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in deinterlace_probe() 841 if (IS_ERR(dev->mod_clk)) { in deinterlace_probe() 844 return PTR_ERR(dev->mod_clk); in deinterlace_probe() 929 ret = clk_set_rate_exclusive(dev->mod_clk, 300000000); in deinterlace_runtime_resume() 943 ret = clk_prepare_enable(dev->mod_clk); in deinterlace_runtime_resume() 971 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_resume() 975 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_resume() 987 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_suspend() 989 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_suspend()
|
D | sun8i-di.h | 231 struct clk *mod_clk; member
|
/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 772 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in rotate_probe() 773 if (IS_ERR(dev->mod_clk)) { in rotate_probe() 776 return PTR_ERR(dev->mod_clk); in rotate_probe() 861 ret = clk_prepare_enable(dev->mod_clk); in rotate_runtime_resume() 878 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_resume() 891 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_suspend()
|
D | sun8i-rotate.h | 130 struct clk *mod_clk; member
|
/drivers/mtd/nand/raw/ |
D | sunxi_nand.c | 246 struct clk *mod_clk; member 438 clk_set_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_select_chip() 1550 real_clk_rate = clk_round_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_setup_interface() 2147 nfc->mod_clk = devm_clk_get(dev, "mod"); in sunxi_nfc_probe() 2148 if (IS_ERR(nfc->mod_clk)) { in sunxi_nfc_probe() 2150 ret = PTR_ERR(nfc->mod_clk); in sunxi_nfc_probe() 2154 ret = clk_prepare_enable(nfc->mod_clk); in sunxi_nfc_probe() 2207 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_probe() 2224 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_remove()
|