Lines Matching refs:ddata
119 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_connect() local
120 struct omap_dss_device *in = ddata->in; in lb035q02_connect()
130 init_lb035q02_panel(ddata->spi); in lb035q02_connect()
137 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_disconnect() local
138 struct omap_dss_device *in = ddata->in; in lb035q02_disconnect()
148 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_enable() local
149 struct omap_dss_device *in = ddata->in; in lb035q02_enable()
158 if (ddata->data_lines) in lb035q02_enable()
159 in->ops.dpi->set_data_lines(in, ddata->data_lines); in lb035q02_enable()
160 in->ops.dpi->set_timings(in, &ddata->videomode); in lb035q02_enable()
166 if (ddata->enable_gpio) in lb035q02_enable()
167 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in lb035q02_enable()
169 if (gpio_is_valid(ddata->backlight_gpio)) in lb035q02_enable()
170 gpio_set_value_cansleep(ddata->backlight_gpio, 1); in lb035q02_enable()
179 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_disable() local
180 struct omap_dss_device *in = ddata->in; in lb035q02_disable()
185 if (ddata->enable_gpio) in lb035q02_disable()
186 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in lb035q02_disable()
188 if (gpio_is_valid(ddata->backlight_gpio)) in lb035q02_disable()
189 gpio_set_value_cansleep(ddata->backlight_gpio, 0); in lb035q02_disable()
199 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_set_timings() local
200 struct omap_dss_device *in = ddata->in; in lb035q02_set_timings()
202 ddata->videomode = *timings; in lb035q02_set_timings()
211 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_get_timings() local
213 *timings = ddata->videomode; in lb035q02_get_timings()
219 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_check_timings() local
220 struct omap_dss_device *in = ddata->in; in lb035q02_check_timings()
242 struct panel_drv_data *ddata = spi_get_drvdata(spi); in lb035q02_probe_of() local
251 ddata->enable_gpio = gpio; in lb035q02_probe_of()
253 ddata->backlight_gpio = -ENOENT; in lb035q02_probe_of()
261 ddata->in = in; in lb035q02_probe_of()
268 struct panel_drv_data *ddata; in lb035q02_panel_spi_probe() local
275 ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); in lb035q02_panel_spi_probe()
276 if (ddata == NULL) in lb035q02_panel_spi_probe()
279 spi_set_drvdata(spi, ddata); in lb035q02_panel_spi_probe()
281 ddata->spi = spi; in lb035q02_panel_spi_probe()
287 if (gpio_is_valid(ddata->backlight_gpio)) { in lb035q02_panel_spi_probe()
288 r = devm_gpio_request_one(&spi->dev, ddata->backlight_gpio, in lb035q02_panel_spi_probe()
294 ddata->videomode = lb035q02_timings; in lb035q02_panel_spi_probe()
296 dssdev = &ddata->dssdev; in lb035q02_panel_spi_probe()
301 dssdev->panel.timings = ddata->videomode; in lb035q02_panel_spi_probe()
302 dssdev->phy.dpi.data_lines = ddata->data_lines; in lb035q02_panel_spi_probe()
314 omap_dss_put_device(ddata->in); in lb035q02_panel_spi_probe()
320 struct panel_drv_data *ddata = spi_get_drvdata(spi); in lb035q02_panel_spi_remove() local
321 struct omap_dss_device *dssdev = &ddata->dssdev; in lb035q02_panel_spi_remove()
322 struct omap_dss_device *in = ddata->in; in lb035q02_panel_spi_remove()