Lines Matching refs:dssdev
22 struct omap_dss_device dssdev; member
31 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
33 static int tfp410_connect(struct omap_dss_device *dssdev, in tfp410_connect() argument
36 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect()
40 if (omapdss_device_is_connected(dssdev)) in tfp410_connect()
43 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect()
47 dst->src = dssdev; in tfp410_connect()
48 dssdev->dst = dst; in tfp410_connect()
53 static void tfp410_disconnect(struct omap_dss_device *dssdev, in tfp410_disconnect() argument
56 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect()
59 WARN_ON(!omapdss_device_is_connected(dssdev)); in tfp410_disconnect()
60 if (!omapdss_device_is_connected(dssdev)) in tfp410_disconnect()
63 WARN_ON(dst != dssdev->dst); in tfp410_disconnect()
64 if (dst != dssdev->dst) in tfp410_disconnect()
68 dssdev->dst = NULL; in tfp410_disconnect()
70 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect()
73 static int tfp410_enable(struct omap_dss_device *dssdev) in tfp410_enable() argument
75 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_enable()
79 if (!omapdss_device_is_connected(dssdev)) in tfp410_enable()
82 if (omapdss_device_is_enabled(dssdev)) in tfp410_enable()
96 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tfp410_enable()
101 static void tfp410_disable(struct omap_dss_device *dssdev) in tfp410_disable() argument
103 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disable()
106 if (!omapdss_device_is_enabled(dssdev)) in tfp410_disable()
114 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tfp410_disable()
124 static void tfp410_set_timings(struct omap_dss_device *dssdev, in tfp410_set_timings() argument
127 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_set_timings()
133 dssdev->panel.timings = *timings; in tfp410_set_timings()
138 static void tfp410_get_timings(struct omap_dss_device *dssdev, in tfp410_get_timings() argument
141 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_get_timings()
146 static int tfp410_check_timings(struct omap_dss_device *dssdev, in tfp410_check_timings() argument
149 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_check_timings()
173 struct omap_dss_device *dssdev, *in; in tfp410_probe_pdata() local
189 dssdev = &ddata->dssdev; in tfp410_probe_pdata()
190 dssdev->name = pdata->name; in tfp410_probe_pdata()
225 struct omap_dss_device *dssdev; in tfp410_probe() local
256 dssdev = &ddata->dssdev; in tfp410_probe()
257 dssdev->ops.dvi = &tfp410_dvi_ops; in tfp410_probe()
258 dssdev->dev = &pdev->dev; in tfp410_probe()
259 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in tfp410_probe()
260 dssdev->output_type = OMAP_DISPLAY_TYPE_DVI; in tfp410_probe()
261 dssdev->owner = THIS_MODULE; in tfp410_probe()
262 dssdev->phy.dpi.data_lines = ddata->data_lines; in tfp410_probe()
263 dssdev->port_num = 1; in tfp410_probe()
265 r = omapdss_register_output(dssdev); in tfp410_probe()
281 struct omap_dss_device *dssdev = &ddata->dssdev; in tfp410_remove() local
284 omapdss_unregister_output(&ddata->dssdev); in tfp410_remove()
286 WARN_ON(omapdss_device_is_enabled(dssdev)); in tfp410_remove()
287 if (omapdss_device_is_enabled(dssdev)) in tfp410_remove()
288 tfp410_disable(dssdev); in tfp410_remove()
290 WARN_ON(omapdss_device_is_connected(dssdev)); in tfp410_remove()
291 if (omapdss_device_is_connected(dssdev)) in tfp410_remove()
292 tfp410_disconnect(dssdev, dssdev->dst); in tfp410_remove()