Lines Matching refs:dssdev

23 	struct omap_dss_device dssdev;  member
156 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev)
158 static int td028ttec1_panel_connect(struct omap_dss_device *dssdev) in td028ttec1_panel_connect() argument
160 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_connect()
164 if (omapdss_device_is_connected(dssdev)) in td028ttec1_panel_connect()
167 r = in->ops.dpi->connect(in, dssdev); in td028ttec1_panel_connect()
174 static void td028ttec1_panel_disconnect(struct omap_dss_device *dssdev) in td028ttec1_panel_disconnect() argument
176 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_disconnect()
179 if (!omapdss_device_is_connected(dssdev)) in td028ttec1_panel_disconnect()
182 in->ops.dpi->disconnect(in, dssdev); in td028ttec1_panel_disconnect()
185 static int td028ttec1_panel_enable(struct omap_dss_device *dssdev) in td028ttec1_panel_enable() argument
187 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_enable()
191 if (!omapdss_device_is_connected(dssdev)) in td028ttec1_panel_enable()
194 if (omapdss_device_is_enabled(dssdev)) in td028ttec1_panel_enable()
205 dev_dbg(dssdev->dev, "td028ttec1_panel_enable() - state %d\n", in td028ttec1_panel_enable()
206 dssdev->state); in td028ttec1_panel_enable()
217 dev_warn(dssdev->dev, "transfer error\n"); in td028ttec1_panel_enable()
288 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in td028ttec1_panel_enable()
295 static void td028ttec1_panel_disable(struct omap_dss_device *dssdev) in td028ttec1_panel_disable() argument
297 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_disable()
300 if (!omapdss_device_is_enabled(dssdev)) in td028ttec1_panel_disable()
303 dev_dbg(dssdev->dev, "td028ttec1_panel_disable()\n"); in td028ttec1_panel_disable()
312 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in td028ttec1_panel_disable()
315 static void td028ttec1_panel_set_timings(struct omap_dss_device *dssdev, in td028ttec1_panel_set_timings() argument
318 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_set_timings()
322 dssdev->panel.timings = *timings; in td028ttec1_panel_set_timings()
327 static void td028ttec1_panel_get_timings(struct omap_dss_device *dssdev, in td028ttec1_panel_get_timings() argument
330 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_get_timings()
335 static int td028ttec1_panel_check_timings(struct omap_dss_device *dssdev, in td028ttec1_panel_check_timings() argument
338 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_check_timings()
376 struct omap_dss_device *dssdev; in td028ttec1_panel_probe() local
407 dssdev = &ddata->dssdev; in td028ttec1_panel_probe()
408 dssdev->dev = &spi->dev; in td028ttec1_panel_probe()
409 dssdev->driver = &td028ttec1_ops; in td028ttec1_panel_probe()
410 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in td028ttec1_panel_probe()
411 dssdev->owner = THIS_MODULE; in td028ttec1_panel_probe()
412 dssdev->panel.timings = ddata->videomode; in td028ttec1_panel_probe()
413 dssdev->phy.dpi.data_lines = ddata->data_lines; in td028ttec1_panel_probe()
415 r = omapdss_register_display(dssdev); in td028ttec1_panel_probe()
431 struct omap_dss_device *dssdev = &ddata->dssdev; in td028ttec1_panel_remove() local
436 omapdss_unregister_display(dssdev); in td028ttec1_panel_remove()
438 td028ttec1_panel_disable(dssdev); in td028ttec1_panel_remove()
439 td028ttec1_panel_disconnect(dssdev); in td028ttec1_panel_remove()