Lines Matching refs:dssdev
17 struct omap_dss_device dssdev; member
43 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
45 static int tvc_connect(struct omap_dss_device *dssdev) in tvc_connect() argument
47 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_connect()
52 if (omapdss_device_is_connected(dssdev)) in tvc_connect()
55 return in->ops.atv->connect(in, dssdev); in tvc_connect()
58 static void tvc_disconnect(struct omap_dss_device *dssdev) in tvc_disconnect() argument
60 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disconnect()
65 if (!omapdss_device_is_connected(dssdev)) in tvc_disconnect()
68 in->ops.atv->disconnect(in, dssdev); in tvc_disconnect()
71 static int tvc_enable(struct omap_dss_device *dssdev) in tvc_enable() argument
73 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_enable()
79 if (!omapdss_device_is_connected(dssdev)) in tvc_enable()
82 if (omapdss_device_is_enabled(dssdev)) in tvc_enable()
98 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tvc_enable()
103 static void tvc_disable(struct omap_dss_device *dssdev) in tvc_disable() argument
105 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disable()
110 if (!omapdss_device_is_enabled(dssdev)) in tvc_disable()
115 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tvc_disable()
118 static void tvc_set_timings(struct omap_dss_device *dssdev, in tvc_set_timings() argument
121 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_set_timings()
125 dssdev->panel.timings = *timings; in tvc_set_timings()
130 static void tvc_get_timings(struct omap_dss_device *dssdev, in tvc_get_timings() argument
133 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_get_timings()
138 static int tvc_check_timings(struct omap_dss_device *dssdev, in tvc_check_timings() argument
141 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_check_timings()
147 static u32 tvc_get_wss(struct omap_dss_device *dssdev) in tvc_get_wss() argument
149 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_get_wss()
155 static int tvc_set_wss(struct omap_dss_device *dssdev, u32 wss) in tvc_set_wss() argument
157 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_set_wss()
183 struct omap_dss_device *dssdev; in tvc_probe() local
205 dssdev = &ddata->dssdev; in tvc_probe()
206 dssdev->driver = &tvc_driver; in tvc_probe()
207 dssdev->dev = &pdev->dev; in tvc_probe()
208 dssdev->type = OMAP_DISPLAY_TYPE_VENC; in tvc_probe()
209 dssdev->owner = THIS_MODULE; in tvc_probe()
210 dssdev->panel.timings = tvc_pal_timings; in tvc_probe()
212 r = omapdss_register_display(dssdev); in tvc_probe()
227 struct omap_dss_device *dssdev = &ddata->dssdev; in tvc_remove() local
230 omapdss_unregister_display(&ddata->dssdev); in tvc_remove()
232 tvc_disable(dssdev); in tvc_remove()
233 tvc_disconnect(dssdev); in tvc_remove()