Lines Matching refs:ddata

38 	struct panel_drv_data *ddata = to_panel_data(dssdev);  in panel_dpi_connect()  local
39 struct omap_dss_device *in = ddata->in; in panel_dpi_connect()
49 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_disconnect() local
50 struct omap_dss_device *in = ddata->in; in panel_dpi_disconnect()
60 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_enable() local
61 struct omap_dss_device *in = ddata->in; in panel_dpi_enable()
70 if (ddata->data_lines) in panel_dpi_enable()
71 in->ops.dpi->set_data_lines(in, ddata->data_lines); in panel_dpi_enable()
72 in->ops.dpi->set_timings(in, &ddata->videomode); in panel_dpi_enable()
78 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in panel_dpi_enable()
80 if (gpio_is_valid(ddata->backlight_gpio)) in panel_dpi_enable()
81 gpio_set_value_cansleep(ddata->backlight_gpio, 1); in panel_dpi_enable()
90 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_disable() local
91 struct omap_dss_device *in = ddata->in; in panel_dpi_disable()
96 if (gpio_is_valid(ddata->backlight_gpio)) in panel_dpi_disable()
97 gpio_set_value_cansleep(ddata->backlight_gpio, 0); in panel_dpi_disable()
99 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in panel_dpi_disable()
109 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_set_timings() local
110 struct omap_dss_device *in = ddata->in; in panel_dpi_set_timings()
112 ddata->videomode = *timings; in panel_dpi_set_timings()
121 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_get_timings() local
123 *timings = ddata->videomode; in panel_dpi_get_timings()
129 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_check_timings() local
130 struct omap_dss_device *in = ddata->in; in panel_dpi_check_timings()
152 struct panel_drv_data *ddata = platform_get_drvdata(pdev); in panel_dpi_probe_pdata() local
166 ddata->in = in; in panel_dpi_probe_pdata()
168 ddata->data_lines = pdata->data_lines; in panel_dpi_probe_pdata()
171 videomode_to_omap_video_timings(&vm, &ddata->videomode); in panel_dpi_probe_pdata()
173 dssdev = &ddata->dssdev; in panel_dpi_probe_pdata()
181 ddata->enable_gpio = gpio_to_desc(pdata->enable_gpio); in panel_dpi_probe_pdata()
183 ddata->backlight_gpio = pdata->backlight_gpio; in panel_dpi_probe_pdata()
188 omap_dss_put_device(ddata->in); in panel_dpi_probe_pdata()
194 struct panel_drv_data *ddata = platform_get_drvdata(pdev); in panel_dpi_probe_of() local
206 ddata->enable_gpio = gpio; in panel_dpi_probe_of()
208 ddata->backlight_gpio = -ENOENT; in panel_dpi_probe_of()
217 videomode_to_omap_video_timings(&vm, &ddata->videomode); in panel_dpi_probe_of()
225 ddata->in = in; in panel_dpi_probe_of()
232 struct panel_drv_data *ddata; in panel_dpi_probe() local
236 ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); in panel_dpi_probe()
237 if (ddata == NULL) in panel_dpi_probe()
240 platform_set_drvdata(pdev, ddata); in panel_dpi_probe()
254 if (gpio_is_valid(ddata->backlight_gpio)) { in panel_dpi_probe()
255 r = devm_gpio_request_one(&pdev->dev, ddata->backlight_gpio, in panel_dpi_probe()
261 dssdev = &ddata->dssdev; in panel_dpi_probe()
266 dssdev->panel.timings = ddata->videomode; in panel_dpi_probe()
267 dssdev->phy.dpi.data_lines = ddata->data_lines; in panel_dpi_probe()
279 omap_dss_put_device(ddata->in); in panel_dpi_probe()
285 struct panel_drv_data *ddata = platform_get_drvdata(pdev); in panel_dpi_remove() local
286 struct omap_dss_device *dssdev = &ddata->dssdev; in panel_dpi_remove()
287 struct omap_dss_device *in = ddata->in; in panel_dpi_remove()