Home
last modified time | relevance | path

Searched refs:clock_mod (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi.c179 clk_disable_unprepare(csi_dev->clock_mod); in sun6i_csi_suspend()
195 ret = clk_prepare_enable(csi_dev->clock_mod); in sun6i_csi_resume()
210 clk_disable_unprepare(csi_dev->clock_mod); in sun6i_csi_resume()
258 csi_dev->clock_mod = devm_clk_get(dev, "mod"); in sun6i_csi_resources_setup()
259 if (IS_ERR(csi_dev->clock_mod)) { in sun6i_csi_resources_setup()
261 return PTR_ERR(csi_dev->clock_mod); in sun6i_csi_resources_setup()
270 ret = clk_set_rate_exclusive(csi_dev->clock_mod, in sun6i_csi_resources_setup()
308 clk_rate_exclusive_put(csi_dev->clock_mod); in sun6i_csi_resources_setup()
316 clk_rate_exclusive_put(csi_dev->clock_mod); in sun6i_csi_resources_cleanup()
H A Dsun6i_csi.h47 struct clk *clock_mod; member
/openbmc/linux/drivers/staging/media/sunxi/sun6i-isp/
H A Dsun6i_isp.c284 clk_disable_unprepare(isp_dev->clock_mod); in sun6i_isp_suspend()
300 ret = clk_prepare_enable(isp_dev->clock_mod); in sun6i_isp_resume()
315 clk_disable_unprepare(isp_dev->clock_mod); in sun6i_isp_resume()
358 isp_dev->clock_mod = devm_clk_get(dev, "mod"); in sun6i_isp_resources_setup()
359 if (IS_ERR(isp_dev->clock_mod)) { in sun6i_isp_resources_setup()
361 return PTR_ERR(isp_dev->clock_mod); in sun6i_isp_resources_setup()
370 ret = clk_set_rate_exclusive(isp_dev->clock_mod, 297000000); in sun6i_isp_resources_setup()
408 clk_rate_exclusive_put(isp_dev->clock_mod); in sun6i_isp_resources_setup()
418 clk_rate_exclusive_put(isp_dev->clock_mod); in sun6i_isp_resources_cleanup()
H A Dsun6i_isp.h61 struct clk *clock_mod; member
/openbmc/linux/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
H A Dsun8i_a83t_mipi_csi2.c627 clk_disable_unprepare(csi2_dev->clock_mod); in sun8i_a83t_mipi_csi2_suspend()
644 ret = clk_prepare_enable(csi2_dev->clock_mod); in sun8i_a83t_mipi_csi2_resume()
670 clk_disable_unprepare(csi2_dev->clock_mod); in sun8i_a83t_mipi_csi2_resume()
714 csi2_dev->clock_mod = devm_clk_get(dev, "mod"); in sun8i_a83t_mipi_csi2_resources_setup()
715 if (IS_ERR(csi2_dev->clock_mod)) { in sun8i_a83t_mipi_csi2_resources_setup()
717 return PTR_ERR(csi2_dev->clock_mod); in sun8i_a83t_mipi_csi2_resources_setup()
720 ret = clk_set_rate_exclusive(csi2_dev->clock_mod, 297000000); in sun8i_a83t_mipi_csi2_resources_setup()
764 clk_rate_exclusive_put(csi2_dev->clock_mod); in sun8i_a83t_mipi_csi2_resources_setup()
774 clk_rate_exclusive_put(csi2_dev->clock_mod); in sun8i_a83t_mipi_csi2_resources_cleanup()
H A Dsun8i_a83t_mipi_csi2.h46 struct clk *clock_mod; member
/openbmc/linux/drivers/media/platform/sunxi/sun6i-mipi-csi2/
H A Dsun6i_mipi_csi2.c587 clk_disable_unprepare(csi2_dev->clock_mod); in sun6i_mipi_csi2_suspend()
604 ret = clk_prepare_enable(csi2_dev->clock_mod); in sun6i_mipi_csi2_resume()
654 csi2_dev->clock_mod = devm_clk_get(dev, "mod"); in sun6i_mipi_csi2_resources_setup()
655 if (IS_ERR(csi2_dev->clock_mod)) { in sun6i_mipi_csi2_resources_setup()
657 return PTR_ERR(csi2_dev->clock_mod); in sun6i_mipi_csi2_resources_setup()
660 ret = clk_set_rate_exclusive(csi2_dev->clock_mod, 297000000); in sun6i_mipi_csi2_resources_setup()
697 clk_rate_exclusive_put(csi2_dev->clock_mod); in sun6i_mipi_csi2_resources_setup()
707 clk_rate_exclusive_put(csi2_dev->clock_mod); in sun6i_mipi_csi2_resources_cleanup()
H A Dsun6i_mipi_csi2.h45 struct clk *clock_mod; member