/Linux-v6.1/drivers/video/fbdev/omap2/omapfb/dss/ |
D | display-sysfs.c | 20 static ssize_t display_name_show(struct omap_dss_device *dssdev, char *buf) in display_name_show() argument 23 dssdev->name ? in display_name_show() 24 dssdev->name : ""); in display_name_show() 27 static ssize_t display_enabled_show(struct omap_dss_device *dssdev, char *buf) in display_enabled_show() argument 30 omapdss_device_is_enabled(dssdev)); in display_enabled_show() 33 static ssize_t display_enabled_store(struct omap_dss_device *dssdev, in display_enabled_store() argument 43 if (enable == omapdss_device_is_enabled(dssdev)) in display_enabled_store() 46 if (omapdss_device_is_connected(dssdev) == false) in display_enabled_store() 50 r = dssdev->driver->enable(dssdev); in display_enabled_store() 54 dssdev->driver->disable(dssdev); in display_enabled_store() [all …]
|
D | display.c | 24 void omapdss_default_get_resolution(struct omap_dss_device *dssdev, in omapdss_default_get_resolution() argument 27 *xres = dssdev->panel.timings.x_res; in omapdss_default_get_resolution() 28 *yres = dssdev->panel.timings.y_res; in omapdss_default_get_resolution() 32 int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev) in omapdss_default_get_recommended_bpp() argument 34 switch (dssdev->type) { in omapdss_default_get_recommended_bpp() 36 if (dssdev->phy.dpi.data_lines == 24) in omapdss_default_get_recommended_bpp() 42 if (dssdev->ctrl.pixel_size == 24) in omapdss_default_get_recommended_bpp() 47 if (dsi_get_pixel_size(dssdev->panel.dsi_pix_fmt) > 16) in omapdss_default_get_recommended_bpp() 63 void omapdss_default_get_timings(struct omap_dss_device *dssdev, in omapdss_default_get_timings() argument 66 *timings = dssdev->panel.timings; in omapdss_default_get_timings() [all …]
|
D | hdmi5.c | 126 static int hdmi_power_on_core(struct omap_dss_device *dssdev) in hdmi_power_on_core() argument 151 static void hdmi_power_off_core(struct omap_dss_device *dssdev) in hdmi_power_off_core() argument 159 static int hdmi_power_on_full(struct omap_dss_device *dssdev) in hdmi_power_on_full() argument 166 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full() 234 hdmi_power_off_core(dssdev); in hdmi_power_on_full() 238 static void hdmi_power_off_full(struct omap_dss_device *dssdev) in hdmi_power_off_full() argument 252 hdmi_power_off_core(dssdev); in hdmi_power_off_full() 255 static int hdmi_display_check_timing(struct omap_dss_device *dssdev, in hdmi_display_check_timing() argument 270 static void hdmi_display_set_timing(struct omap_dss_device *dssdev, in hdmi_display_set_timing() argument 282 static void hdmi_display_get_timings(struct omap_dss_device *dssdev, in hdmi_display_get_timings() argument [all …]
|
D | hdmi4.c | 109 static int hdmi_power_on_core(struct omap_dss_device *dssdev) in hdmi_power_on_core() argument 134 static void hdmi_power_off_core(struct omap_dss_device *dssdev) in hdmi_power_off_core() argument 142 static int hdmi_power_on_full(struct omap_dss_device *dssdev) in hdmi_power_on_full() argument 150 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full() 217 hdmi_power_off_core(dssdev); in hdmi_power_on_full() 221 static void hdmi_power_off_full(struct omap_dss_device *dssdev) in hdmi_power_off_full() argument 235 hdmi_power_off_core(dssdev); in hdmi_power_off_full() 238 static int hdmi_display_check_timing(struct omap_dss_device *dssdev, in hdmi_display_check_timing() argument 249 static void hdmi_display_set_timing(struct omap_dss_device *dssdev, in hdmi_display_set_timing() argument 261 static void hdmi_display_get_timings(struct omap_dss_device *dssdev, in hdmi_display_get_timings() argument [all …]
|
D | sdi.c | 104 static void sdi_config_lcd_manager(struct omap_dss_device *dssdev) in sdi_config_lcd_manager() argument 119 static int sdi_display_enable(struct omap_dss_device *dssdev) in sdi_display_enable() argument 167 sdi_config_lcd_manager(dssdev); in sdi_display_enable() 206 static void sdi_display_disable(struct omap_dss_device *dssdev) in sdi_display_disable() argument 219 static void sdi_set_timings(struct omap_dss_device *dssdev, in sdi_set_timings() argument 225 static void sdi_get_timings(struct omap_dss_device *dssdev, in sdi_get_timings() argument 231 static int sdi_check_timings(struct omap_dss_device *dssdev, in sdi_check_timings() argument 245 static void sdi_set_datapairs(struct omap_dss_device *dssdev, int datapairs) in sdi_set_datapairs() argument 269 static int sdi_connect(struct omap_dss_device *dssdev, in sdi_connect() argument 279 mgr = omap_dss_get_overlay_manager(dssdev->dispc_channel); in sdi_connect() [all …]
|
D | output.c | 21 struct omap_dss_device *dssdev) in omapdss_output_set_device() argument 34 if (out->output_type != dssdev->type) { in omapdss_output_set_device() 40 out->dst = dssdev; in omapdss_output_set_device() 41 dssdev->src = out; in omapdss_output_set_device() 149 struct omap_dss_device *omapdss_find_output_from_display(struct omap_dss_device *dssdev) in omapdss_find_output_from_display() argument 151 while (dssdev->src) in omapdss_find_output_from_display() 152 dssdev = dssdev->src; in omapdss_find_output_from_display() 154 if (dssdev->id != 0) in omapdss_find_output_from_display() 155 return omap_dss_get_device(dssdev); in omapdss_find_output_from_display() 161 struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_device *dssdev) in omapdss_find_mgr_from_display() argument [all …]
|
D | dpi.c | 50 static struct dpi_data *dpi_get_data_from_dssdev(struct omap_dss_device *dssdev) in dpi_get_data_from_dssdev() argument 52 return container_of(dssdev, struct dpi_data, output); in dpi_get_data_from_dssdev() 373 static int dpi_display_enable(struct omap_dss_device *dssdev) in dpi_display_enable() argument 375 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_display_enable() 446 static void dpi_display_disable(struct omap_dss_device *dssdev) in dpi_display_disable() argument 448 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_display_disable() 468 static void dpi_set_timings(struct omap_dss_device *dssdev, in dpi_set_timings() argument 471 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_set_timings() 482 static void dpi_get_timings(struct omap_dss_device *dssdev, in dpi_get_timings() argument 485 struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev); in dpi_get_timings() [all …]
|
/Linux-v6.1/drivers/video/fbdev/omap2/omapfb/displays/ |
D | encoder-opa362.c | 23 struct omap_dss_device dssdev; member 31 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 33 static int opa362_connect(struct omap_dss_device *dssdev, in opa362_connect() argument 36 struct panel_drv_data *ddata = to_panel_data(dssdev); in opa362_connect() 40 dev_dbg(dssdev->dev, "connect\n"); in opa362_connect() 42 if (omapdss_device_is_connected(dssdev)) in opa362_connect() 45 r = in->ops.atv->connect(in, dssdev); in opa362_connect() 49 dst->src = dssdev; in opa362_connect() 50 dssdev->dst = dst; in opa362_connect() 55 static void opa362_disconnect(struct omap_dss_device *dssdev, in opa362_disconnect() argument [all …]
|
D | encoder-tfp410.c | 18 struct omap_dss_device dssdev; member 27 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 29 static int tfp410_connect(struct omap_dss_device *dssdev, in tfp410_connect() argument 32 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_connect() 36 if (omapdss_device_is_connected(dssdev)) in tfp410_connect() 39 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect() 43 dst->src = dssdev; in tfp410_connect() 44 dssdev->dst = dst; in tfp410_connect() 49 static void tfp410_disconnect(struct omap_dss_device *dssdev, in tfp410_disconnect() argument 52 struct panel_drv_data *ddata = to_panel_data(dssdev); in tfp410_disconnect() [all …]
|
D | encoder-tpd12s015.c | 20 struct omap_dss_device dssdev; member 30 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 32 static int tpd_connect(struct omap_dss_device *dssdev, in tpd_connect() argument 35 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_connect() 39 r = in->ops.hdmi->connect(in, dssdev); in tpd_connect() 43 dst->src = dssdev; in tpd_connect() 44 dssdev->dst = dst; in tpd_connect() 55 static void tpd_disconnect(struct omap_dss_device *dssdev, in tpd_disconnect() argument 58 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpd_disconnect() 61 WARN_ON(dst != dssdev->dst); in tpd_disconnect() [all …]
|
D | connector-hdmi.c | 37 struct omap_dss_device dssdev; member 47 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 49 static int hdmic_connect(struct omap_dss_device *dssdev) in hdmic_connect() argument 51 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_connect() 56 if (omapdss_device_is_connected(dssdev)) in hdmic_connect() 59 return in->ops.hdmi->connect(in, dssdev); in hdmic_connect() 62 static void hdmic_disconnect(struct omap_dss_device *dssdev) in hdmic_disconnect() argument 64 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_disconnect() 69 if (!omapdss_device_is_connected(dssdev)) in hdmic_disconnect() 72 in->ops.hdmi->disconnect(in, dssdev); in hdmic_disconnect() [all …]
|
D | connector-analog-tv.c | 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() 53 if (omapdss_device_is_connected(dssdev)) in tvc_connect() 56 return in->ops.atv->connect(in, dssdev); in tvc_connect() 59 static void tvc_disconnect(struct omap_dss_device *dssdev) in tvc_disconnect() argument 61 struct panel_drv_data *ddata = to_panel_data(dssdev); in tvc_disconnect() 66 if (!omapdss_device_is_connected(dssdev)) in tvc_disconnect() 69 in->ops.atv->disconnect(in, dssdev); in tvc_disconnect() [all …]
|
D | panel-dpi.c | 21 struct omap_dss_device dssdev; member 34 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 36 static int panel_dpi_connect(struct omap_dss_device *dssdev) in panel_dpi_connect() argument 38 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_connect() 41 if (omapdss_device_is_connected(dssdev)) in panel_dpi_connect() 44 return in->ops.dpi->connect(in, dssdev); in panel_dpi_connect() 47 static void panel_dpi_disconnect(struct omap_dss_device *dssdev) in panel_dpi_disconnect() argument 49 struct panel_drv_data *ddata = to_panel_data(dssdev); in panel_dpi_disconnect() 52 if (!omapdss_device_is_connected(dssdev)) in panel_dpi_disconnect() 55 in->ops.dpi->disconnect(in, dssdev); in panel_dpi_disconnect() [all …]
|
D | connector-dvi.c | 40 struct omap_dss_device dssdev; member 48 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) 50 static int dvic_connect(struct omap_dss_device *dssdev) in dvic_connect() argument 52 struct panel_drv_data *ddata = to_panel_data(dssdev); in dvic_connect() 55 if (omapdss_device_is_connected(dssdev)) in dvic_connect() 58 return in->ops.dvi->connect(in, dssdev); in dvic_connect() 61 static void dvic_disconnect(struct omap_dss_device *dssdev) in dvic_disconnect() argument 63 struct panel_drv_data *ddata = to_panel_data(dssdev); in dvic_disconnect() 66 if (!omapdss_device_is_connected(dssdev)) in dvic_disconnect() 69 in->ops.dvi->disconnect(in, dssdev); in dvic_disconnect() [all …]
|
D | panel-sharp-ls037v7dw01.c | 20 struct omap_dss_device dssdev; member 56 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 58 static int sharp_ls_connect(struct omap_dss_device *dssdev) in sharp_ls_connect() argument 60 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_connect() 63 if (omapdss_device_is_connected(dssdev)) in sharp_ls_connect() 66 return in->ops.dpi->connect(in, dssdev); in sharp_ls_connect() 69 static void sharp_ls_disconnect(struct omap_dss_device *dssdev) in sharp_ls_disconnect() argument 71 struct panel_drv_data *ddata = to_panel_data(dssdev); in sharp_ls_disconnect() 74 if (!omapdss_device_is_connected(dssdev)) in sharp_ls_disconnect() 77 in->ops.dpi->disconnect(in, dssdev); in sharp_ls_disconnect() [all …]
|
D | panel-lgphilips-lb035q02.c | 40 struct omap_dss_device dssdev; member 55 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 117 static int lb035q02_connect(struct omap_dss_device *dssdev) in lb035q02_connect() argument 119 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_connect() 123 if (omapdss_device_is_connected(dssdev)) in lb035q02_connect() 126 r = in->ops.dpi->connect(in, dssdev); in lb035q02_connect() 135 static void lb035q02_disconnect(struct omap_dss_device *dssdev) in lb035q02_disconnect() argument 137 struct panel_drv_data *ddata = to_panel_data(dssdev); in lb035q02_disconnect() 140 if (!omapdss_device_is_connected(dssdev)) in lb035q02_disconnect() 143 in->ops.dpi->disconnect(in, dssdev); in lb035q02_disconnect() [all …]
|
D | panel-nec-nl8048hl11.c | 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() [all …]
|
D | panel-tpo-td028ttec1.c | 23 struct omap_dss_device dssdev; member 156 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 158 static int td028ttec1_panel_connect(struct omap_dss_device *dssdev) in td028ttec1_panel_connect() argument 160 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_connect() 164 if (omapdss_device_is_connected(dssdev)) in td028ttec1_panel_connect() 167 r = in->ops.dpi->connect(in, dssdev); in td028ttec1_panel_connect() 174 static void td028ttec1_panel_disconnect(struct omap_dss_device *dssdev) in td028ttec1_panel_disconnect() argument 176 struct panel_drv_data *ddata = to_panel_data(dssdev); in td028ttec1_panel_disconnect() 179 if (!omapdss_device_is_connected(dssdev)) in td028ttec1_panel_disconnect() 182 in->ops.dpi->disconnect(in, dssdev); in td028ttec1_panel_disconnect() [all …]
|
D | panel-tpo-td043mtea1.c | 52 struct omap_dss_device dssdev; member 92 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 151 static int tpo_td043_set_hmirror(struct omap_dss_device *dssdev, bool enable) in tpo_td043_set_hmirror() argument 153 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_set_hmirror() 160 static bool tpo_td043_get_hmirror(struct omap_dss_device *dssdev) in tpo_td043_get_hmirror() argument 162 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); in tpo_td043_get_hmirror() 336 static int tpo_td043_connect(struct omap_dss_device *dssdev) in tpo_td043_connect() argument 338 struct panel_drv_data *ddata = to_panel_data(dssdev); in tpo_td043_connect() 341 if (omapdss_device_is_connected(dssdev)) in tpo_td043_connect() 344 return in->ops.dpi->connect(in, dssdev); in tpo_td043_connect() [all …]
|
D | panel-sony-acx565akm.c | 57 struct omap_dss_device dssdev; member 103 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 505 static int acx565akm_connect(struct omap_dss_device *dssdev) in acx565akm_connect() argument 507 struct panel_drv_data *ddata = to_panel_data(dssdev); in acx565akm_connect() 510 if (omapdss_device_is_connected(dssdev)) in acx565akm_connect() 513 return in->ops.sdi->connect(in, dssdev); in acx565akm_connect() 516 static void acx565akm_disconnect(struct omap_dss_device *dssdev) in acx565akm_disconnect() argument 518 struct panel_drv_data *ddata = to_panel_data(dssdev); in acx565akm_disconnect() 521 if (!omapdss_device_is_connected(dssdev)) in acx565akm_disconnect() 524 in->ops.sdi->disconnect(in, dssdev); in acx565akm_disconnect() [all …]
|
D | panel-dsi-cm.c | 39 struct omap_dss_device dssdev; member 80 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) 377 static void dsicm_get_resolution(struct omap_dss_device *dssdev, in dsicm_get_resolution() argument 380 *xres = dssdev->panel.timings.x_res; in dsicm_get_resolution() 381 *yres = dssdev->panel.timings.y_res; in dsicm_get_resolution() 699 static int dsicm_connect(struct omap_dss_device *dssdev) in dsicm_connect() argument 701 struct panel_drv_data *ddata = to_panel_data(dssdev); in dsicm_connect() 706 if (omapdss_device_is_connected(dssdev)) in dsicm_connect() 709 r = in->ops.dsi->connect(in, dssdev); in dsicm_connect() 732 in->ops.dsi->disconnect(in, dssdev); in dsicm_connect() [all …]
|
/Linux-v6.1/include/video/ |
D | omapfb_dss.h | 438 int (*connect)(struct omap_dss_device *dssdev, 440 void (*disconnect)(struct omap_dss_device *dssdev, 443 int (*enable)(struct omap_dss_device *dssdev); 444 void (*disable)(struct omap_dss_device *dssdev); 446 int (*check_timings)(struct omap_dss_device *dssdev, 448 void (*set_timings)(struct omap_dss_device *dssdev, 450 void (*get_timings)(struct omap_dss_device *dssdev, 453 void (*set_data_lines)(struct omap_dss_device *dssdev, int data_lines); 457 int (*connect)(struct omap_dss_device *dssdev, 459 void (*disconnect)(struct omap_dss_device *dssdev, [all …]
|
/Linux-v6.1/drivers/gpu/drm/omapdrm/dss/ |
D | base.c | 31 void omapdss_device_register(struct omap_dss_device *dssdev) in omapdss_device_register() argument 34 list_add_tail(&dssdev->list, &omapdss_devices_list); in omapdss_device_register() 38 void omapdss_device_unregister(struct omap_dss_device *dssdev) in omapdss_device_unregister() argument 41 list_del(&dssdev->list); in omapdss_device_unregister() 47 struct omap_dss_device *dssdev; in omapdss_device_is_registered() local 52 list_for_each_entry(dssdev, &omapdss_devices_list, list) { in omapdss_device_is_registered() 53 if (dssdev->dev->of_node == node) { in omapdss_device_is_registered() 63 struct omap_dss_device *omapdss_device_get(struct omap_dss_device *dssdev) in omapdss_device_get() argument 65 if (get_device(dssdev->dev) == NULL) in omapdss_device_get() 68 return dssdev; in omapdss_device_get() [all …]
|
D | output.c | 84 void dss_mgr_set_timings(struct omap_dss_device *dssdev, in dss_mgr_set_timings() argument 87 omap_crtc_dss_set_timings(dssdev->dss->mgr_ops_priv, in dss_mgr_set_timings() 88 dssdev->dispc_channel, vm); in dss_mgr_set_timings() 91 void dss_mgr_set_lcd_config(struct omap_dss_device *dssdev, in dss_mgr_set_lcd_config() argument 94 omap_crtc_dss_set_lcd_config(dssdev->dss->mgr_ops_priv, in dss_mgr_set_lcd_config() 95 dssdev->dispc_channel, config); in dss_mgr_set_lcd_config() 98 int dss_mgr_enable(struct omap_dss_device *dssdev) in dss_mgr_enable() argument 100 return omap_crtc_dss_enable(dssdev->dss->mgr_ops_priv, in dss_mgr_enable() 101 dssdev->dispc_channel); in dss_mgr_enable() 104 void dss_mgr_disable(struct omap_dss_device *dssdev) in dss_mgr_disable() argument [all …]
|
D | omapdss.h | 197 int (*update)(struct omap_dss_device *dssdev); 198 bool (*is_video_mode)(struct omap_dss_device *dssdev); 239 void omapdss_device_register(struct omap_dss_device *dssdev); 240 void omapdss_device_unregister(struct omap_dss_device *dssdev); 241 struct omap_dss_device *omapdss_device_get(struct omap_dss_device *dssdev); 242 void omapdss_device_put(struct omap_dss_device *dssdev); 297 void dss_mgr_set_timings(struct omap_dss_device *dssdev, 299 void dss_mgr_set_lcd_config(struct omap_dss_device *dssdev, 301 int dss_mgr_enable(struct omap_dss_device *dssdev); 302 void dss_mgr_disable(struct omap_dss_device *dssdev); [all …]
|