Lines Matching refs:venc

299 } venc;  variable
303 __raw_writel(val, venc.base + idx); in venc_write_reg()
308 u32 l = __raw_readl(venc.base + idx); in venc_read_reg()
327 venc.wss_data); in venc_write_config()
393 r = pm_runtime_get_sync(&venc.pdev->dev); in venc_runtime_get()
404 r = pm_runtime_put_sync(&venc.pdev->dev); in venc_runtime_put()
423 struct omap_overlay_manager *mgr = venc.output.manager; in venc_power_on()
432 venc_write_config(venc_timings_to_config(&venc.timings)); in venc_power_on()
434 dss_set_venc_output(venc.type); in venc_power_on()
439 if (venc.type == OMAP_DSS_VENC_TYPE_COMPOSITE) in venc_power_on()
444 if (venc.invert_polarity == false) in venc_power_on()
449 dss_mgr_set_timings(mgr, &venc.timings); in venc_power_on()
451 r = regulator_enable(venc.vdda_dac_reg); in venc_power_on()
462 regulator_disable(venc.vdda_dac_reg); in venc_power_on()
474 struct omap_overlay_manager *mgr = venc.output.manager; in venc_power_off()
481 regulator_disable(venc.vdda_dac_reg); in venc_power_off()
488 struct omap_dss_device *out = &venc.output; in venc_display_enable()
493 mutex_lock(&venc.venc_lock); in venc_display_enable()
505 venc.wss_data = 0; in venc_display_enable()
507 mutex_unlock(&venc.venc_lock); in venc_display_enable()
511 mutex_unlock(&venc.venc_lock); in venc_display_enable()
519 mutex_lock(&venc.venc_lock); in venc_display_disable()
523 mutex_unlock(&venc.venc_lock); in venc_display_disable()
531 mutex_lock(&venc.venc_lock); in venc_set_timings()
534 if (memcmp(&venc.timings, timings, sizeof(*timings))) in venc_set_timings()
535 venc.wss_data = 0; in venc_set_timings()
537 venc.timings = *timings; in venc_set_timings()
541 mutex_unlock(&venc.venc_lock); in venc_set_timings()
561 mutex_lock(&venc.venc_lock); in venc_get_timings()
563 *timings = venc.timings; in venc_get_timings()
565 mutex_unlock(&venc.venc_lock); in venc_get_timings()
571 return (venc.wss_data >> 8) ^ 0xfffff; in venc_get_wss()
581 mutex_lock(&venc.venc_lock); in venc_set_wss()
583 config = venc_timings_to_config(&venc.timings); in venc_set_wss()
586 venc.wss_data = (wss ^ 0xfffff) << 8; in venc_set_wss()
593 venc.wss_data); in venc_set_wss()
598 mutex_unlock(&venc.venc_lock); in venc_set_wss()
606 mutex_lock(&venc.venc_lock); in venc_set_type()
608 venc.type = type; in venc_set_type()
610 mutex_unlock(&venc.venc_lock); in venc_set_type()
616 mutex_lock(&venc.venc_lock); in venc_invert_vid_out_polarity()
618 venc.invert_polarity = invert_polarity; in venc_invert_vid_out_polarity()
620 mutex_unlock(&venc.venc_lock); in venc_invert_vid_out_polarity()
627 if (venc.vdda_dac_reg != NULL) in venc_init_regulator()
630 if (venc.pdev->dev.of_node) in venc_init_regulator()
631 vdda_dac = devm_regulator_get(&venc.pdev->dev, "vdda"); in venc_init_regulator()
633 vdda_dac = devm_regulator_get(&venc.pdev->dev, "vdda_dac"); in venc_init_regulator()
641 venc.vdda_dac_reg = vdda_dac; in venc_init_regulator()
714 venc.tv_dac_clk = clk; in venc_get_clocks()
782 struct omap_dss_device *out = &venc.output; in venc_init_output()
797 struct omap_dss_device *out = &venc.output; in venc_uninit_output()
813 venc.invert_polarity = of_property_read_bool(ep, "ti,invert-polarity"); in venc_probe_of()
824 venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE; in venc_probe_of()
827 venc.type = OMAP_DSS_VENC_TYPE_SVIDEO; in venc_probe_of()
852 venc.pdev = pdev; in venc_bind()
854 mutex_init(&venc.venc_lock); in venc_bind()
856 venc.wss_data = 0; in venc_bind()
858 venc_mem = platform_get_resource(venc.pdev, IORESOURCE_MEM, 0); in venc_bind()
864 venc.base = devm_ioremap(&pdev->dev, venc_mem->start, in venc_bind()
866 if (!venc.base) { in venc_bind()
933 if (venc.tv_dac_clk) in venc_runtime_suspend()
934 clk_disable_unprepare(venc.tv_dac_clk); in venc_runtime_suspend()
949 if (venc.tv_dac_clk) in venc_runtime_resume()
950 clk_prepare_enable(venc.tv_dac_clk); in venc_runtime_resume()