| /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 | 355 if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 366 } else if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 375 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in amdgpu_connector_lcd_native_mode() 421 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_connector_add_common_modes() 423 (common_modes[i].w == native_mode->hdisplay && in amdgpu_connector_add_common_modes() 603 if (mode->hdisplay != native_mode->hdisplay || in amdgpu_connector_fixup_lcd_native_mode() 612 if (mode->hdisplay == native_mode->hdisplay && in amdgpu_connector_fixup_lcd_native_mode() 670 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in amdgpu_connector_lvds_mode_valid() 680 if ((mode->hdisplay > native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() 686 if ((mode->hdisplay != native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() [all …]
|
| /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/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()
|
| /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 | 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/panel/ |
| 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()
|
| H A D | panel-arm-versatile.c | 137 .hdisplay = 320, 160 .hdisplay = 640, 182 .hdisplay = 176, 205 .hdisplay = 240,
|
| H A D | panel-novatek-nt35560.c | 62 .hdisplay = 480, 81 .hdisplay = 480, 104 .hdisplay = 480, 123 .hdisplay = 480,
|
| H A D | panel-kingdisplay-kd097d04.c | 276 .hdisplay = 1536, 294 default_mode.hdisplay, default_mode.vdisplay, in kingdisplay_panel_get_modes()
|
| H A D | panel-feiyang-fy07024di26a30d.c | 141 .hdisplay = 1024, 163 feiyang_default_mode.hdisplay, in feiyang_get_modes()
|
| H A D | panel-samsung-s6e63j0x03.c | 46 .hdisplay = 320, 278 default_mode.hdisplay - 1 + FIRST_COLUMN); in s6e63j0x03_panel_init() 409 default_mode.hdisplay, default_mode.vdisplay, in s6e63j0x03_get_modes()
|
| H A D | panel-orisetech-otm8009a.c | 78 .hdisplay = 480, 92 .hdisplay = 480, 311 modes[i].hdisplay, in otm8009a_get_modes()
|
| H A D | panel-visionox-rm692e5.c | 242 .hdisplay = 1080, 256 .hdisplay = 1080, 270 .hdisplay = 1080,
|
| H A D | panel-auo-a030jtn01.c | 247 .hdisplay = 320, 259 .hdisplay = 320,
|
| H A D | panel-khadas-ts050.c | 753 .hdisplay = 1080, 772 default_mode.hdisplay, default_mode.vdisplay, in khadas_ts050_panel_get_modes()
|
| H A D | panel-visionox-rm69299.c | 240 .hdisplay = 1080, 253 .hdisplay = 1080,
|
| /linux/drivers/gpu/drm/imx/lcdc/ |
| H A D | imx-lcdc.c | 161 framesize = FIELD_PREP(IMX21LCDC_LSR_XMAX, crtc->mode.hdisplay >> 4) | in imx_lcdc_update_hw_registers() 166 lhcr = FIELD_PREP(IMX21LCDC_LHCR_HFPORCH, crtc->mode.hsync_start - crtc->mode.hdisplay - 1) | in imx_lcdc_update_hw_registers() 282 if (mode->hdisplay < LCDC_MIN_XRES || mode->hdisplay > LCDC_MAX_XRES || in imx_lcdc_pipe_check() 284 mode->hdisplay % 0x10) { /* must be multiple of 16 */ in imx_lcdc_pipe_check() 286 mode->hdisplay, mode->vdisplay); in imx_lcdc_pipe_check() 291 old_mode->hdisplay != mode->hdisplay || in imx_lcdc_pipe_check()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_txp.c | 203 int w = mode->hdisplay, h = mode->vdisplay; in vc4_txp_connector_mode_valid() 262 if (fb->width != crtc_state->mode.hdisplay || in vc4_txp_connector_atomic_check() 297 unsigned int hdisplay; in vc4_txp_connector_atomic_commit() local 346 hdisplay = mode->hdisplay ?: 1; in vc4_txp_connector_atomic_commit() 349 hdisplay -= 1; in vc4_txp_connector_atomic_commit() 354 VC4_SET_FIELD(hdisplay, TXP_WIDTH) | in vc4_txp_connector_atomic_commit()
|
| /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/aspeed/ |
| H A D | aspeed_gfx_crtc.c | 113 writel(CRT_H_TOTAL(m->htotal - 1) | CRT_H_DE(m->hdisplay - 1), in aspeed_gfx_crtc_mode_set_nofb() 129 d_offset = m->hdisplay * bpp / 8; in aspeed_gfx_crtc_mode_set_nofb() 130 t_count = DIV_ROUND_UP(m->hdisplay * bpp, priv->scan_line_max); in aspeed_gfx_crtc_mode_set_nofb()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | sharp-memory.c | 561 smd->pitch = (SHARP_ADDR_PERIOD + smd->mode->hdisplay + SHARP_DUMMY_PERIOD) / 8; in sharp_memory_probe() 563 (SHARP_ADDR_PERIOD + (smd->mode->hdisplay) + SHARP_DUMMY_PERIOD) * in sharp_memory_probe() 611 drm->mode_config.min_width = smd->mode->hdisplay; in sharp_memory_probe() 612 drm->mode_config.max_width = smd->mode->hdisplay; in sharp_memory_probe()
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | intel_bios.c | 151 panel_fixed_mode->hdisplay = (dvo_timing->hactive_hi << 8) | in fill_detail_timing_data() 153 panel_fixed_mode->hsync_start = panel_fixed_mode->hdisplay + in fill_detail_timing_data() 157 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
|