| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-simple.c | 216 m->hdisplay, m->vdisplay, in panel_simple_get_display_modes() 799 .hdisplay = 1280, 825 .hdisplay = 480, 849 .hdisplay = 800, 959 .hdisplay = 1024, 984 .hdisplay = 1366, 1007 .hdisplay = 1366, 1092 .hdisplay = 800, 1116 .hdisplay = 800, 1225 .hdisplay = 1366, [all …]
|
| H A D | panel-sharp-lq101r1sx01.c | 113 err = mipi_dsi_dcs_set_column_address(left, 0, mode->hdisplay / 2 - 1); in sharp_setup_symmetrical_split() 125 err = mipi_dsi_dcs_set_column_address(right, mode->hdisplay / 2, in sharp_setup_symmetrical_split() 126 mode->hdisplay - 1); in sharp_setup_symmetrical_split() 227 .hdisplay = 2560, 245 default_mode.hdisplay, default_mode.vdisplay, in sharp_panel_get_modes()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_modes.c | 456 mode->hdisplay = hactive; in fill_analog_mode() 457 mode->hsync_start = mode->hdisplay + hfp; in fill_analog_mode() 548 unsigned int hdisplay, in drm_analog_tv_mode() argument 587 pixel_clock_hz, hdisplay, vdisplay, interlace); in drm_analog_tv_mode() 623 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument 644 if (!hdisplay || !vdisplay) in drm_cvt_mode() 665 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode() 674 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode() 696 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode() 698 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode() [all …]
|
| /linux/include/drm/ |
| H A D | drm_modes.h | 136 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ 151 .hdisplay = (hd), .hsync_start = (hd), .hsync_end = (hd), \ 259 u16 hdisplay; member 433 (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ 476 unsigned int hdisplay, 491 int hdisplay, int vdisplay, int vrefresh, 495 int hdisplay, int vdisplay, int vrefresh, 498 int hdisplay, int vdisplay, 533 int *hdisplay, int *vdisplay);
|
| /linux/drivers/gpu/drm/nouveau/dispnv04/ |
| H A D | tvnv17.c | 208 for (tv_mode = nv17_tv_modes; tv_mode->hdisplay; tv_mode++) { in nv17_tv_get_ld_modes() 222 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes() 240 int hdisplay; in nv17_tv_get_hd_modes() member 256 if (modes[i].hdisplay > output_mode->hdisplay || in nv17_tv_get_hd_modes() 260 if (modes[i].hdisplay == output_mode->hdisplay && in nv17_tv_get_hd_modes() 268 mode = drm_cvt_mode(encoder->dev, modes[i].hdisplay, in nv17_tv_get_hd_modes() 277 if (output_mode->hdisplay <= 720 in nv17_tv_get_hd_modes() 278 || output_mode->hdisplay >= 1920) { in nv17_tv_get_hd_modes() 280 mode->hsync_start = (mode->hdisplay + (mode->htotal in nv17_tv_get_hd_modes() 281 - mode->hdisplay) * 9 / 10) & ~7; in nv17_tv_get_hd_modes() [all …]
|
| H A 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 …]
|
| H A D | tvmodesnv17.c | 324 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter() 327 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter() 558 hmargin = (output_mode->hdisplay - crtc_mode->hdisplay) / 2; in nv17_ctv_update_rescaler() 561 hmargin = interpolate(0, min(hmargin, output_mode->hdisplay/20), in nv17_ctv_update_rescaler() 566 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler() 567 (output_mode->hdisplay - 2*hmargin); in nv17_ctv_update_rescaler() 572 regs->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - hmargin - 1; in nv17_ctv_update_rescaler()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_encoders.c | 169 unsigned int hblank = native_mode->htotal - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 171 unsigned int 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()
|
| H A D | amdgpu_connectors.c | 363 if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 374 } else if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 383 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in amdgpu_connector_lcd_native_mode() 429 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_connector_add_common_modes() 431 (common_modes[i].w == native_mode->hdisplay && in amdgpu_connector_add_common_modes() 611 if (mode->hdisplay != native_mode->hdisplay || in amdgpu_connector_fixup_lcd_native_mode() 620 if (mode->hdisplay == native_mode->hdisplay && in amdgpu_connector_fixup_lcd_native_mode() 678 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in amdgpu_connector_lvds_mode_valid() 688 if ((mode->hdisplay > native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() 694 if ((mode->hdisplay != native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_encoders.c | 327 unsigned int hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup() 329 unsigned int hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup() 338 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 342 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup() 343 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup() 353 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
|
| H A D | radeon_connectors.c | 433 if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 443 } else if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 452 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in radeon_fp_native_mode() 498 if (common_modes[i].w > native_mode->hdisplay || in radeon_add_common_modes() 500 (common_modes[i].w == native_mode->hdisplay && in radeon_add_common_modes() 746 if (mode->hdisplay != native_mode->hdisplay || in radeon_fixup_lvds_native_mode() 755 if (mode->hdisplay == native_mode->hdisplay && in radeon_fixup_lvds_native_mode() 813 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in radeon_lvds_mode_valid() 823 if ((mode->hdisplay > native_mode->hdisplay) || in radeon_lvds_mode_valid() 829 if ((mode->hdisplay != native_mode->hdisplay) || in radeon_lvds_mode_valid() [all …]
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | oaktrail_lvds.c | 136 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 138 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 141 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set() 230 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in oaktrail_lvds_get_configuration_mode() 232 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode() 238 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 250 pr_info("hdisplay is %d\n", mode->hdisplay); in oaktrail_lvds_get_configuration_mode()
|
| H A D | cdv_intel_lvds.c | 173 if (mode->hdisplay > fixed_mode->hdisplay) in cdv_intel_lvds_mode_valid() 208 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in cdv_intel_lvds_mode_fixup() 281 if (mode->hdisplay != adjusted_mode->hdisplay || in cdv_intel_lvds_mode_set() 373 if (crtc->saved_mode.hdisplay != 0 && in cdv_intel_lvds_set_property()
|
| H A D | psb_intel_lvds.c | 354 if (mode->hdisplay > fixed_mode->hdisplay) in psb_intel_lvds_mode_valid() 403 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in psb_intel_lvds_mode_fixup() 475 if (mode->hdisplay != adjusted_mode->hdisplay || in psb_intel_lvds_mode_set() 568 if (crtc->saved_mode.hdisplay != 0 && in psb_intel_lvds_set_property()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A 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()
|
| H A D | intel_tv.c | 1008 mode->hdisplay = in intel_tv_mode_to_mode() 1010 mode->hsync_start = mode->hdisplay + in intel_tv_mode_to_mode() 1051 mode->hdisplay, mode->vdisplay, in intel_tv_mode_to_mode() 1057 int hdisplay, int left_margin, in intel_tv_scale_mode_horiz() argument 1060 int hsync_start = mode->hsync_start - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1061 int hsync_end = mode->hsync_end - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1062 int new_htotal = mode->htotal * hdisplay / in intel_tv_scale_mode_horiz() 1063 (mode->hdisplay - left_margin - right_margin); in intel_tv_scale_mode_horiz() 1067 mode->hdisplay = hdisplay; in intel_tv_scale_mode_horiz() 1068 mode->hsync_start = hdisplay + hsync_start * new_htotal / mode->htotal; in intel_tv_scale_mode_horiz() [all …]
|
| H A D | dvo_ch7017.c | 304 horizontal_active_pixel_input = mode->hdisplay & 0x00ff; in ch7017_mode_set() 307 horizontal_active_pixel_output = mode->hdisplay & 0x00ff; in ch7017_mode_set() 309 active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | in ch7017_mode_set() 313 (mode->hdisplay & 0x0700) >> 8; in ch7017_mode_set()
|
| /linux/drivers/gpu/drm/ast/ |
| H A D | ast_dp.c | 19 unsigned int hdisplay; member 58 static int ast_astdp_get_mode_index(unsigned int hdisplay, unsigned int vdisplay) in ast_astdp_get_mode_index() argument 62 while (entry->hdisplay && entry->vdisplay) { in ast_astdp_get_mode_index() 63 if (entry->hdisplay == hdisplay && entry->vdisplay == vdisplay) in ast_astdp_get_mode_index() 309 res = ast_astdp_get_mode_index(mode->hdisplay, mode->vdisplay); in ast_astdp_encoder_helper_mode_valid() 395 res = ast_astdp_get_mode_index(mode->hdisplay, mode->vdisplay); in ast_astdp_encoder_helper_atomic_check()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_hdmi.c | 941 mode->hdisplay, mode->vdisplay, in hdmi_mode_valid() 1037 m->hdisplay, m->vdisplay, in hdmi_mode_fixup() 1220 hdmi_reg_writev(hdata, HDMI_H_BLANK_0, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply() 1230 val = (m->hsync_start - m->hdisplay - 2); in hdmi_v13_mode_apply() 1231 val |= ((m->hsync_end - m->hdisplay - 2) << 10); in hdmi_v13_mode_apply() 1260 val = ((m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v13_mode_apply() 1262 (m->hsync_start - m->hdisplay)) << 12; in hdmi_v13_mode_apply() 1289 hdmi_reg_writev(hdata, HDMI_TG_HACT_ST_L, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply() 1290 hdmi_reg_writev(hdata, HDMI_TG_HACT_SZ_L, 2, m->hdisplay); in hdmi_v13_mode_apply() 1307 (m->hdisplay == 1280 || m->hdisplay == 1024 || m->hdisplay == 1366)) in hdmi_v14_mode_apply() [all …]
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_writeback.c | 63 mode->name, mode->hdisplay, mode->vdisplay); in dpu_wb_conn_atomic_check() 65 if (fb->width != mode->hdisplay) { in dpu_wb_conn_atomic_check() 66 DPU_ERROR("invalid fb w=%d, mode w=%d\n", fb->width, mode->hdisplay); in dpu_wb_conn_atomic_check()
|
| /linux/drivers/gpu/drm/hisilicon/hibmc/ |
| H A D | hibmc_drm_de.c | 33 u64 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() 290 if (hibmc_pll_table[i].hdisplay == x && in get_pll_config() 319 x = mode->hdisplay; in display_ctrl_adjust() 371 HIBMC_FIELD(HIBMC_CRT_HORZ_TOTAL_DISP_END, mode->hdisplay - 1), in hibmc_crtc_mode_set_nofb()
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_display.c | 98 crtc->mode.hdisplay, in virtio_gpu_crtc_mode_set_nofb() 225 if (mode->hdisplay == XRES_DEF && mode->vdisplay == YRES_DEF) in virtio_gpu_conn_mode_valid() 227 if (mode->hdisplay <= width && mode->hdisplay >= width - 16 && in virtio_gpu_conn_mode_valid() 231 DRM_DEBUG("del mode: %dx%d\n", mode->hdisplay, mode->vdisplay); in virtio_gpu_conn_mode_valid()
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_modes_test.c | 55 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_ntsc_480i() 113 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_pal_576i() 171 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_mono_576i()
|
| /linux/drivers/gpu/drm/tilcdc/ |
| H A D | tilcdc_crtc.c | 316 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_set_mode() 323 mode->hdisplay, mode->vdisplay, hbp, hfp, hsw, vbp, vfp, vsw); in tilcdc_crtc_set_mode() 343 reg = (((mode->hdisplay >> 4) - 1) << 4) | in tilcdc_crtc_set_mode() 348 reg |= (((mode->hdisplay >> 4) - 1) & 0x40) >> 3; in tilcdc_crtc_set_mode() 775 if (mode->hdisplay > priv->max_width) in tilcdc_crtc_mode_valid() 779 if (mode->hdisplay & 0xf) in tilcdc_crtc_mode_valid() 786 mode->hdisplay, mode->vdisplay, in tilcdc_crtc_mode_valid() 790 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_mode_valid() 839 if (mode->hdisplay > priv->max_width) in tilcdc_crtc_mode_valid() 843 bandwidth = mode->hdisplay * mode->vdisplay * in tilcdc_crtc_mode_valid()
|
| /linux/drivers/gpu/drm/bridge/ |
| H A D | chrontel-ch7033.c | 327 if (mode->hdisplay >= 1920) in ch7033_bridge_mode_valid() 355 int hbporch = mode->hsync_start - mode->hdisplay; in ch7033_bridge_mode_set() 384 (mode->hdisplay >> 8)); in ch7033_bridge_mode_set() 385 regmap_write(priv->regmap, 0x0c, mode->hdisplay); in ch7033_bridge_mode_set() 416 (mode->hdisplay >> 8)); in ch7033_bridge_mode_set() 417 regmap_write(priv->regmap, 0x20, mode->hdisplay); in ch7033_bridge_mode_set()
|