Lines Matching refs:dssdev
21 struct omap_dss_device dssdev; member
30 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
32 static int tfp410_connect(struct omap_dss_device *dssdev, in tfp410_connect() argument
35 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect()
39 if (omapdss_device_is_connected(dssdev)) in tfp410_connect()
42 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect()
46 dst->src = dssdev; in tfp410_connect()
47 dssdev->dst = dst; in tfp410_connect()
52 static void tfp410_disconnect(struct omap_dss_device *dssdev, in tfp410_disconnect() argument
55 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect()
58 WARN_ON(!omapdss_device_is_connected(dssdev)); in tfp410_disconnect()
59 if (!omapdss_device_is_connected(dssdev)) in tfp410_disconnect()
62 WARN_ON(dst != dssdev->dst); in tfp410_disconnect()
63 if (dst != dssdev->dst) in tfp410_disconnect()
67 dssdev->dst = NULL; in tfp410_disconnect()
69 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect()
72 static int tfp410_enable(struct omap_dss_device *dssdev) in tfp410_enable() argument
74 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_enable()
78 if (!omapdss_device_is_connected(dssdev)) in tfp410_enable()
81 if (omapdss_device_is_enabled(dssdev)) in tfp410_enable()
95 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tfp410_enable()
100 static void tfp410_disable(struct omap_dss_device *dssdev) in tfp410_disable() argument
102 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disable()
105 if (!omapdss_device_is_enabled(dssdev)) in tfp410_disable()
113 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tfp410_disable()
123 static void tfp410_set_timings(struct omap_dss_device *dssdev, in tfp410_set_timings() argument
126 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_set_timings()
132 dssdev->panel.timings = *timings; in tfp410_set_timings()
137 static void tfp410_get_timings(struct omap_dss_device *dssdev, in tfp410_get_timings() argument
140 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_get_timings()
145 static int tfp410_check_timings(struct omap_dss_device *dssdev, in tfp410_check_timings() argument
148 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_check_timings()
198 struct omap_dss_device *dssdev; in tfp410_probe() local
224 dssdev = &ddata->dssdev; in tfp410_probe()
225 dssdev->ops.dvi = &tfp410_dvi_ops; in tfp410_probe()
226 dssdev->dev = &pdev->dev; in tfp410_probe()
227 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in tfp410_probe()
228 dssdev->output_type = OMAP_DISPLAY_TYPE_DVI; in tfp410_probe()
229 dssdev->owner = THIS_MODULE; in tfp410_probe()
230 dssdev->phy.dpi.data_lines = ddata->data_lines; in tfp410_probe()
231 dssdev->port_num = 1; in tfp410_probe()
233 r = omapdss_register_output(dssdev); in tfp410_probe()
249 struct omap_dss_device *dssdev = &ddata->dssdev; in tfp410_remove() local
252 omapdss_unregister_output(&ddata->dssdev); in tfp410_remove()
254 WARN_ON(omapdss_device_is_enabled(dssdev)); in tfp410_remove()
255 if (omapdss_device_is_enabled(dssdev)) in tfp410_remove()
256 tfp410_disable(dssdev); in tfp410_remove()
258 WARN_ON(omapdss_device_is_connected(dssdev)); in tfp410_remove()
259 if (omapdss_device_is_connected(dssdev)) in tfp410_remove()
260 tfp410_disconnect(dssdev, dssdev->dst); in tfp410_remove()