Lines Matching refs:venc
310 } venc; variable
314 __raw_writel(val, venc.base + idx); in venc_write_reg()
319 u32 l = __raw_readl(venc.base + idx); in venc_read_reg()
338 venc.wss_data); in venc_write_config()
404 r = pm_runtime_get_sync(&venc.pdev->dev); in venc_runtime_get()
415 r = pm_runtime_put_sync(&venc.pdev->dev); in venc_runtime_put()
434 struct omap_overlay_manager *mgr = venc.output.manager; in venc_power_on()
443 venc_write_config(venc_timings_to_config(&venc.timings)); in venc_power_on()
445 dss_set_venc_output(venc.type); in venc_power_on()
450 if (venc.type == OMAP_DSS_VENC_TYPE_COMPOSITE) in venc_power_on()
455 if (venc.invert_polarity == false) in venc_power_on()
460 dss_mgr_set_timings(mgr, &venc.timings); in venc_power_on()
462 r = regulator_enable(venc.vdda_dac_reg); in venc_power_on()
473 regulator_disable(venc.vdda_dac_reg); in venc_power_on()
485 struct omap_overlay_manager *mgr = venc.output.manager; in venc_power_off()
492 regulator_disable(venc.vdda_dac_reg); in venc_power_off()
499 struct omap_dss_device *out = &venc.output; in venc_display_enable()
504 mutex_lock(&venc.venc_lock); in venc_display_enable()
516 venc.wss_data = 0; in venc_display_enable()
518 mutex_unlock(&venc.venc_lock); in venc_display_enable()
522 mutex_unlock(&venc.venc_lock); in venc_display_enable()
530 mutex_lock(&venc.venc_lock); in venc_display_disable()
534 mutex_unlock(&venc.venc_lock); in venc_display_disable()
542 mutex_lock(&venc.venc_lock); in venc_set_timings()
545 if (memcmp(&venc.timings, timings, sizeof(*timings))) in venc_set_timings()
546 venc.wss_data = 0; in venc_set_timings()
548 venc.timings = *timings; in venc_set_timings()
552 mutex_unlock(&venc.venc_lock); in venc_set_timings()
572 mutex_lock(&venc.venc_lock); in venc_get_timings()
574 *timings = venc.timings; in venc_get_timings()
576 mutex_unlock(&venc.venc_lock); in venc_get_timings()
582 return (venc.wss_data >> 8) ^ 0xfffff; in venc_get_wss()
592 mutex_lock(&venc.venc_lock); in venc_set_wss()
594 config = venc_timings_to_config(&venc.timings); in venc_set_wss()
597 venc.wss_data = (wss ^ 0xfffff) << 8; in venc_set_wss()
604 venc.wss_data); in venc_set_wss()
609 mutex_unlock(&venc.venc_lock); in venc_set_wss()
617 mutex_lock(&venc.venc_lock); in venc_set_type()
619 venc.type = type; in venc_set_type()
621 mutex_unlock(&venc.venc_lock); in venc_set_type()
627 mutex_lock(&venc.venc_lock); in venc_invert_vid_out_polarity()
629 venc.invert_polarity = invert_polarity; in venc_invert_vid_out_polarity()
631 mutex_unlock(&venc.venc_lock); in venc_invert_vid_out_polarity()
638 if (venc.vdda_dac_reg != NULL) in venc_init_regulator()
641 if (venc.pdev->dev.of_node) in venc_init_regulator()
642 vdda_dac = devm_regulator_get(&venc.pdev->dev, "vdda"); in venc_init_regulator()
644 vdda_dac = devm_regulator_get(&venc.pdev->dev, "vdda_dac"); in venc_init_regulator()
652 venc.vdda_dac_reg = vdda_dac; in venc_init_regulator()
725 venc.tv_dac_clk = clk; in venc_get_clocks()
793 struct omap_dss_device *out = &venc.output; in venc_init_output()
808 struct omap_dss_device *out = &venc.output; in venc_uninit_output()
824 venc.invert_polarity = of_property_read_bool(ep, "ti,invert-polarity"); in venc_probe_of()
835 venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE; in venc_probe_of()
838 venc.type = OMAP_DSS_VENC_TYPE_SVIDEO; in venc_probe_of()
863 venc.pdev = pdev; in venc_bind()
865 mutex_init(&venc.venc_lock); in venc_bind()
867 venc.wss_data = 0; in venc_bind()
869 venc_mem = platform_get_resource(venc.pdev, IORESOURCE_MEM, 0); in venc_bind()
875 venc.base = devm_ioremap(&pdev->dev, venc_mem->start, in venc_bind()
877 if (!venc.base) { in venc_bind()
944 if (venc.tv_dac_clk) in venc_runtime_suspend()
945 clk_disable_unprepare(venc.tv_dac_clk); in venc_runtime_suspend()
960 if (venc.tv_dac_clk) in venc_runtime_resume()
961 clk_prepare_enable(venc.tv_dac_clk); in venc_runtime_resume()