Lines Matching refs:venc
256 } venc; variable
260 __raw_writel(val, venc.base + idx); in venc_write_reg()
265 u32 l = __raw_readl(venc.base + idx); in venc_read_reg()
284 venc.wss_data); in venc_write_config()
350 r = pm_runtime_resume_and_get(&venc.pdev->dev); in venc_runtime_get()
362 r = pm_runtime_put_sync(&venc.pdev->dev); in venc_runtime_put()
381 struct omap_overlay_manager *mgr = venc.output.manager; in venc_power_on()
390 venc_write_config(venc_timings_to_config(&venc.timings)); in venc_power_on()
392 dss_set_venc_output(venc.type); in venc_power_on()
397 if (venc.type == OMAP_DSS_VENC_TYPE_COMPOSITE) in venc_power_on()
402 if (venc.invert_polarity == false) in venc_power_on()
407 dss_mgr_set_timings(mgr, &venc.timings); in venc_power_on()
409 r = regulator_enable(venc.vdda_dac_reg); in venc_power_on()
420 regulator_disable(venc.vdda_dac_reg); in venc_power_on()
432 struct omap_overlay_manager *mgr = venc.output.manager; in venc_power_off()
439 regulator_disable(venc.vdda_dac_reg); in venc_power_off()
446 struct omap_dss_device *out = &venc.output; in venc_display_enable()
451 mutex_lock(&venc.venc_lock); in venc_display_enable()
463 venc.wss_data = 0; in venc_display_enable()
465 mutex_unlock(&venc.venc_lock); in venc_display_enable()
469 mutex_unlock(&venc.venc_lock); in venc_display_enable()
477 mutex_lock(&venc.venc_lock); in venc_display_disable()
481 mutex_unlock(&venc.venc_lock); in venc_display_disable()
489 mutex_lock(&venc.venc_lock); in venc_set_timings()
492 if (memcmp(&venc.timings, timings, sizeof(*timings))) in venc_set_timings()
493 venc.wss_data = 0; in venc_set_timings()
495 venc.timings = *timings; in venc_set_timings()
499 mutex_unlock(&venc.venc_lock); in venc_set_timings()
519 mutex_lock(&venc.venc_lock); in venc_get_timings()
521 *timings = venc.timings; in venc_get_timings()
523 mutex_unlock(&venc.venc_lock); in venc_get_timings()
529 return (venc.wss_data >> 8) ^ 0xfffff; in venc_get_wss()
539 mutex_lock(&venc.venc_lock); in venc_set_wss()
541 config = venc_timings_to_config(&venc.timings); in venc_set_wss()
544 venc.wss_data = (wss ^ 0xfffff) << 8; in venc_set_wss()
551 venc.wss_data); in venc_set_wss()
556 mutex_unlock(&venc.venc_lock); in venc_set_wss()
564 mutex_lock(&venc.venc_lock); in venc_set_type()
566 venc.type = type; in venc_set_type()
568 mutex_unlock(&venc.venc_lock); in venc_set_type()
574 mutex_lock(&venc.venc_lock); in venc_invert_vid_out_polarity()
576 venc.invert_polarity = invert_polarity; in venc_invert_vid_out_polarity()
578 mutex_unlock(&venc.venc_lock); in venc_invert_vid_out_polarity()
585 if (venc.vdda_dac_reg != NULL) in venc_init_regulator()
588 if (venc.pdev->dev.of_node) in venc_init_regulator()
589 vdda_dac = devm_regulator_get(&venc.pdev->dev, "vdda"); in venc_init_regulator()
591 vdda_dac = devm_regulator_get(&venc.pdev->dev, "vdda_dac"); in venc_init_regulator()
599 venc.vdda_dac_reg = vdda_dac; in venc_init_regulator()
672 venc.tv_dac_clk = clk; in venc_get_clocks()
740 struct omap_dss_device *out = &venc.output; in venc_init_output()
755 struct omap_dss_device *out = &venc.output; in venc_uninit_output()
771 venc.invert_polarity = of_property_read_bool(ep, "ti,invert-polarity"); in venc_probe_of()
782 venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE; in venc_probe_of()
785 venc.type = OMAP_DSS_VENC_TYPE_SVIDEO; in venc_probe_of()
810 venc.pdev = pdev; in venc_bind()
812 mutex_init(&venc.venc_lock); in venc_bind()
814 venc.wss_data = 0; in venc_bind()
816 venc_mem = platform_get_resource(venc.pdev, IORESOURCE_MEM, 0); in venc_bind()
822 venc.base = devm_ioremap(&pdev->dev, venc_mem->start, in venc_bind()
824 if (!venc.base) { in venc_bind()
891 clk_disable_unprepare(venc.tv_dac_clk); in venc_runtime_suspend()
906 clk_prepare_enable(venc.tv_dac_clk); in venc_runtime_resume()