Lines Matching refs:dssdev

20 	struct omap_dss_device	dssdev;  member
83 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev)
116 static int nec_8048_connect(struct omap_dss_device *dssdev) in nec_8048_connect() argument
118 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_connect()
121 if (omapdss_device_is_connected(dssdev)) in nec_8048_connect()
124 return in->ops.dpi->connect(in, dssdev); in nec_8048_connect()
127 static void nec_8048_disconnect(struct omap_dss_device *dssdev) in nec_8048_disconnect() argument
129 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_disconnect()
132 if (!omapdss_device_is_connected(dssdev)) in nec_8048_disconnect()
135 in->ops.dpi->disconnect(in, dssdev); in nec_8048_disconnect()
138 static int nec_8048_enable(struct omap_dss_device *dssdev) in nec_8048_enable() argument
140 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_enable()
144 if (!omapdss_device_is_connected(dssdev)) in nec_8048_enable()
147 if (omapdss_device_is_enabled(dssdev)) in nec_8048_enable()
161 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in nec_8048_enable()
166 static void nec_8048_disable(struct omap_dss_device *dssdev) in nec_8048_disable() argument
168 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_disable()
171 if (!omapdss_device_is_enabled(dssdev)) in nec_8048_disable()
179 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in nec_8048_disable()
182 static void nec_8048_set_timings(struct omap_dss_device *dssdev, in nec_8048_set_timings() argument
185 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_set_timings()
189 dssdev->panel.timings = *timings; in nec_8048_set_timings()
194 static void nec_8048_get_timings(struct omap_dss_device *dssdev, in nec_8048_get_timings() argument
197 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_get_timings()
202 static int nec_8048_check_timings(struct omap_dss_device *dssdev, in nec_8048_check_timings() argument
205 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_check_timings()
257 struct omap_dss_device *dssdev; in nec_8048_probe() local
304 dssdev = &ddata->dssdev; in nec_8048_probe()
305 dssdev->dev = &spi->dev; in nec_8048_probe()
306 dssdev->driver = &nec_8048_ops; in nec_8048_probe()
307 dssdev->type = OMAP_DISPLAY_TYPE_DPI; in nec_8048_probe()
308 dssdev->owner = THIS_MODULE; in nec_8048_probe()
309 dssdev->panel.timings = ddata->videomode; in nec_8048_probe()
311 r = omapdss_register_display(dssdev); in nec_8048_probe()
328 struct omap_dss_device *dssdev = &ddata->dssdev; in nec_8048_remove() local
333 omapdss_unregister_display(dssdev); in nec_8048_remove()
335 nec_8048_disable(dssdev); in nec_8048_remove()
336 nec_8048_disconnect(dssdev); in nec_8048_remove()