/Linux-v4.19/drivers/gpu/drm/panel/ |
D | panel-simple.c | 136 m->hdisplay, m->vdisplay, m->vrefresh); in panel_simple_get_fixed_modes() 391 .hdisplay = 480, 416 .hdisplay = 800, 441 .hdisplay = 1024, 464 .hdisplay = 1280, 487 .hdisplay = 1366, 511 .hdisplay = 1366, 534 .hdisplay = 1366, 557 .hdisplay = 1920, 613 .hdisplay = 800, [all …]
|
D | panel-arm-versatile.c | 136 .hdisplay = 320, 160 .hdisplay = 640, 183 .hdisplay = 176, 207 .hdisplay = 240,
|
D | panel-sharp-lq101r1sx01.c | 139 err = mipi_dsi_dcs_set_column_address(left, 0, mode->hdisplay / 2 - 1); in sharp_setup_symmetrical_split() 151 err = mipi_dsi_dcs_set_column_address(right, mode->hdisplay / 2, in sharp_setup_symmetrical_split() 152 mode->hdisplay - 1); in sharp_setup_symmetrical_split() 272 .hdisplay = 2560, 290 default_mode.hdisplay, default_mode.vdisplay, in sharp_panel_get_modes()
|
/Linux-v4.19/drivers/gpu/drm/tve200/ |
D | tve200_display.c | 83 if (!(mode->hdisplay == 352 && mode->vdisplay == 240) && /* SIF(525) */ in tve200_display_check() 84 !(mode->hdisplay == 352 && mode->vdisplay == 288) && /* CIF(625) */ in tve200_display_check() 85 !(mode->hdisplay == 640 && mode->vdisplay == 480) && /* VGA */ in tve200_display_check() 86 !(mode->hdisplay == 720 && mode->vdisplay == 480) && /* D1 */ in tve200_display_check() 87 !(mode->hdisplay == 720 && mode->vdisplay == 576)) { /* D1 */ in tve200_display_check() 89 mode->hdisplay, mode->vdisplay); in tve200_display_check() 106 if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) { in tve200_display_check() 155 if ((mode->hdisplay == 352 && mode->vdisplay == 240) || /* SIF(525) */ in tve200_display_enable() 156 (mode->hdisplay == 352 && mode->vdisplay == 288)) { /* CIF(625) */ in tve200_display_enable() 159 } else if (mode->hdisplay == 640 && mode->vdisplay == 480) { in tve200_display_enable() [all …]
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_modes.c | 143 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument 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() 277 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_encoders.c | 152 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 154 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 162 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup() 165 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup() 166 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in amdgpu_panel_mode_fixup() 175 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
|
D | amdgpu_connectors.c | 387 if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 395 } else if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 404 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in amdgpu_connector_lcd_native_mode() 449 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_connector_add_common_modes() 451 (common_modes[i].w == native_mode->hdisplay && in amdgpu_connector_add_common_modes() 619 if (mode->hdisplay != native_mode->hdisplay || in amdgpu_connector_fixup_lcd_native_mode() 628 if (mode->hdisplay == native_mode->hdisplay && in amdgpu_connector_fixup_lcd_native_mode() 686 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in amdgpu_connector_lvds_mode_valid() 696 if ((mode->hdisplay > native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() 702 if ((mode->hdisplay != native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() [all …]
|
D | amdgpu_display.c | 645 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ in amdgpu_display_is_hdtv_mode() 680 else if (mode->hdisplay < amdgpu_encoder->native_mode.hdisplay || in amdgpu_display_crtc_scaling_mode_fixup() 691 src_h = crtc->mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 692 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 703 amdgpu_crtc->h_border = (mode->hdisplay >> 5) + 16; in amdgpu_display_crtc_scaling_mode_fixup() 711 src_h = crtc->mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 712 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_display_crtc_scaling_mode_fixup()
|
/Linux-v4.19/include/drm/ |
D | drm_modes.h | 136 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ 279 int hdisplay; member 440 (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ 479 int hdisplay, int vdisplay, int vrefresh, 483 int hdisplay, int vdisplay, int vrefresh, 486 int hdisplay, int vdisplay, 504 int *hdisplay, int *vdisplay);
|
/Linux-v4.19/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 | 191 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup() 300 regp->fp_horiz_regs[FP_DISPLAY_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 303 (output_mode->hsync_start - output_mode->hdisplay) >= in nv04_dfp_mode_set() 305 regp->fp_horiz_regs[FP_CRTC] = output_mode->hdisplay; in nv04_dfp_mode_set() 311 regp->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 334 else if (adjusted_mode->hdisplay == output_mode->hdisplay && in nv04_dfp_mode_set() 374 mode_ratio = (1 << 12) * adjusted_mode->hdisplay / adjusted_mode->vdisplay; in nv04_dfp_mode_set() 375 panel_ratio = (1 << 12) * output_mode->hdisplay / output_mode->vdisplay; in nv04_dfp_mode_set() 393 diff = output_mode->hdisplay - in nv04_dfp_mode_set() 404 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set() [all …]
|
D | tvmodesnv17.c | 326 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter() 329 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter() 560 hmargin = (output_mode->hdisplay - crtc_mode->hdisplay) / 2; in nv17_ctv_update_rescaler() 563 hmargin = interpolate(0, min(hmargin, output_mode->hdisplay/20), in nv17_ctv_update_rescaler() 568 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler() 569 (output_mode->hdisplay - 2*hmargin); in nv17_ctv_update_rescaler() 574 regs->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - hmargin - 1; in nv17_ctv_update_rescaler()
|
/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | mdfld_tmd_vid.c | 45 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode() 47 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode() 53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode() 65 dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); in tmd_vid_get_config_mode() 75 mode->hdisplay = 480; in tmd_vid_get_config_mode()
|
D | oaktrail_lvds.c | 144 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 146 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 149 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set() 238 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in oaktrail_lvds_get_configuration_mode() 240 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode() 246 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 258 pr_info("hdisplay is %d\n", mode->hdisplay); in oaktrail_lvds_get_configuration_mode()
|
D | cdv_intel_lvds.c | 264 if (mode->hdisplay > fixed_mode->hdisplay) in cdv_intel_lvds_mode_valid() 299 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in cdv_intel_lvds_mode_fixup() 372 if (mode->hdisplay != adjusted_mode->hdisplay || in cdv_intel_lvds_mode_set() 468 if (crtc->saved_mode.hdisplay != 0 && in cdv_intel_lvds_set_property()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_encoders.c | 326 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup() 328 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup() 337 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 341 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup() 342 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup() 352 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
|
/Linux-v4.19/drivers/gpu/drm/tilcdc/ |
D | tilcdc_plane.c | 61 if (crtc_state->mode.hdisplay != state->crtc_w || in tilcdc_plane_atomic_check() 65 crtc_state->mode.hdisplay, crtc_state->mode.vdisplay, in tilcdc_plane_atomic_check() 70 pitch = crtc_state->mode.hdisplay * in tilcdc_plane_atomic_check()
|
D | tilcdc_crtc.c | 324 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_set_mode() 331 mode->hdisplay, mode->vdisplay, hbp, hfp, hsw, vbp, vfp, vsw); in tilcdc_crtc_set_mode() 351 reg = (((mode->hdisplay >> 4) - 1) << 4) | in tilcdc_crtc_set_mode() 356 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()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | dvo_ns2501.c | 531 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid() 539 if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || in ns2501_mode_valid() 540 (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || in ns2501_mode_valid() 541 (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { in ns2501_mode_valid() 558 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set() 590 if (mode->hdisplay == 640 && mode->vdisplay == 480) in ns2501_mode_set() 592 else if (mode->hdisplay == 800 && mode->vdisplay == 600) in ns2501_mode_set() 594 else if (mode->hdisplay == 1024 && mode->vdisplay == 768) in ns2501_mode_set()
|
D | dvo_ch7017.c | 301 horizontal_active_pixel_input = mode->hdisplay & 0x00ff; in ch7017_mode_set() 304 horizontal_active_pixel_output = mode->hdisplay & 0x00ff; in ch7017_mode_set() 306 active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | in ch7017_mode_set() 310 (mode->hdisplay & 0x0700) >> 8; in ch7017_mode_set()
|
/Linux-v4.19/drivers/gpu/drm/pl111/ |
D | pl111_display.c | 67 bw = bw * mode->hdisplay * mode->vdisplay * cpp; in pl111_mode_valid() 76 mode->hdisplay, mode->vdisplay, in pl111_mode_valid() 82 mode->hdisplay, mode->vdisplay, in pl111_mode_valid() 96 if (mode->hdisplay % 16) in pl111_display_check() 109 if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) in pl111_display_check() 149 ppl = (mode->hdisplay / 16) - 1; in pl111_display_enable() 151 hfp = mode->hsync_start - mode->hdisplay - 1; in pl111_display_enable() 159 cpl = mode->hdisplay - 1; in pl111_display_enable()
|
/Linux-v4.19/drivers/gpu/drm/exynos/ |
D | exynos_hdmi.c | 921 mode->hdisplay, mode->vdisplay, mode->vrefresh, in hdmi_mode_valid() 1005 m->hdisplay, m->vdisplay, m->vrefresh); in hdmi_mode_fixup() 1185 hdmi_reg_writev(hdata, HDMI_H_BLANK_0, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply() 1195 val = (m->hsync_start - m->hdisplay - 2); in hdmi_v13_mode_apply() 1196 val |= ((m->hsync_end - m->hdisplay - 2) << 10); in hdmi_v13_mode_apply() 1225 val = ((m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v13_mode_apply() 1227 (m->hsync_start - m->hdisplay)) << 12; in hdmi_v13_mode_apply() 1254 hdmi_reg_writev(hdata, HDMI_TG_HACT_ST_L, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply() 1255 hdmi_reg_writev(hdata, HDMI_TG_HACT_SZ_L, 2, m->hdisplay); in hdmi_v13_mode_apply() 1272 (m->hdisplay == 1280 || m->hdisplay == 1024 || m->hdisplay == 1366)) in hdmi_v14_mode_apply() [all …]
|
/Linux-v4.19/drivers/gpu/drm/virtio/ |
D | virtgpu_display.c | 105 crtc->mode.hdisplay, in virtio_gpu_crtc_mode_set_nofb() 203 if (mode->hdisplay == XRES_DEF && mode->vdisplay == YRES_DEF) in virtio_gpu_conn_mode_valid() 205 if (mode->hdisplay <= width && mode->hdisplay >= width - 16 && in virtio_gpu_conn_mode_valid() 209 DRM_DEBUG("del mode: %dx%d\n", mode->hdisplay, mode->vdisplay); in virtio_gpu_conn_mode_valid()
|
/Linux-v4.19/drivers/gpu/drm/tinydrm/core/ |
D | tinydrm-pipe.c | 147 swap(mode->hdisplay, mode->vdisplay); in tinydrm_rotate_mode() 195 drm->mode_config.min_width = mode_copy.hdisplay; in tinydrm_display_pipe_init() 196 drm->mode_config.max_width = mode_copy.hdisplay; in tinydrm_display_pipe_init()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_connector.c | 76 if (mode->hdisplay < high_w) in nouveau_conn_native_mode() 79 if (mode->hdisplay == high_w && mode->vdisplay < high_h) in nouveau_conn_native_mode() 82 if (mode->hdisplay == high_w && mode->vdisplay == high_h && in nouveau_conn_native_mode() 86 high_w = mode->hdisplay; in nouveau_conn_native_mode() 781 int hdisplay; member 815 while (mode->hdisplay) { in nouveau_connector_scaler_modes_add() 816 if (mode->hdisplay <= native->hdisplay && in nouveau_connector_scaler_modes_add() 818 (mode->hdisplay != native->hdisplay || in nouveau_connector_scaler_modes_add() 820 m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay, in nouveau_connector_scaler_modes_add() 995 (mode->hdisplay > nv_connector->native_mode->hdisplay || in nouveau_connector_mode_valid()
|