Lines Matching +full:in +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
18 struct omap_dss_device *in; member
48 struct omap_dss_device *in = ddata->in; in tvc_connect() local
50 dev_dbg(ddata->dev, "connect\n"); in tvc_connect()
55 return in->ops.atv->connect(in, dssdev); in tvc_connect()
61 struct omap_dss_device *in = ddata->in; in tvc_disconnect() local
63 dev_dbg(ddata->dev, "disconnect\n"); in tvc_disconnect()
68 in->ops.atv->disconnect(in, dssdev); in tvc_disconnect()
74 struct omap_dss_device *in = ddata->in; in tvc_enable() local
77 dev_dbg(ddata->dev, "enable\n"); in tvc_enable()
80 return -ENODEV; in tvc_enable()
85 in->ops.atv->set_timings(in, &ddata->timings); in tvc_enable()
87 if (!ddata->dev->of_node) { in tvc_enable()
88 in->ops.atv->set_type(in, OMAP_DSS_VENC_TYPE_COMPOSITE); in tvc_enable()
90 in->ops.atv->invert_vid_out_polarity(in, in tvc_enable()
91 ddata->invert_polarity); in tvc_enable()
94 r = in->ops.atv->enable(in); in tvc_enable()
98 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tvc_enable()
106 struct omap_dss_device *in = ddata->in; in tvc_disable() local
108 dev_dbg(ddata->dev, "disable\n"); in tvc_disable()
113 in->ops.atv->disable(in); in tvc_disable()
115 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tvc_disable()
122 struct omap_dss_device *in = ddata->in; in tvc_set_timings() local
124 ddata->timings = *timings; in tvc_set_timings()
125 dssdev->panel.timings = *timings; in tvc_set_timings()
127 in->ops.atv->set_timings(in, timings); in tvc_set_timings()
135 *timings = ddata->timings; in tvc_get_timings()
142 struct omap_dss_device *in = ddata->in; in tvc_check_timings() local
144 return in->ops.atv->check_timings(in, timings); in tvc_check_timings()
150 struct omap_dss_device *in = ddata->in; in tvc_get_wss() local
152 return in->ops.atv->get_wss(in); in tvc_get_wss()
158 struct omap_dss_device *in = ddata->in; in tvc_set_wss() local
160 return in->ops.atv->set_wss(in, wss); in tvc_set_wss()
186 if (!pdev->dev.of_node) in tvc_probe()
187 return -ENODEV; in tvc_probe()
189 ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); in tvc_probe()
191 return -ENOMEM; in tvc_probe()
194 ddata->dev = &pdev->dev; in tvc_probe()
196 ddata->in = omapdss_of_find_source_for_first_ep(pdev->dev.of_node); in tvc_probe()
197 r = PTR_ERR_OR_ZERO(ddata->in); in tvc_probe()
199 dev_err(&pdev->dev, "failed to find video source\n"); in tvc_probe()
203 ddata->timings = tvc_pal_timings; in tvc_probe()
205 dssdev = &ddata->dssdev; in tvc_probe()
206 dssdev->driver = &tvc_driver; in tvc_probe()
207 dssdev->dev = &pdev->dev; in tvc_probe()
208 dssdev->type = OMAP_DISPLAY_TYPE_VENC; in tvc_probe()
209 dssdev->owner = THIS_MODULE; in tvc_probe()
210 dssdev->panel.timings = tvc_pal_timings; in tvc_probe()
214 dev_err(&pdev->dev, "Failed to register panel\n"); in tvc_probe()
220 omap_dss_put_device(ddata->in); in tvc_probe()
227 struct omap_dss_device *dssdev = &ddata->dssdev; in tvc_remove()
228 struct omap_dss_device *in = ddata->in; in tvc_remove() local
230 omapdss_unregister_display(&ddata->dssdev); in tvc_remove()
235 omap_dss_put_device(in); in tvc_remove()
239 { .compatible = "omapdss,svideo-connector", },
240 { .compatible = "omapdss,composite-video-connector", },
250 .name = "connector-analog-tv",