/linux/drivers/gpu/drm/sun4i/ |
A 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()
|
A D | sun4i_backend.c | 841 backend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_backend_bind() 842 if (IS_ERR(backend->mod_clk)) { in sun4i_backend_bind() 844 ret = PTR_ERR(backend->mod_clk); in sun4i_backend_bind() 848 ret = clk_set_rate_exclusive(backend->mod_clk, 300000000); in sun4i_backend_bind() 854 clk_prepare_enable(backend->mod_clk); in sun4i_backend_bind() 930 clk_rate_exclusive_put(backend->mod_clk); in sun4i_backend_bind() 931 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_bind() 951 clk_rate_exclusive_put(backend->mod_clk); in sun4i_backend_unbind() 952 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_unbind()
|
A D | sun8i_mixer.c | 423 mixer->mod_clk = devm_clk_get(dev, "mod"); in sun8i_mixer_bind() 424 if (IS_ERR(mixer->mod_clk)) { in sun8i_mixer_bind() 426 ret = PTR_ERR(mixer->mod_clk); in sun8i_mixer_bind() 436 clk_set_rate(mixer->mod_clk, mixer->cfg->mod_rate); in sun8i_mixer_bind() 438 clk_prepare_enable(mixer->mod_clk); in sun8i_mixer_bind() 514 clk_disable_unprepare(mixer->mod_clk); in sun8i_mixer_unbind()
|
A D | sun4i_hdmi_enc.c | 128 clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000); in sun4i_hdmi_mode_set() 534 hdmi->mod_clk = devm_clk_get(dev, "mod"); in sun4i_hdmi_bind() 535 if (IS_ERR(hdmi->mod_clk)) { in sun4i_hdmi_bind() 537 ret = PTR_ERR(hdmi->mod_clk); in sun4i_hdmi_bind() 540 clk_prepare_enable(hdmi->mod_clk); in sun4i_hdmi_bind() 665 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_bind() 681 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_unbind()
|
A D | sun4i_frontend.c | 601 frontend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_frontend_bind() 602 if (IS_ERR(frontend->mod_clk)) { in sun4i_frontend_bind() 604 return PTR_ERR(frontend->mod_clk); in sun4i_frontend_bind() 650 clk_set_rate(frontend->mod_clk, 300000000); in sun4i_frontend_runtime_resume() 653 clk_prepare_enable(frontend->mod_clk); in sun4i_frontend_runtime_resume() 676 clk_disable_unprepare(frontend->mod_clk); in sun4i_frontend_runtime_suspend()
|
A 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() 1156 dsi->mod_clk = devm_clk_get(dev, "mod"); in sun6i_dsi_probe() 1157 if (IS_ERR(dsi->mod_clk)) { in sun6i_dsi_probe() 1159 ret = PTR_ERR(dsi->mod_clk); in sun6i_dsi_probe() 1168 clk_set_rate_exclusive(dsi->mod_clk, 297000000); in sun6i_dsi_probe() 1194 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_probe() 1208 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_remove()
|
A D | sun6i_mipi_dsi.h | 24 struct clk *mod_clk; member
|
A D | sun4i_frontend.h | 127 struct clk *mod_clk; member
|
A D | sun8i_mixer.h | 179 struct clk *mod_clk; member
|
A D | sun4i_backend.h | 176 struct clk *mod_clk; member
|
A D | sun4i_hdmi.h | 258 struct clk *mod_clk; member
|
A D | sun8i_vi_layer.c | 177 ability = clk_get_rate(mixer->mod_clk); in sun8i_vi_layer_update_coord()
|
/linux/drivers/phy/allwinner/ |
A 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()
|
/linux/drivers/staging/media/sunxi/cedrus/ |
A D | cedrus_hw.c | 153 clk_disable_unprepare(dev->mod_clk); in cedrus_hw_suspend() 171 ret = clk_prepare_enable(dev->mod_clk); in cedrus_hw_resume() 197 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()
|
A D | cedrus.h | 190 struct clk *mod_clk; member
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu-sun8i-de2.c | 283 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local 305 mod_clk = devm_clk_get(&pdev->dev, "mod"); in sunxi_de2_clk_probe() 306 if (IS_ERR(mod_clk)) { in sunxi_de2_clk_probe() 307 ret = PTR_ERR(mod_clk); in sunxi_de2_clk_probe() 329 ret = clk_prepare_enable(mod_clk); in sunxi_de2_clk_probe() 352 clk_disable_unprepare(mod_clk); in sunxi_de2_clk_probe()
|
/linux/drivers/thermal/ |
A D | sun8i_thermal.c | 89 struct clk *mod_clk; member 348 tmdev->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun8i_ths_resource_init() 349 if (IS_ERR(tmdev->mod_clk)) in sun8i_ths_resource_init() 350 return PTR_ERR(tmdev->mod_clk); in sun8i_ths_resource_init() 361 ret = clk_set_rate(tmdev->mod_clk, 24000000); in sun8i_ths_resource_init() 365 ret = clk_prepare_enable(tmdev->mod_clk); in sun8i_ths_resource_init() 376 clk_disable_unprepare(tmdev->mod_clk); in sun8i_ths_resource_init() 537 clk_disable_unprepare(tmdev->mod_clk); in sun8i_ths_remove()
|
/linux/drivers/media/platform/sunxi/sun8i-di/ |
A D | sun8i-di.c | 838 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in deinterlace_probe() 839 if (IS_ERR(dev->mod_clk)) { in deinterlace_probe() 842 return PTR_ERR(dev->mod_clk); in deinterlace_probe() 927 ret = clk_set_rate_exclusive(dev->mod_clk, 300000000); in deinterlace_runtime_resume() 941 ret = clk_prepare_enable(dev->mod_clk); in deinterlace_runtime_resume() 969 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_resume() 973 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_resume() 985 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_suspend() 987 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_suspend()
|
A D | sun8i-di.h | 231 struct clk *mod_clk; member
|
/linux/sound/soc/sunxi/ |
A D | sun4i-i2s.c | 200 struct clk *mod_clk; member 272 return clk_get_rate(i2s->mod_clk); in sun8i_i2s_get_bclk_parent_rate() 362 ret = clk_set_rate(i2s->mod_clk, clk_rate); in sun4i_i2s_set_clk_rate() 1290 ret = clk_prepare_enable(i2s->mod_clk); in sun4i_i2s_runtime_resume() 1307 clk_disable_unprepare(i2s->mod_clk); in sun4i_i2s_runtime_suspend() 1500 i2s->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun4i_i2s_probe() 1501 if (IS_ERR(i2s->mod_clk)) { in sun4i_i2s_probe() 1503 return PTR_ERR(i2s->mod_clk); in sun4i_i2s_probe()
|
/linux/drivers/media/platform/sunxi/sun8i-rotate/ |
A 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()
|
A D | sun8i-rotate.h | 130 struct clk *mod_clk; member
|
/linux/drivers/mtd/nand/raw/ |
A 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()
|