/drivers/video/fbdev/omap2/dss/ |
D | display-sysfs.c | 31 static ssize_t display_name_show(struct omap_dss_device *dssdev, char *buf) in display_name_show() argument 34 dssdev->name ? in display_name_show() 35 dssdev->name : ""); in display_name_show() 38 static ssize_t display_enabled_show(struct omap_dss_device *dssdev, char *buf) in display_enabled_show() argument 41 omapdss_device_is_enabled(dssdev)); in display_enabled_show() 44 static ssize_t display_enabled_store(struct omap_dss_device *dssdev, in display_enabled_store() argument 54 if (enable == omapdss_device_is_enabled(dssdev)) in display_enabled_store() 57 if (omapdss_device_is_connected(dssdev) == false) in display_enabled_store() 61 r = dssdev->driver->enable(dssdev); in display_enabled_store() 65 dssdev->driver->disable(dssdev); in display_enabled_store() [all …]
|
D | display.c | 35 void omapdss_default_get_resolution(struct omap_dss_device *dssdev, in omapdss_default_get_resolution() argument 38 *xres = dssdev->panel.timings.x_res; in omapdss_default_get_resolution() 39 *yres = dssdev->panel.timings.y_res; in omapdss_default_get_resolution() 43 int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev) in omapdss_default_get_recommended_bpp() argument 45 switch (dssdev->type) { in omapdss_default_get_recommended_bpp() 47 if (dssdev->phy.dpi.data_lines == 24) in omapdss_default_get_recommended_bpp() 53 if (dssdev->ctrl.pixel_size == 24) in omapdss_default_get_recommended_bpp() 58 if (dsi_get_pixel_size(dssdev->panel.dsi_pix_fmt) > 16) in omapdss_default_get_recommended_bpp() 74 void omapdss_default_get_timings(struct omap_dss_device *dssdev, in omapdss_default_get_timings() argument 77 *timings = dssdev->panel.timings; in omapdss_default_get_timings() [all …]
|
D | hdmi4.c | 131 static int hdmi_power_on_core(struct omap_dss_device *dssdev) in hdmi_power_on_core() argument 156 static void hdmi_power_off_core(struct omap_dss_device *dssdev) in hdmi_power_off_core() argument 164 static int hdmi_power_on_full(struct omap_dss_device *dssdev) in hdmi_power_on_full() argument 172 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full() 239 hdmi_power_off_core(dssdev); in hdmi_power_on_full() 243 static void hdmi_power_off_full(struct omap_dss_device *dssdev) in hdmi_power_off_full() argument 257 hdmi_power_off_core(dssdev); in hdmi_power_off_full() 260 static int hdmi_display_check_timing(struct omap_dss_device *dssdev, in hdmi_display_check_timing() argument 271 static void hdmi_display_set_timing(struct omap_dss_device *dssdev, in hdmi_display_set_timing() argument 283 static void hdmi_display_get_timings(struct omap_dss_device *dssdev, in hdmi_display_get_timings() argument [all …]
|
D | hdmi5.c | 148 static int hdmi_power_on_core(struct omap_dss_device *dssdev) in hdmi_power_on_core() argument 173 static void hdmi_power_off_core(struct omap_dss_device *dssdev) in hdmi_power_off_core() argument 181 static int hdmi_power_on_full(struct omap_dss_device *dssdev) in hdmi_power_on_full() argument 188 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full() 256 hdmi_power_off_core(dssdev); in hdmi_power_on_full() 260 static void hdmi_power_off_full(struct omap_dss_device *dssdev) in hdmi_power_off_full() argument 274 hdmi_power_off_core(dssdev); in hdmi_power_off_full() 277 static int hdmi_display_check_timing(struct omap_dss_device *dssdev, in hdmi_display_check_timing() argument 292 static void hdmi_display_set_timing(struct omap_dss_device *dssdev, in hdmi_display_set_timing() argument 304 static void hdmi_display_get_timings(struct omap_dss_device *dssdev, in hdmi_display_get_timings() argument [all …]
|
D | sdi.c | 115 static void sdi_config_lcd_manager(struct omap_dss_device *dssdev) in sdi_config_lcd_manager() argument 130 static int sdi_display_enable(struct omap_dss_device *dssdev) in sdi_display_enable() argument 178 sdi_config_lcd_manager(dssdev); in sdi_display_enable() 217 static void sdi_display_disable(struct omap_dss_device *dssdev) in sdi_display_disable() argument 230 static void sdi_set_timings(struct omap_dss_device *dssdev, in sdi_set_timings() argument 236 static void sdi_get_timings(struct omap_dss_device *dssdev, in sdi_get_timings() argument 242 static int sdi_check_timings(struct omap_dss_device *dssdev, in sdi_check_timings() argument 256 static void sdi_set_datapairs(struct omap_dss_device *dssdev, int datapairs) in sdi_set_datapairs() argument 280 static int sdi_connect(struct omap_dss_device *dssdev, in sdi_connect() argument 290 mgr = omap_dss_get_overlay_manager(dssdev->dispc_channel); in sdi_connect() [all …]
|
D | dpi.c | 61 static struct dpi_data *dpi_get_data_from_dssdev(struct omap_dss_device *dssdev) in dpi_get_data_from_dssdev() argument 63 return container_of(dssdev, struct dpi_data, output); in dpi_get_data_from_dssdev() 384 static int dpi_display_enable(struct omap_dss_device *dssdev) in dpi_display_enable() argument 386 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_display_enable() 457 static void dpi_display_disable(struct omap_dss_device *dssdev) in dpi_display_disable() argument 459 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_display_disable() 479 static void dpi_set_timings(struct omap_dss_device *dssdev, in dpi_set_timings() argument 482 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_set_timings() 493 static void dpi_get_timings(struct omap_dss_device *dssdev, in dpi_get_timings() argument 496 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_get_timings() [all …]
|
D | output.c | 32 struct omap_dss_device *dssdev) in omapdss_output_set_device() argument 45 if (out->output_type != dssdev->type) { in omapdss_output_set_device() 51 out->dst = dssdev; in omapdss_output_set_device() 52 dssdev->src = out; in omapdss_output_set_device() 160 struct omap_dss_device *omapdss_find_output_from_display(struct omap_dss_device *dssdev) in omapdss_find_output_from_display() argument 162 while (dssdev->src) in omapdss_find_output_from_display() 163 dssdev = dssdev->src; in omapdss_find_output_from_display() 165 if (dssdev->id != 0) in omapdss_find_output_from_display() 166 return omap_dss_get_device(dssdev); in omapdss_find_output_from_display() 172 struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_device *dssdev) in omapdss_find_mgr_from_display() argument [all …]
|
D | manager-sysfs.c | 41 struct omap_dss_device *dssdev = mgr->get_device(mgr); in manager_display_show() local 43 return snprintf(buf, PAGE_SIZE, "%s\n", dssdev ? in manager_display_show() 44 dssdev->name : "<none>"); in manager_display_show() 47 static int manager_display_match(struct omap_dss_device *dssdev, void *data) in manager_display_match() argument 51 return sysfs_streq(dssdev->name, str); in manager_display_match() 59 struct omap_dss_device *dssdev = NULL; in manager_display_store() local 66 dssdev = omap_dss_find_device((void *)buf, in manager_display_store() 69 if (len > 0 && dssdev == NULL) in manager_display_store() 72 if (dssdev) { in manager_display_store() 73 DSSDBG("display %s found\n", dssdev->name); in manager_display_store() [all …]
|
D | venc.c | 444 static int venc_power_on(struct omap_dss_device *dssdev) in venc_power_on() argument 495 static void venc_power_off(struct omap_dss_device *dssdev) in venc_power_off() argument 509 static int venc_display_enable(struct omap_dss_device *dssdev) in venc_display_enable() argument 524 r = venc_power_on(dssdev); in venc_display_enable() 538 static void venc_display_disable(struct omap_dss_device *dssdev) in venc_display_disable() argument 544 venc_power_off(dssdev); in venc_display_disable() 549 static void venc_set_timings(struct omap_dss_device *dssdev, in venc_set_timings() argument 567 static int venc_check_timings(struct omap_dss_device *dssdev, in venc_check_timings() argument 581 static void venc_get_timings(struct omap_dss_device *dssdev, in venc_get_timings() argument 591 static u32 venc_get_wss(struct omap_dss_device *dssdev) in venc_get_wss() argument [all …]
|
/drivers/video/fbdev/omap2/displays-new/ |
D | encoder-opa362.c | 26 struct omap_dss_device dssdev; member 34 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 36 static int opa362_connect(struct omap_dss_device *dssdev, in opa362_connect() argument 39 struct panel_drv_data *ddata = to_panel_data(dssdev); in opa362_connect() 43 dev_dbg(dssdev->dev, "connect\n"); in opa362_connect() 45 if (omapdss_device_is_connected(dssdev)) in opa362_connect() 48 r = in->ops.atv->connect(in, dssdev); in opa362_connect() 52 dst->src = dssdev; in opa362_connect() 53 dssdev->dst = dst; in opa362_connect() 58 static void opa362_disconnect(struct omap_dss_device *dssdev, in opa362_disconnect() argument [all …]
|
D | encoder-tfp410.c | 22 struct omap_dss_device dssdev; member 31 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 33 static int tfp410_connect(struct omap_dss_device *dssdev, in tfp410_connect() argument 36 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect() 40 if (omapdss_device_is_connected(dssdev)) in tfp410_connect() 43 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect() 47 dst->src = dssdev; in tfp410_connect() 48 dssdev->dst = dst; in tfp410_connect() 53 static void tfp410_disconnect(struct omap_dss_device *dssdev, in tfp410_disconnect() argument 56 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect() [all …]
|
D | encoder-tpd12s015.c | 24 struct omap_dss_device dssdev; member 34 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 36 static int tpd_connect(struct omap_dss_device *dssdev, in tpd_connect() argument 39 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_connect() 43 r = in->ops.hdmi->connect(in, dssdev); in tpd_connect() 47 dst->src = dssdev; in tpd_connect() 48 dssdev->dst = dst; in tpd_connect() 57 static void tpd_disconnect(struct omap_dss_device *dssdev, in tpd_disconnect() argument 60 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_disconnect() 63 WARN_ON(dst != dssdev->dst); in tpd_disconnect() [all …]
|
D | connector-hdmi.c | 41 struct omap_dss_device dssdev; member 51 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 53 static int hdmic_connect(struct omap_dss_device *dssdev) in hdmic_connect() argument 55 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_connect() 61 if (omapdss_device_is_connected(dssdev)) in hdmic_connect() 64 r = in->ops.hdmi->connect(in, dssdev); in hdmic_connect() 71 static void hdmic_disconnect(struct omap_dss_device *dssdev) in hdmic_disconnect() argument 73 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_disconnect() 78 if (!omapdss_device_is_connected(dssdev)) in hdmic_disconnect() 81 in->ops.hdmi->disconnect(in, dssdev); in hdmic_disconnect() [all …]
|
D | connector-analog-tv.c | 21 struct omap_dss_device dssdev; member 52 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 54 static int tvc_connect(struct omap_dss_device *dssdev) in tvc_connect() argument 56 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_connect() 62 if (omapdss_device_is_connected(dssdev)) in tvc_connect() 65 r = in->ops.atv->connect(in, dssdev); in tvc_connect() 72 static void tvc_disconnect(struct omap_dss_device *dssdev) in tvc_disconnect() argument 74 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disconnect() 79 if (!omapdss_device_is_connected(dssdev)) in tvc_disconnect() 82 in->ops.atv->disconnect(in, dssdev); in tvc_disconnect() [all …]
|
D | panel-dpi.c | 24 struct omap_dss_device dssdev; member 37 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 39 static int panel_dpi_connect(struct omap_dss_device *dssdev) in panel_dpi_connect() argument 41 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_connect() 45 if (omapdss_device_is_connected(dssdev)) in panel_dpi_connect() 48 r = in->ops.dpi->connect(in, dssdev); in panel_dpi_connect() 55 static void panel_dpi_disconnect(struct omap_dss_device *dssdev) in panel_dpi_disconnect() argument 57 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_disconnect() 60 if (!omapdss_device_is_connected(dssdev)) in panel_dpi_disconnect() 63 in->ops.dpi->disconnect(in, dssdev); in panel_dpi_disconnect() [all …]
|
D | connector-dvi.c | 44 struct omap_dss_device dssdev; member 52 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 54 static int dvic_connect(struct omap_dss_device *dssdev) in dvic_connect() argument 56 struct panel_drv_data *ddata = to_panel_data(dssdev); in dvic_connect() 60 if (omapdss_device_is_connected(dssdev)) in dvic_connect() 63 r = in->ops.dvi->connect(in, dssdev); in dvic_connect() 70 static void dvic_disconnect(struct omap_dss_device *dssdev) in dvic_disconnect() argument 72 struct panel_drv_data *ddata = to_panel_data(dssdev); in dvic_disconnect() 75 if (!omapdss_device_is_connected(dssdev)) in dvic_disconnect() 78 in->ops.dvi->disconnect(in, dssdev); in dvic_disconnect() [all …]
|
D | panel-nec-nl8048hl11.c | 25 struct omap_dss_device dssdev; member 88 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 121 static int nec_8048_connect(struct omap_dss_device *dssdev) in nec_8048_connect() argument 123 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_connect() 127 if (omapdss_device_is_connected(dssdev)) in nec_8048_connect() 130 r = in->ops.dpi->connect(in, dssdev); in nec_8048_connect() 137 static void nec_8048_disconnect(struct omap_dss_device *dssdev) in nec_8048_disconnect() argument 139 struct panel_drv_data *ddata = to_panel_data(dssdev); in nec_8048_disconnect() 142 if (!omapdss_device_is_connected(dssdev)) in nec_8048_disconnect() 145 in->ops.dpi->disconnect(in, dssdev); in nec_8048_disconnect() [all …]
|
D | panel-lgphilips-lb035q02.c | 44 struct omap_dss_device dssdev; member 59 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 121 static int lb035q02_connect(struct omap_dss_device *dssdev) in lb035q02_connect() argument 123 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_connect() 127 if (omapdss_device_is_connected(dssdev)) in lb035q02_connect() 130 r = in->ops.dpi->connect(in, dssdev); in lb035q02_connect() 139 static void lb035q02_disconnect(struct omap_dss_device *dssdev) in lb035q02_disconnect() argument 141 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_disconnect() 144 if (!omapdss_device_is_connected(dssdev)) in lb035q02_disconnect() 147 in->ops.dpi->disconnect(in, dssdev); in lb035q02_disconnect() [all …]
|
D | panel-sharp-ls037v7dw01.c | 24 struct omap_dss_device dssdev; member 60 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 62 static int sharp_ls_connect(struct omap_dss_device *dssdev) in sharp_ls_connect() argument 64 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_connect() 68 if (omapdss_device_is_connected(dssdev)) in sharp_ls_connect() 71 r = in->ops.dpi->connect(in, dssdev); in sharp_ls_connect() 78 static void sharp_ls_disconnect(struct omap_dss_device *dssdev) in sharp_ls_disconnect() argument 80 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_disconnect() 83 if (!omapdss_device_is_connected(dssdev)) in sharp_ls_disconnect() 86 in->ops.dpi->disconnect(in, dssdev); in sharp_ls_disconnect() [all …]
|
D | panel-tpo-td028ttec1.c | 35 struct omap_dss_device dssdev; member 168 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 170 static int td028ttec1_panel_connect(struct omap_dss_device *dssdev) in td028ttec1_panel_connect() argument 172 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_connect() 176 if (omapdss_device_is_connected(dssdev)) in td028ttec1_panel_connect() 179 r = in->ops.dpi->connect(in, dssdev); in td028ttec1_panel_connect() 186 static void td028ttec1_panel_disconnect(struct omap_dss_device *dssdev) in td028ttec1_panel_disconnect() argument 188 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_disconnect() 191 if (!omapdss_device_is_connected(dssdev)) in td028ttec1_panel_disconnect() 194 in->ops.dpi->disconnect(in, dssdev); in td028ttec1_panel_disconnect() [all …]
|
D | panel-tpo-td043mtea1.c | 57 struct omap_dss_device dssdev; member 97 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 156 static int tpo_td043_set_hmirror(struct omap_dss_device *dssdev, bool enable) in tpo_td043_set_hmirror() argument 158 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_set_hmirror() 165 static bool tpo_td043_get_hmirror(struct omap_dss_device *dssdev) in tpo_td043_get_hmirror() argument 167 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_get_hmirror() 341 static int tpo_td043_connect(struct omap_dss_device *dssdev) in tpo_td043_connect() argument 343 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_connect() 347 if (omapdss_device_is_connected(dssdev)) in tpo_td043_connect() 350 r = in->ops.dpi->connect(in, dssdev); in tpo_td043_connect() [all …]
|
D | panel-sony-acx565akm.c | 68 struct omap_dss_device dssdev; member 114 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 516 static int acx565akm_connect(struct omap_dss_device *dssdev) in acx565akm_connect() argument 518 struct panel_drv_data *ddata = to_panel_data(dssdev); in acx565akm_connect() 522 if (omapdss_device_is_connected(dssdev)) in acx565akm_connect() 525 r = in->ops.sdi->connect(in, dssdev); in acx565akm_connect() 532 static void acx565akm_disconnect(struct omap_dss_device *dssdev) in acx565akm_disconnect() argument 534 struct panel_drv_data *ddata = to_panel_data(dssdev); in acx565akm_disconnect() 537 if (!omapdss_device_is_connected(dssdev)) in acx565akm_disconnect() 540 in->ops.sdi->disconnect(in, dssdev); in acx565akm_disconnect() [all …]
|
D | panel-dsi-cm.c | 43 struct omap_dss_device dssdev; member 86 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 383 static void dsicm_get_resolution(struct omap_dss_device *dssdev, in dsicm_get_resolution() argument 386 *xres = dssdev->panel.timings.x_res; in dsicm_get_resolution() 387 *yres = dssdev->panel.timings.y_res; in dsicm_get_resolution() 711 static int dsicm_connect(struct omap_dss_device *dssdev) in dsicm_connect() argument 713 struct panel_drv_data *ddata = to_panel_data(dssdev); in dsicm_connect() 718 if (omapdss_device_is_connected(dssdev)) in dsicm_connect() 721 r = in->ops.dsi->connect(in, dssdev); in dsicm_connect() 744 in->ops.dsi->disconnect(in, dssdev); in dsicm_connect() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | omap_encoder.c | 41 struct omap_dss_device *dssdev; member 48 return omap_encoder->dssdev; in omap_encoder_get_dssdev() 69 struct omap_dss_device *dssdev = omap_encoder->dssdev; in omap_encoder_mode_set() local 82 if (dssdev->driver->set_hdmi_mode) in omap_encoder_mode_set() 83 dssdev->driver->set_hdmi_mode(dssdev, hdmi_mode); in omap_encoder_mode_set() 85 if (hdmi_mode && dssdev->driver->set_hdmi_infoframe) { in omap_encoder_mode_set() 90 dssdev->driver->set_hdmi_infoframe(dssdev, &avi); in omap_encoder_mode_set() 97 struct omap_dss_device *dssdev = omap_encoder->dssdev; in omap_encoder_disable() local 98 struct omap_dss_driver *dssdrv = dssdev->driver; in omap_encoder_disable() 100 dssdrv->disable(dssdev); in omap_encoder_disable() [all …]
|
D | omap_connector.c | 34 struct omap_dss_device *dssdev; member 113 struct omap_dss_device *dssdev = omap_connector->dssdev; in omap_connector_detect() local 114 struct omap_dss_driver *dssdrv = dssdev->driver; in omap_connector_detect() 118 if (dssdrv->detect(dssdev)) in omap_connector_detect() 122 } else if (dssdev->type == OMAP_DISPLAY_TYPE_DPI || in omap_connector_detect() 123 dssdev->type == OMAP_DISPLAY_TYPE_DBI || in omap_connector_detect() 124 dssdev->type == OMAP_DISPLAY_TYPE_SDI || in omap_connector_detect() 125 dssdev->type == OMAP_DISPLAY_TYPE_DSI) { in omap_connector_detect() 131 VERB("%s: %d (force=%d)", omap_connector->dssdev->name, ret, force); in omap_connector_detect() 139 struct omap_dss_device *dssdev = omap_connector->dssdev; in omap_connector_destroy() local [all …]
|