Lines Matching refs:dssdev
57 struct omap_dss_device dssdev; member
97 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev)
156 static int tpo_td043_set_hmirror(struct omap_dss_device *dssdev, bool enable) in tpo_td043_set_hmirror() argument
158 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_set_hmirror()
165 static bool tpo_td043_get_hmirror(struct omap_dss_device *dssdev) in tpo_td043_get_hmirror() argument
167 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_get_hmirror()
341 static int tpo_td043_connect(struct omap_dss_device *dssdev) in tpo_td043_connect() argument
343 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_connect()
347 if (omapdss_device_is_connected(dssdev)) in tpo_td043_connect()
350 r = in->ops.dpi->connect(in, dssdev); in tpo_td043_connect()
357 static void tpo_td043_disconnect(struct omap_dss_device *dssdev) in tpo_td043_disconnect() argument
359 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_disconnect()
362 if (!omapdss_device_is_connected(dssdev)) in tpo_td043_disconnect()
365 in->ops.dpi->disconnect(in, dssdev); in tpo_td043_disconnect()
368 static int tpo_td043_enable(struct omap_dss_device *dssdev) in tpo_td043_enable() argument
370 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_enable()
374 if (!omapdss_device_is_connected(dssdev)) in tpo_td043_enable()
377 if (omapdss_device_is_enabled(dssdev)) in tpo_td043_enable()
400 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tpo_td043_enable()
405 static void tpo_td043_disable(struct omap_dss_device *dssdev) in tpo_td043_disable() argument
407 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_disable()
410 if (!omapdss_device_is_enabled(dssdev)) in tpo_td043_disable()
418 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tpo_td043_disable()
421 static void tpo_td043_set_timings(struct omap_dss_device *dssdev, in tpo_td043_set_timings() argument
424 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_set_timings()
428 dssdev->panel.timings = *timings; in tpo_td043_set_timings()
433 static void tpo_td043_get_timings(struct omap_dss_device *dssdev, in tpo_td043_get_timings() argument
436 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_get_timings()
441 static int tpo_td043_check_timings(struct omap_dss_device *dssdev, in tpo_td043_check_timings() argument
444 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_check_timings()
472 struct omap_dss_device *dssdev, *in; in tpo_td043_probe_pdata() local
488 dssdev = &ddata->dssdev; in tpo_td043_probe_pdata()
489 dssdev->name = pdata->name; in tpo_td043_probe_pdata()
522 struct omap_dss_device *dssdev; in tpo_td043_probe() local
584 dssdev = &ddata->dssdev; in tpo_td043_probe()
585 dssdev->dev = &spi->dev; in tpo_td043_probe()
586 dssdev->driver = &tpo_td043_ops; in tpo_td043_probe()
587 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in tpo_td043_probe()
588 dssdev->owner = THIS_MODULE; in tpo_td043_probe()
589 dssdev->panel.timings = ddata->videomode; in tpo_td043_probe()
591 r = omapdss_register_display(dssdev); in tpo_td043_probe()
611 struct omap_dss_device *dssdev = &ddata->dssdev; in tpo_td043_remove() local
616 omapdss_unregister_display(dssdev); in tpo_td043_remove()
618 tpo_td043_disable(dssdev); in tpo_td043_remove()
619 tpo_td043_disconnect(dssdev); in tpo_td043_remove()