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()
341 if (omapdss_device_is_connected(dssdev)) in tpo_td043_connect()
344 return in->ops.dpi->connect(in, dssdev); in tpo_td043_connect()
347 static void tpo_td043_disconnect(struct omap_dss_device *dssdev) in tpo_td043_disconnect() argument
349 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_disconnect()
352 if (!omapdss_device_is_connected(dssdev)) in tpo_td043_disconnect()
355 in->ops.dpi->disconnect(in, dssdev); in tpo_td043_disconnect()
358 static int tpo_td043_enable(struct omap_dss_device *dssdev) in tpo_td043_enable() argument
360 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_enable()
364 if (!omapdss_device_is_connected(dssdev)) in tpo_td043_enable()
367 if (omapdss_device_is_enabled(dssdev)) in tpo_td043_enable()
390 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tpo_td043_enable()
395 static void tpo_td043_disable(struct omap_dss_device *dssdev) in tpo_td043_disable() argument
397 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_disable()
400 if (!omapdss_device_is_enabled(dssdev)) in tpo_td043_disable()
408 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tpo_td043_disable()
411 static void tpo_td043_set_timings(struct omap_dss_device *dssdev, in tpo_td043_set_timings() argument
414 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_set_timings()
418 dssdev->panel.timings = *timings; in tpo_td043_set_timings()
423 static void tpo_td043_get_timings(struct omap_dss_device *dssdev, in tpo_td043_get_timings() argument
426 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_get_timings()
431 static int tpo_td043_check_timings(struct omap_dss_device *dssdev, in tpo_td043_check_timings() argument
434 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_check_timings()
486 struct omap_dss_device *dssdev; in tpo_td043_probe() local
543 dssdev = &ddata->dssdev; in tpo_td043_probe()
544 dssdev->dev = &spi->dev; in tpo_td043_probe()
545 dssdev->driver = &tpo_td043_ops; in tpo_td043_probe()
546 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in tpo_td043_probe()
547 dssdev->owner = THIS_MODULE; in tpo_td043_probe()
548 dssdev->panel.timings = ddata->videomode; in tpo_td043_probe()
550 r = omapdss_register_display(dssdev); in tpo_td043_probe()
570 struct omap_dss_device *dssdev = &ddata->dssdev; in tpo_td043_remove() local
575 omapdss_unregister_display(dssdev); in tpo_td043_remove()
577 tpo_td043_disable(dssdev); in tpo_td043_remove()
578 tpo_td043_disconnect(dssdev); in tpo_td043_remove()