Lines Matching refs:dssdev

20 	struct omap_dss_device dssdev;  member
30 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
32 static int tpd_connect(struct omap_dss_device *dssdev, in tpd_connect() argument
35 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_connect()
39 r = in->ops.hdmi->connect(in, dssdev); in tpd_connect()
43 dst->src = dssdev; in tpd_connect()
44 dssdev->dst = dst; in tpd_connect()
55 static void tpd_disconnect(struct omap_dss_device *dssdev, in tpd_disconnect() argument
58 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_disconnect()
61 WARN_ON(dst != dssdev->dst); in tpd_disconnect()
63 if (dst != dssdev->dst) in tpd_disconnect()
69 dssdev->dst = NULL; in tpd_disconnect()
71 in->ops.hdmi->disconnect(in, &ddata->dssdev); in tpd_disconnect()
74 static int tpd_enable(struct omap_dss_device *dssdev) in tpd_enable() argument
76 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_enable()
80 if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) in tpd_enable()
89 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tpd_enable()
94 static void tpd_disable(struct omap_dss_device *dssdev) in tpd_disable() argument
96 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_disable()
99 if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) in tpd_disable()
104 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tpd_disable()
107 static void tpd_set_timings(struct omap_dss_device *dssdev, in tpd_set_timings() argument
110 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_set_timings()
114 dssdev->panel.timings = *timings; in tpd_set_timings()
119 static void tpd_get_timings(struct omap_dss_device *dssdev, in tpd_get_timings() argument
122 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_get_timings()
127 static int tpd_check_timings(struct omap_dss_device *dssdev, in tpd_check_timings() argument
130 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_check_timings()
139 static int tpd_read_edid(struct omap_dss_device *dssdev, in tpd_read_edid() argument
142 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_read_edid()
158 static bool tpd_detect(struct omap_dss_device *dssdev) in tpd_detect() argument
160 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_detect()
165 static int tpd_set_infoframe(struct omap_dss_device *dssdev, in tpd_set_infoframe() argument
168 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_set_infoframe()
174 static int tpd_set_hdmi_mode(struct omap_dss_device *dssdev, in tpd_set_hdmi_mode() argument
177 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_set_hdmi_mode()
219 struct omap_dss_device *dssdev; in tpd_probe() local
265 dssdev = &ddata->dssdev; in tpd_probe()
266 dssdev->ops.hdmi = &tpd_hdmi_ops; in tpd_probe()
267 dssdev->dev = &pdev->dev; in tpd_probe()
268 dssdev->type = OMAP_DISPLAY_TYPE_HDMI; in tpd_probe()
269 dssdev->output_type = OMAP_DISPLAY_TYPE_HDMI; in tpd_probe()
270 dssdev->owner = THIS_MODULE; in tpd_probe()
271 dssdev->port_num = 1; in tpd_probe()
273 r = omapdss_register_output(dssdev); in tpd_probe()
289 struct omap_dss_device *dssdev = &ddata->dssdev; in tpd_remove() local
292 omapdss_unregister_output(&ddata->dssdev); in tpd_remove()
294 WARN_ON(omapdss_device_is_enabled(dssdev)); in tpd_remove()
295 if (omapdss_device_is_enabled(dssdev)) in tpd_remove()
296 tpd_disable(dssdev); in tpd_remove()
298 WARN_ON(omapdss_device_is_connected(dssdev)); in tpd_remove()
299 if (omapdss_device_is_connected(dssdev)) in tpd_remove()
300 tpd_disconnect(dssdev, dssdev->dst); in tpd_remove()