Lines Matching refs:dssdev
18 struct omap_dss_device dssdev; member
44 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
46 static int tvc_connect(struct omap_dss_device *dssdev) in tvc_connect() argument
48 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_connect()
54 if (omapdss_device_is_connected(dssdev)) in tvc_connect()
57 r = in->ops.atv->connect(in, dssdev); in tvc_connect()
64 static void tvc_disconnect(struct omap_dss_device *dssdev) in tvc_disconnect() argument
66 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disconnect()
71 if (!omapdss_device_is_connected(dssdev)) in tvc_disconnect()
74 in->ops.atv->disconnect(in, dssdev); in tvc_disconnect()
77 static int tvc_enable(struct omap_dss_device *dssdev) in tvc_enable() argument
79 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_enable()
85 if (!omapdss_device_is_connected(dssdev)) in tvc_enable()
88 if (omapdss_device_is_enabled(dssdev)) in tvc_enable()
104 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in tvc_enable()
109 static void tvc_disable(struct omap_dss_device *dssdev) in tvc_disable() argument
111 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disable()
116 if (!omapdss_device_is_enabled(dssdev)) in tvc_disable()
121 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in tvc_disable()
124 static void tvc_set_timings(struct omap_dss_device *dssdev, in tvc_set_timings() argument
127 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_set_timings()
131 dssdev->panel.timings = *timings; in tvc_set_timings()
136 static void tvc_get_timings(struct omap_dss_device *dssdev, in tvc_get_timings() argument
139 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_get_timings()
144 static int tvc_check_timings(struct omap_dss_device *dssdev, in tvc_check_timings() argument
147 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_check_timings()
153 static u32 tvc_get_wss(struct omap_dss_device *dssdev) in tvc_get_wss() argument
155 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_get_wss()
161 static int tvc_set_wss(struct omap_dss_device *dssdev, u32 wss) in tvc_set_wss() argument
163 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_set_wss()
190 struct omap_dss_device *in, *dssdev; in tvc_probe_pdata() local
204 dssdev = &ddata->dssdev; in tvc_probe_pdata()
205 dssdev->name = pdata->name; in tvc_probe_pdata()
230 struct omap_dss_device *dssdev; in tvc_probe() local
254 dssdev = &ddata->dssdev; in tvc_probe()
255 dssdev->driver = &tvc_driver; in tvc_probe()
256 dssdev->dev = &pdev->dev; in tvc_probe()
257 dssdev->type = OMAP_DISPLAY_TYPE_VENC; in tvc_probe()
258 dssdev->owner = THIS_MODULE; in tvc_probe()
259 dssdev->panel.timings = tvc_pal_timings; in tvc_probe()
261 r = omapdss_register_display(dssdev); in tvc_probe()
276 struct omap_dss_device *dssdev = &ddata->dssdev; in tvc_remove() local
279 omapdss_unregister_display(&ddata->dssdev); in tvc_remove()
281 tvc_disable(dssdev); in tvc_remove()
282 tvc_disconnect(dssdev); in tvc_remove()