Lines Matching refs:dssdev
21 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 in = omapdss_of_find_source_for_first_ep(dssdev->dev->of_node); in tfp410_connect()
43 dev_err(dssdev->dev, "failed to find video source\n"); in tfp410_connect()
47 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect()
53 dst->src = dssdev; in tfp410_connect()
54 dssdev->dst = dst; in tfp410_connect()
60 static void tfp410_disconnect(struct omap_dss_device *dssdev, in tfp410_disconnect() argument
63 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect()
66 WARN_ON(!omapdss_device_is_connected(dssdev)); in tfp410_disconnect()
67 if (!omapdss_device_is_connected(dssdev)) in tfp410_disconnect()
70 WARN_ON(dst != dssdev->dst); in tfp410_disconnect()
71 if (dst != dssdev->dst) in tfp410_disconnect()
75 dssdev->dst = NULL; in tfp410_disconnect()
77 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect()
83 static int tfp410_enable(struct omap_dss_device *dssdev) in tfp410_enable() argument
85 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_enable()
89 if (!omapdss_device_is_connected(dssdev)) in tfp410_enable()
92 if (omapdss_device_is_enabled(dssdev)) in tfp410_enable()
104 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tfp410_enable()
109 static void tfp410_disable(struct omap_dss_device *dssdev) in tfp410_disable() argument
111 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disable()
114 if (!omapdss_device_is_enabled(dssdev)) in tfp410_disable()
122 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tfp410_disable()
131 static void tfp410_set_timings(struct omap_dss_device *dssdev, in tfp410_set_timings() argument
134 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_set_timings()
140 dssdev->panel.vm = *vm; in tfp410_set_timings()
145 static void tfp410_get_timings(struct omap_dss_device *dssdev, in tfp410_get_timings() argument
148 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_get_timings()
153 static int tfp410_check_timings(struct omap_dss_device *dssdev, in tfp410_check_timings() argument
156 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_check_timings()
198 struct omap_dss_device *dssdev; in tfp410_probe() local
221 dssdev = &ddata->dssdev; in tfp410_probe()
222 dssdev->ops.dvi = &tfp410_dvi_ops; in tfp410_probe()
223 dssdev->dev = &pdev->dev; in tfp410_probe()
224 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in tfp410_probe()
225 dssdev->output_type = OMAP_DISPLAY_TYPE_DVI; in tfp410_probe()
226 dssdev->owner = THIS_MODULE; in tfp410_probe()
227 dssdev->port_num = 1; in tfp410_probe()
229 r = omapdss_register_output(dssdev); in tfp410_probe()
241 struct omap_dss_device *dssdev = &ddata->dssdev; in tfp410_remove() local
243 omapdss_unregister_output(&ddata->dssdev); in tfp410_remove()
245 WARN_ON(omapdss_device_is_enabled(dssdev)); in tfp410_remove()
246 if (omapdss_device_is_enabled(dssdev)) in tfp410_remove()
247 tfp410_disable(dssdev); in tfp410_remove()
249 WARN_ON(omapdss_device_is_connected(dssdev)); in tfp410_remove()
250 if (omapdss_device_is_connected(dssdev)) in tfp410_remove()
251 tfp410_disconnect(dssdev, dssdev->dst); in tfp410_remove()