Lines Matching refs:dssdev
19 struct omap_dss_device dssdev; member
29 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
31 static int tfp410_connect(struct omap_dss_device *dssdev, in tfp410_connect() argument
34 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect()
38 if (omapdss_device_is_connected(dssdev)) in tfp410_connect()
41 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect()
45 dst->src = dssdev; in tfp410_connect()
46 dssdev->dst = dst; in tfp410_connect()
51 static void tfp410_disconnect(struct omap_dss_device *dssdev, in tfp410_disconnect() argument
54 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect()
57 WARN_ON(!omapdss_device_is_connected(dssdev)); in tfp410_disconnect()
58 if (!omapdss_device_is_connected(dssdev)) in tfp410_disconnect()
61 WARN_ON(dst != dssdev->dst); in tfp410_disconnect()
62 if (dst != dssdev->dst) in tfp410_disconnect()
66 dssdev->dst = NULL; in tfp410_disconnect()
68 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect()
71 static int tfp410_enable(struct omap_dss_device *dssdev) in tfp410_enable() argument
73 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_enable()
77 if (!omapdss_device_is_connected(dssdev)) in tfp410_enable()
80 if (omapdss_device_is_enabled(dssdev)) in tfp410_enable()
94 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tfp410_enable()
99 static void tfp410_disable(struct omap_dss_device *dssdev) in tfp410_disable() argument
101 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disable()
104 if (!omapdss_device_is_enabled(dssdev)) in tfp410_disable()
112 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tfp410_disable()
122 static void tfp410_set_timings(struct omap_dss_device *dssdev, in tfp410_set_timings() argument
125 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_set_timings()
131 dssdev->panel.timings = *timings; in tfp410_set_timings()
136 static void tfp410_get_timings(struct omap_dss_device *dssdev, in tfp410_get_timings() argument
139 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_get_timings()
144 static int tfp410_check_timings(struct omap_dss_device *dssdev, in tfp410_check_timings() argument
147 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_check_timings()
170 struct omap_dss_device *dssdev; in tfp410_probe() local
199 dssdev = &ddata->dssdev; in tfp410_probe()
200 dssdev->ops.dvi = &tfp410_dvi_ops; in tfp410_probe()
201 dssdev->dev = &pdev->dev; in tfp410_probe()
202 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in tfp410_probe()
203 dssdev->output_type = OMAP_DISPLAY_TYPE_DVI; in tfp410_probe()
204 dssdev->owner = THIS_MODULE; in tfp410_probe()
205 dssdev->phy.dpi.data_lines = ddata->data_lines; in tfp410_probe()
206 dssdev->port_num = 1; in tfp410_probe()
208 r = omapdss_register_output(dssdev); in tfp410_probe()
223 struct omap_dss_device *dssdev = &ddata->dssdev; in tfp410_remove() local
226 omapdss_unregister_output(&ddata->dssdev); in tfp410_remove()
228 WARN_ON(omapdss_device_is_enabled(dssdev)); in tfp410_remove()
229 if (omapdss_device_is_enabled(dssdev)) in tfp410_remove()
230 tfp410_disable(dssdev); in tfp410_remove()
232 WARN_ON(omapdss_device_is_connected(dssdev)); in tfp410_remove()
233 if (omapdss_device_is_connected(dssdev)) in tfp410_remove()
234 tfp410_disconnect(dssdev, dssdev->dst); in tfp410_remove()