/kernel/linux/linux-5.10/drivers/gpu/drm/panel/ |
D | panel-simple.c | 168 m->hdisplay, m->vdisplay, in panel_simple_get_display_modes() 665 .hdisplay = 1280, 691 .hdisplay = 480, 715 .hdisplay = 800, 765 .hdisplay = 1024, 812 .hdisplay = 1366, 835 .hdisplay = 1366, 863 .hdisplay = 1366, 892 .hdisplay = 1366, 914 .hdisplay = 1920, [all …]
|
D | panel-arm-versatile.c | 138 .hdisplay = 320, 161 .hdisplay = 640, 183 .hdisplay = 176, 206 .hdisplay = 240,
|
D | panel-sharp-lq101r1sx01.c | 133 err = mipi_dsi_dcs_set_column_address(left, 0, mode->hdisplay / 2 - 1); in sharp_setup_symmetrical_split() 145 err = mipi_dsi_dcs_set_column_address(right, mode->hdisplay / 2, in sharp_setup_symmetrical_split() 146 mode->hdisplay - 1); in sharp_setup_symmetrical_split() 264 .hdisplay = 2560, 282 default_mode.hdisplay, default_mode.vdisplay, in sharp_panel_get_modes()
|
D | panel-tpo-tpg110.c | 106 .hdisplay = 800, 122 .hdisplay = 640, 138 .hdisplay = 480, 154 .hdisplay = 480, 170 .hdisplay = 400,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tve200/ |
D | tve200_display.c | 82 if (!(mode->hdisplay == 352 && mode->vdisplay == 240) && /* SIF(525) */ in tve200_display_check() 83 !(mode->hdisplay == 352 && mode->vdisplay == 288) && /* CIF(625) */ in tve200_display_check() 84 !(mode->hdisplay == 640 && mode->vdisplay == 480) && /* VGA */ in tve200_display_check() 85 !(mode->hdisplay == 720 && mode->vdisplay == 480) && /* D1 */ in tve200_display_check() 86 !(mode->hdisplay == 720 && mode->vdisplay == 576)) { /* D1 */ in tve200_display_check() 88 mode->hdisplay, mode->vdisplay); in tve200_display_check() 105 if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) { in tve200_display_check() 171 if ((mode->hdisplay == 352 && mode->vdisplay == 240) || /* SIF(525) */ in tve200_display_enable() 172 (mode->hdisplay == 352 && mode->vdisplay == 288)) { /* CIF(625) */ in tve200_display_enable() 175 } else if (mode->hdisplay == 640 && mode->vdisplay == 480) { in tve200_display_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_modes.c | 140 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument 161 if (!hdisplay || !vdisplay) in drm_cvt_mode() 182 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode() 191 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode() 213 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode() 215 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode() 217 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode() 219 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode() 221 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode() 273 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode() [all …]
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_modes.h | 136 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ 153 .hdisplay = (hd), .hsync_start = (hd), .hsync_end = (hd), \ 231 u16 hdisplay; member 405 (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ 444 int hdisplay, int vdisplay, int vrefresh, 448 int hdisplay, int vdisplay, int vrefresh, 451 int hdisplay, int vdisplay, 468 int *hdisplay, int *vdisplay);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_encoders.c | 169 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 171 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 179 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup() 182 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup() 183 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in amdgpu_panel_mode_fixup() 192 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
|
D | amdgpu_connectors.c | 388 if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 399 } else if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 408 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in amdgpu_connector_lcd_native_mode() 456 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_connector_add_common_modes() 458 (common_modes[i].w == native_mode->hdisplay && in amdgpu_connector_add_common_modes() 626 if (mode->hdisplay != native_mode->hdisplay || in amdgpu_connector_fixup_lcd_native_mode() 635 if (mode->hdisplay == native_mode->hdisplay && in amdgpu_connector_fixup_lcd_native_mode() 693 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in amdgpu_connector_lvds_mode_valid() 703 if ((mode->hdisplay > native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() 709 if ((mode->hdisplay != native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/ |
D | tvnv17.c | 207 for (tv_mode = nv17_tv_modes; tv_mode->hdisplay; tv_mode++) { in nv17_tv_get_ld_modes() 219 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes() 237 int hdisplay; in nv17_tv_get_hd_modes() member 253 if (modes[i].hdisplay > output_mode->hdisplay || in nv17_tv_get_hd_modes() 257 if (modes[i].hdisplay == output_mode->hdisplay && in nv17_tv_get_hd_modes() 263 mode = drm_cvt_mode(encoder->dev, modes[i].hdisplay, in nv17_tv_get_hd_modes() 270 if (output_mode->hdisplay <= 720 in nv17_tv_get_hd_modes() 271 || output_mode->hdisplay >= 1920) { in nv17_tv_get_hd_modes() 273 mode->hsync_start = (mode->hdisplay + (mode->htotal in nv17_tv_get_hd_modes() 274 - mode->hdisplay) * 9 / 10) & ~7; in nv17_tv_get_hd_modes() [all …]
|
D | dfp.c | 192 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup() 301 regp->fp_horiz_regs[FP_DISPLAY_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 304 (output_mode->hsync_start - output_mode->hdisplay) >= in nv04_dfp_mode_set() 306 regp->fp_horiz_regs[FP_CRTC] = output_mode->hdisplay; in nv04_dfp_mode_set() 312 regp->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 335 else if (adjusted_mode->hdisplay == output_mode->hdisplay && in nv04_dfp_mode_set() 375 mode_ratio = (1 << 12) * adjusted_mode->hdisplay / adjusted_mode->vdisplay; in nv04_dfp_mode_set() 376 panel_ratio = (1 << 12) * output_mode->hdisplay / output_mode->vdisplay; in nv04_dfp_mode_set() 394 diff = output_mode->hdisplay - in nv04_dfp_mode_set() 405 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set() [all …]
|
D | tvmodesnv17.c | 325 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter() 328 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter() 559 hmargin = (output_mode->hdisplay - crtc_mode->hdisplay) / 2; in nv17_ctv_update_rescaler() 562 hmargin = interpolate(0, min(hmargin, output_mode->hdisplay/20), in nv17_ctv_update_rescaler() 567 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler() 568 (output_mode->hdisplay - 2*hmargin); in nv17_ctv_update_rescaler() 573 regs->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - hmargin - 1; in nv17_ctv_update_rescaler()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
D | mdfld_tmd_vid.c | 47 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode() 49 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode() 55 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode() 67 dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); in tmd_vid_get_config_mode() 77 mode->hdisplay = 480; in tmd_vid_get_config_mode()
|
D | oaktrail_lvds.c | 135 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 137 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 140 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set() 229 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in oaktrail_lvds_get_configuration_mode() 231 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode() 237 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 249 pr_info("hdisplay is %d\n", mode->hdisplay); in oaktrail_lvds_get_configuration_mode()
|
D | cdv_intel_lvds.c | 170 if (mode->hdisplay > fixed_mode->hdisplay) in cdv_intel_lvds_mode_valid() 205 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in cdv_intel_lvds_mode_fixup() 278 if (mode->hdisplay != adjusted_mode->hdisplay || in cdv_intel_lvds_mode_set() 374 if (crtc->saved_mode.hdisplay != 0 && in cdv_intel_lvds_set_property()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_encoders.c | 330 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup() 332 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup() 341 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 345 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup() 346 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup() 356 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tilcdc/ |
D | tilcdc_plane.c | 48 if (crtc_state->mode.hdisplay != state->crtc_w || in tilcdc_plane_atomic_check() 52 crtc_state->mode.hdisplay, crtc_state->mode.vdisplay, in tilcdc_plane_atomic_check() 57 pitch = crtc_state->mode.hdisplay * in tilcdc_plane_atomic_check()
|
D | tilcdc_crtc.c | 317 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_set_mode() 324 mode->hdisplay, mode->vdisplay, hbp, hfp, hsw, vbp, vfp, vsw); in tilcdc_crtc_set_mode() 344 reg = (((mode->hdisplay >> 4) - 1) << 4) | in tilcdc_crtc_set_mode() 349 reg |= (((mode->hdisplay >> 4) - 1) & 0x40) >> 3; in tilcdc_crtc_set_mode() 762 if (mode->hdisplay > tilcdc_crtc_max_width(crtc)) in tilcdc_crtc_mode_valid() 766 if (mode->hdisplay & 0xf) in tilcdc_crtc_mode_valid() 773 mode->hdisplay, mode->vdisplay, in tilcdc_crtc_mode_valid() 777 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_mode_valid() 826 if (mode->hdisplay > priv->max_width) in tilcdc_crtc_mode_valid() 830 bandwidth = mode->hdisplay * mode->vdisplay * in tilcdc_crtc_mode_valid()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | dvo_ns2501.c | 532 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid() 540 if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || in ns2501_mode_valid() 541 (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || in ns2501_mode_valid() 542 (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { in ns2501_mode_valid() 559 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set() 591 if (mode->hdisplay == 640 && mode->vdisplay == 480) in ns2501_mode_set() 593 else if (mode->hdisplay == 800 && mode->vdisplay == 600) in ns2501_mode_set() 595 else if (mode->hdisplay == 1024 && mode->vdisplay == 768) in ns2501_mode_set()
|
D | intel_tv.c | 1000 mode->hdisplay = in intel_tv_mode_to_mode() 1002 mode->hsync_start = mode->hdisplay + in intel_tv_mode_to_mode() 1043 mode->hdisplay, mode->vdisplay, in intel_tv_mode_to_mode() 1049 int hdisplay, int left_margin, in intel_tv_scale_mode_horiz() argument 1052 int hsync_start = mode->hsync_start - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1053 int hsync_end = mode->hsync_end - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1054 int new_htotal = mode->htotal * hdisplay / in intel_tv_scale_mode_horiz() 1055 (mode->hdisplay - left_margin - right_margin); in intel_tv_scale_mode_horiz() 1059 mode->hdisplay = hdisplay; in intel_tv_scale_mode_horiz() 1060 mode->hsync_start = hdisplay + hsync_start * new_htotal / mode->htotal; in intel_tv_scale_mode_horiz() [all …]
|
D | dvo_ch7017.c | 302 horizontal_active_pixel_input = mode->hdisplay & 0x00ff; in ch7017_mode_set() 305 horizontal_active_pixel_output = mode->hdisplay & 0x00ff; in ch7017_mode_set() 307 active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | in ch7017_mode_set() 311 (mode->hdisplay & 0x0700) >> 8; in ch7017_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/pl111/ |
D | pl111_display.c | 63 bw = bw * mode->hdisplay * mode->vdisplay * cpp; in pl111_mode_valid() 72 mode->hdisplay, mode->vdisplay, in pl111_mode_valid() 78 mode->hdisplay, mode->vdisplay, in pl111_mode_valid() 92 if (mode->hdisplay % 16) in pl111_display_check() 105 if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) in pl111_display_check() 146 ppl = (mode->hdisplay / 16) - 1; in pl111_display_enable() 148 hfp = mode->hsync_start - mode->hdisplay - 1; in pl111_display_enable() 156 cpl = mode->hdisplay - 1; in pl111_display_enable()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
D | virtgpu_display.c | 92 crtc->mode.hdisplay, in virtio_gpu_crtc_mode_set_nofb() 202 if (mode->hdisplay == XRES_DEF && mode->vdisplay == YRES_DEF) in virtio_gpu_conn_mode_valid() 204 if (mode->hdisplay <= width && mode->hdisplay >= width - 16 && in virtio_gpu_conn_mode_valid() 208 DRM_DEBUG("del mode: %dx%d\n", mode->hdisplay, mode->vdisplay); in virtio_gpu_conn_mode_valid()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
D | exynos_hdmi.c | 924 mode->hdisplay, mode->vdisplay, in hdmi_mode_valid() 1023 m->hdisplay, m->vdisplay, in hdmi_mode_fixup() 1206 hdmi_reg_writev(hdata, HDMI_H_BLANK_0, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply() 1216 val = (m->hsync_start - m->hdisplay - 2); in hdmi_v13_mode_apply() 1217 val |= ((m->hsync_end - m->hdisplay - 2) << 10); in hdmi_v13_mode_apply() 1246 val = ((m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v13_mode_apply() 1248 (m->hsync_start - m->hdisplay)) << 12; in hdmi_v13_mode_apply() 1275 hdmi_reg_writev(hdata, HDMI_TG_HACT_ST_L, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply() 1276 hdmi_reg_writev(hdata, HDMI_TG_HACT_SZ_L, 2, m->hdisplay); in hdmi_v13_mode_apply() 1293 (m->hdisplay == 1280 || m->hdisplay == 1024 || m->hdisplay == 1366)) in hdmi_v14_mode_apply() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/hisilicon/hibmc/ |
D | hibmc_drm_de.c | 33 unsigned long hdisplay; member 87 crtc_state->adjusted_mode.hdisplay || in hibmc_plane_atomic_check() 224 if (hibmc_pll_table[i].hdisplay == mode->hdisplay && in hibmc_crtc_mode_valid() 291 if (hibmc_pll_table[i].hdisplay == x && in get_pll_config() 320 x = mode->hdisplay; in display_ctrl_adjust() 372 HIBMC_FIELD(HIBMC_CRT_HORZ_TOTAL_DISP_END, mode->hdisplay - 1), in hibmc_crtc_mode_set_nofb()
|