Lines Matching +full:in +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
39 struct omap_dss_device *in; member
53 struct omap_dss_device *in = ddata->in; in hdmic_connect() local
55 dev_dbg(ddata->dev, "connect\n"); in hdmic_connect()
60 return in->ops.hdmi->connect(in, dssdev); in hdmic_connect()
66 struct omap_dss_device *in = ddata->in; in hdmic_disconnect() local
68 dev_dbg(ddata->dev, "disconnect\n"); in hdmic_disconnect()
73 in->ops.hdmi->disconnect(in, dssdev); in hdmic_disconnect()
79 struct omap_dss_device *in = ddata->in; in hdmic_enable() local
82 dev_dbg(ddata->dev, "enable\n"); in hdmic_enable()
85 return -ENODEV; in hdmic_enable()
90 in->ops.hdmi->set_timings(in, &ddata->timings); in hdmic_enable()
92 r = in->ops.hdmi->enable(in); in hdmic_enable()
96 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in hdmic_enable()
104 struct omap_dss_device *in = ddata->in; in hdmic_disable() local
106 dev_dbg(ddata->dev, "disable\n"); in hdmic_disable()
111 in->ops.hdmi->disable(in); in hdmic_disable()
113 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in hdmic_disable()
120 struct omap_dss_device *in = ddata->in; in hdmic_set_timings() local
122 ddata->timings = *timings; in hdmic_set_timings()
123 dssdev->panel.timings = *timings; in hdmic_set_timings()
125 in->ops.hdmi->set_timings(in, timings); in hdmic_set_timings()
133 *timings = ddata->timings; in hdmic_get_timings()
140 struct omap_dss_device *in = ddata->in; in hdmic_check_timings() local
142 return in->ops.hdmi->check_timings(in, timings); in hdmic_check_timings()
149 struct omap_dss_device *in = ddata->in; in hdmic_read_edid() local
151 return in->ops.hdmi->read_edid(in, edid, len); in hdmic_read_edid()
157 struct omap_dss_device *in = ddata->in; in hdmic_detect() local
159 if (ddata->hpd_gpio) in hdmic_detect()
160 return gpiod_get_value_cansleep(ddata->hpd_gpio); in hdmic_detect()
162 return in->ops.hdmi->detect(in); in hdmic_detect()
168 struct omap_dss_device *in = ddata->in; in hdmic_set_hdmi_mode() local
170 return in->ops.hdmi->set_hdmi_mode(in, hdmi_mode); in hdmic_set_hdmi_mode()
177 struct omap_dss_device *in = ddata->in; in hdmic_set_infoframe() local
179 return in->ops.hdmi->set_infoframe(in, avi); in hdmic_set_infoframe()
207 if (!pdev->dev.of_node) in hdmic_probe()
208 return -ENODEV; in hdmic_probe()
210 ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); in hdmic_probe()
212 return -ENOMEM; in hdmic_probe()
215 ddata->dev = &pdev->dev; in hdmic_probe()
217 ddata->hpd_gpio = devm_gpiod_get_optional(&pdev->dev, "hpd", GPIOD_IN); in hdmic_probe()
218 r = PTR_ERR_OR_ZERO(ddata->hpd_gpio); in hdmic_probe()
222 gpiod_set_consumer_name(ddata->hpd_gpio, "hdmi_hpd"); in hdmic_probe()
224 ddata->in = omapdss_of_find_source_for_first_ep(pdev->dev.of_node); in hdmic_probe()
225 r = PTR_ERR_OR_ZERO(ddata->in); in hdmic_probe()
227 dev_err(&pdev->dev, "failed to find video source\n"); in hdmic_probe()
231 ddata->timings = hdmic_default_timings; in hdmic_probe()
233 dssdev = &ddata->dssdev; in hdmic_probe()
234 dssdev->driver = &hdmic_driver; in hdmic_probe()
235 dssdev->dev = &pdev->dev; in hdmic_probe()
236 dssdev->type = OMAP_DISPLAY_TYPE_HDMI; in hdmic_probe()
237 dssdev->owner = THIS_MODULE; in hdmic_probe()
238 dssdev->panel.timings = hdmic_default_timings; in hdmic_probe()
242 dev_err(&pdev->dev, "Failed to register panel\n"); in hdmic_probe()
248 omap_dss_put_device(ddata->in); in hdmic_probe()
255 struct omap_dss_device *dssdev = &ddata->dssdev; in hdmic_remove()
256 struct omap_dss_device *in = ddata->in; in hdmic_remove() local
258 omapdss_unregister_display(&ddata->dssdev); in hdmic_remove()
263 omap_dss_put_device(in); in hdmic_remove()
267 { .compatible = "omapdss,hdmi-connector", },
277 .name = "connector-hdmi",