• Home
  • Raw
  • Download

Lines Matching refs:dssdev

18 	struct omap_dss_device dssdev;  member
27 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
29 static int tfp410_connect(struct omap_dss_device *dssdev, in tfp410_connect() argument
32 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect()
36 if (omapdss_device_is_connected(dssdev)) in tfp410_connect()
39 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect()
43 dst->src = dssdev; in tfp410_connect()
44 dssdev->dst = dst; in tfp410_connect()
49 static void tfp410_disconnect(struct omap_dss_device *dssdev, in tfp410_disconnect() argument
52 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect()
55 WARN_ON(!omapdss_device_is_connected(dssdev)); in tfp410_disconnect()
56 if (!omapdss_device_is_connected(dssdev)) in tfp410_disconnect()
59 WARN_ON(dst != dssdev->dst); in tfp410_disconnect()
60 if (dst != dssdev->dst) in tfp410_disconnect()
64 dssdev->dst = NULL; in tfp410_disconnect()
66 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect()
69 static int tfp410_enable(struct omap_dss_device *dssdev) in tfp410_enable() argument
71 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_enable()
75 if (!omapdss_device_is_connected(dssdev)) in tfp410_enable()
78 if (omapdss_device_is_enabled(dssdev)) in tfp410_enable()
92 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tfp410_enable()
97 static void tfp410_disable(struct omap_dss_device *dssdev) in tfp410_disable() argument
99 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disable()
102 if (!omapdss_device_is_enabled(dssdev)) in tfp410_disable()
110 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tfp410_disable()
120 static void tfp410_set_timings(struct omap_dss_device *dssdev, in tfp410_set_timings() argument
123 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_set_timings()
129 dssdev->panel.timings = *timings; in tfp410_set_timings()
134 static void tfp410_get_timings(struct omap_dss_device *dssdev, in tfp410_get_timings() argument
137 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_get_timings()
142 static int tfp410_check_timings(struct omap_dss_device *dssdev, in tfp410_check_timings() argument
145 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_check_timings()
195 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->phy.dpi.data_lines = ddata->data_lines; in tfp410_probe()
228 dssdev->port_num = 1; in tfp410_probe()
230 r = omapdss_register_output(dssdev); in tfp410_probe()
246 struct omap_dss_device *dssdev = &ddata->dssdev; in tfp410_remove() local
249 omapdss_unregister_output(&ddata->dssdev); in tfp410_remove()
251 WARN_ON(omapdss_device_is_enabled(dssdev)); in tfp410_remove()
252 if (omapdss_device_is_enabled(dssdev)) in tfp410_remove()
253 tfp410_disable(dssdev); in tfp410_remove()
255 WARN_ON(omapdss_device_is_connected(dssdev)); in tfp410_remove()
256 if (omapdss_device_is_connected(dssdev)) in tfp410_remove()
257 tfp410_disconnect(dssdev, dssdev->dst); in tfp410_remove()