Lines Matching refs:dssdev
52 struct omap_dss_device dssdev; member
92 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev)
151 static int tpo_td043_set_hmirror(struct omap_dss_device *dssdev, bool enable) in tpo_td043_set_hmirror() argument
153 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_set_hmirror()
160 static bool tpo_td043_get_hmirror(struct omap_dss_device *dssdev) in tpo_td043_get_hmirror() argument
162 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_get_hmirror()
336 static int tpo_td043_connect(struct omap_dss_device *dssdev) in tpo_td043_connect() argument
338 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_connect()
342 if (omapdss_device_is_connected(dssdev)) in tpo_td043_connect()
345 r = in->ops.dpi->connect(in, dssdev); in tpo_td043_connect()
352 static void tpo_td043_disconnect(struct omap_dss_device *dssdev) in tpo_td043_disconnect() argument
354 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_disconnect()
357 if (!omapdss_device_is_connected(dssdev)) in tpo_td043_disconnect()
360 in->ops.dpi->disconnect(in, dssdev); in tpo_td043_disconnect()
363 static int tpo_td043_enable(struct omap_dss_device *dssdev) in tpo_td043_enable() argument
365 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_enable()
369 if (!omapdss_device_is_connected(dssdev)) in tpo_td043_enable()
372 if (omapdss_device_is_enabled(dssdev)) in tpo_td043_enable()
395 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tpo_td043_enable()
400 static void tpo_td043_disable(struct omap_dss_device *dssdev) in tpo_td043_disable() argument
402 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_disable()
405 if (!omapdss_device_is_enabled(dssdev)) in tpo_td043_disable()
413 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tpo_td043_disable()
416 static void tpo_td043_set_timings(struct omap_dss_device *dssdev, in tpo_td043_set_timings() argument
419 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_set_timings()
423 dssdev->panel.timings = *timings; in tpo_td043_set_timings()
428 static void tpo_td043_get_timings(struct omap_dss_device *dssdev, in tpo_td043_get_timings() argument
431 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_get_timings()
436 static int tpo_td043_check_timings(struct omap_dss_device *dssdev, in tpo_td043_check_timings() argument
439 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_check_timings()
491 struct omap_dss_device *dssdev; in tpo_td043_probe() local
548 dssdev = &ddata->dssdev; in tpo_td043_probe()
549 dssdev->dev = &spi->dev; in tpo_td043_probe()
550 dssdev->driver = &tpo_td043_ops; in tpo_td043_probe()
551 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in tpo_td043_probe()
552 dssdev->owner = THIS_MODULE; in tpo_td043_probe()
553 dssdev->panel.timings = ddata->videomode; in tpo_td043_probe()
555 r = omapdss_register_display(dssdev); in tpo_td043_probe()
575 struct omap_dss_device *dssdev = &ddata->dssdev; in tpo_td043_remove() local
580 omapdss_unregister_display(dssdev); in tpo_td043_remove()
582 tpo_td043_disable(dssdev); in tpo_td043_remove()
583 tpo_td043_disconnect(dssdev); in tpo_td043_remove()