Home
last modified time | relevance | path

Searched refs:crtc_hdisplay (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/gpu/drm/amd/amdgpu/
H A Datombios_crtc.c57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
61 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup()
62 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup()
65 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
66 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in amdgpu_atombios_crtc_overscan_setup()
68 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
69 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in amdgpu_atombios_crtc_overscan_setup()
200 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (amdgpu_crtc->h_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing()
202 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (amdgpu_crtc->h_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing()
[all …]
H A Damdgpu_encoders.c192 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
195 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in amdgpu_panel_mode_fixup()
196 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in amdgpu_panel_mode_fixup()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_encoders.c353 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
357 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup()
358 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup()
H A Datombios_crtc.c59 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
60 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
63 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup()
64 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup()
67 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup()
68 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in atombios_overscan_setup()
70 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup()
71 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in atombios_overscan_setup()
315 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing()
317 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing()
[all …]
H A Drs690.c253 rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); in rs690_line_buffer_adjust()
256 rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); in rs690_line_buffer_adjust()
310 b.full = dfixed_const(mode->crtc_hdisplay); in rs690_crtc_bandwidth_compute()
360 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
443 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
450 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rs690_crtc_bandwidth_compute()
H A Drv515.c958 b.full = dfixed_const(mode->crtc_hdisplay); in rv515_crtc_bandwidth_compute()
1008 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute()
1062 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute()
1069 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rv515_crtc_bandwidth_compute()
H A Dradeon_cursor.c193 frame_end = crtc->x + crtc->mode.crtc_hdisplay; in radeon_cursor_move_locked()
H A Dr100.c3669 rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); in r100_bandwidth_update()
3672 rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); in r100_bandwidth_update()
/linux/drivers/gpu/drm/i915/display/
H A Ddvo_ivch.c420 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set()
427 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
H A Dintel_psr.c1229 const int crtc_hdisplay = crtc_state->hw.adjusted_mode.crtc_hdisplay; in psr2_granularity_check() local
1240 crtc_hdisplay : connector->dp.panel_replay_caps.su_w_granularity; in psr2_granularity_check()
1245 if (crtc_hdisplay % sink_w_granularity) in psr2_granularity_check()
1490 int crtc_hdisplay = crtc_state->hw.adjusted_mode.crtc_hdisplay; in intel_psr2_config_valid() local
1536 psr_max_h = crtc_hdisplay; in intel_psr2_config_valid()
1572 (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { in intel_psr2_config_valid()
1575 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid()
2894 .x2 = crtc_state->hw.adjusted_mode.crtc_hdisplay, in intel_psr2_sel_fetch_update()
H A Ddvo_ns2501.c577 adjusted_mode->crtc_hdisplay, in ns2501_mode_set()
H A Dintel_dp.c2407 adjusted_mode->crtc_hdisplay, num_joined_pipes, in intel_dp_dsc_compute_config()
3491 adjusted_mode->crtc_hdisplay, in intel_dp_compute_min_hblank()
3577 if (intel_dp_hdisplay_bad(display, adjusted_mode->crtc_hdisplay)) in intel_dp_compute_config()
3623 adjusted_mode->crtc_hdisplay = adjusted_mode->crtc_hdisplay / n + overlap; in intel_dp_compute_config()
H A Dintel_bios.c3624 if (crtc_state->hw.adjusted_mode.crtc_hdisplay % in fill_dsc()
3628 crtc_state->hw.adjusted_mode.crtc_hdisplay, in fill_dsc()
/linux/drivers/gpu/drm/tiny/
H A Darcpgu.c165 ENCODE_PGU_XY(m->crtc_hsync_start - m->crtc_hdisplay, in arc_pgu_mode_set()
166 m->crtc_hsync_end - m->crtc_hdisplay)); in arc_pgu_mode_set()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/
H A Damdgpu_dm_connector_test.c1289 src.crtc_hdisplay = 1920; in dm_test_copy_crtc_timing_copies_all_fields()
1306 KUNIT_EXPECT_EQ(test, dst.crtc_hdisplay, 1920); in dm_test_copy_crtc_timing_copies_all_fields()
1331 src.crtc_hdisplay = 1280; in dm_test_copy_crtc_timing_leaves_non_crtc_fields()
1341 KUNIT_EXPECT_EQ(test, dst.crtc_hdisplay, 1280); in dm_test_copy_crtc_timing_leaves_non_crtc_fields()
1360 native_mode.crtc_hdisplay = 1920; in dm_test_decide_crtc_timing_scale_enabled()
1377 KUNIT_EXPECT_EQ(test, drm_mode.crtc_hdisplay, 1920); in dm_test_decide_crtc_timing_scale_enabled()
1396 native_mode.crtc_hdisplay = 1920; in dm_test_decide_crtc_timing_matching_mode()
1409 KUNIT_EXPECT_EQ(test, drm_mode.crtc_hdisplay, 1920); in dm_test_decide_crtc_timing_matching_mode()
1426 native_mode.crtc_hdisplay = 1920; in dm_test_decide_crtc_timing_no_copy()
1436 KUNIT_EXPECT_EQ(test, drm_mode.crtc_hdisplay, 0); in dm_test_decide_crtc_timing_no_copy()
[all …]
H A Damdgpu_dm_plane_test.c642 new_crtc_state->mode.crtc_hdisplay = 100; in dm_test_helper_check_state_viewport_reject()
2276 new_crtc_state->mode.crtc_hdisplay = 1920; in dm_test_helper_check_state_small_viewport_width()
2317 new_crtc_state->mode.crtc_hdisplay = 1920; in dm_test_helper_check_state_small_viewport_height()
2359 new_crtc_state->mode.crtc_hdisplay = 1920; in dm_test_helper_check_state_bottom_clipped_height()
2419 new_crtc_state->mode.crtc_hdisplay = 1920; in dm_test_helper_check_state_scaling_caps()
2728 (*new_crtc_state)->mode.crtc_hdisplay = 1920; in dm_test_init_atomic_check_state()
/linux/drivers/gpu/drm/imx/dc/
H A Ddc-fg.c147 hact = m->crtc_hdisplay; in dc_fg_cfg_videomode()
/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Dcrtc.c245 int horizDisplay = (mode->crtc_hdisplay >> 3) - 1; in nv_crtc_mode_set_vga()
249 int horizBlankStart = (mode->crtc_hdisplay >> 3) - 1; in nv_crtc_mode_set_vga()
392 regp->CRTC[NV_CIO_CRE_RPC1_INDEX] = mode->crtc_hdisplay < 1280 ? in nv_crtc_mode_set_vga()
/linux/drivers/gpu/drm/gma500/
H A Dpsb_intel_display.c268 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in psb_intel_crtc_mode_set()
H A Dcdv_intel_display.c784 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in cdv_intel_crtc_mode_set()
H A Dpsb_intel_sdvo.c760 width = mode->crtc_hdisplay; in psb_intel_sdvo_get_dtd_from_mode()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_connector.c941 timing_out->h_addressable = mode_in->crtc_hdisplay; in fill_stream_properties_from_drm_display_mode()
944 timing_out->h_front_porch = mode_in->crtc_hsync_start - mode_in->crtc_hdisplay; in fill_stream_properties_from_drm_display_mode()
975 dst_mode->crtc_hdisplay = src_mode->crtc_hdisplay; in copy_crtc_timing_for_drm_display_mode()
H A Damdgpu_dm_plane.c1405 else if (state->crtc_x + state->crtc_w > new_crtc_state->mode.crtc_hdisplay) in amdgpu_dm_plane_helper_check_state()
1406 viewport_width = new_crtc_state->mode.crtc_hdisplay - state->crtc_x; in amdgpu_dm_plane_helper_check_state()
H A Damdgpu_dm.c3268 dm_crtc_state->base.mode.crtc_hdisplay, in fill_dc_dirty_rects()
4718 wb_info->dwb_params.cnv_params.src_width = acrtc->base.mode.crtc_hdisplay; in dm_set_writeback()
4720 wb_info->dwb_params.dest_width = acrtc->base.mode.crtc_hdisplay; in dm_set_writeback()
/linux/drivers/gpu/drm/rockchip/
H A Drockchip_vop2_reg.c2453 u16 hdisplay = mode->crtc_hdisplay; in rk3568_vop2_setup_bg_dly()
2470 u16 hdisplay = mode->crtc_hdisplay; in rk3576_vop2_setup_bg_dly()

12