/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_panel.c | 403 if (adjusted_mode->crtc_hdisplay == pipe_src_w && in pch_panel_fitting() 412 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in pch_panel_fitting() 419 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in pch_panel_fitting() 425 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in pch_panel_fitting() 434 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting() 437 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting() 444 WARN_ON(adjusted_mode->crtc_hdisplay != pipe_src_w); in pch_panel_fitting() 449 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting() 476 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally() 479 adjusted_mode->crtc_hdisplay in centre_horizontally() [all...] |
H A D | vlv_dsi.c | 1047 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config() 1057 hactive = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1086 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1088 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1109 adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1142 crtc_htotal_sw = adjusted_mode_sw->crtc_hdisplay + hfp_sw + in bxt_dsi_get_pipe_config() 1144 crtc_hsync_start_sw = hfp_sw + adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1146 crtc_hblank_start_sw = adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1221 hactive = adjusted_mode->crtc_hdisplay; in set_dsi_timings() 1222 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings() [all...] |
H A D | dvo_ivch.c | 418 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set() 425 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_crtc.c | 58 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 59 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 62 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup() 63 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup() 66 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 67 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 69 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 70 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / in amdgpu_atombios_crtc_overscan_setup() [all...] |
H A D | amdgpu_encoders.c | 192 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_crtc.c | 57 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() [all...] |
H A D | amdgpu_encoders.c | 192 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
H A D | mdfld_intel_display.c | 742 | (min(mode->crtc_hdisplay, adjusted_mode->crtc_hdisplay) - 1)); in mdfld_crtc_mode_set() 744 REG_WRITE(map->src, ((mode->crtc_hdisplay - 1) << 16) in mdfld_crtc_mode_set() 749 (mode->crtc_hdisplay - 1)); in mdfld_crtc_mode_set() 751 ((mode->crtc_hdisplay - 1) << 16) | in mdfld_crtc_mode_set() 768 offsetX = (adjusted_mode->crtc_hdisplay - in mdfld_crtc_mode_set() 769 mode->crtc_hdisplay) / 2; in mdfld_crtc_mode_set() 773 REG_WRITE(map->htotal, (mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set() 790 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
|
H A D | oaktrail_crtc.c | 422 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set() 436 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set() 437 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set() 442 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set() 461 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
|
H A D | oaktrail_hdmi.c | 172 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate() 333 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 335 REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 1) << 16)); in oaktrail_crtc_hdmi_mode_set() 341 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 344 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
|
H A D | oaktrail_lvds.c | 135 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 136 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set() 139 else if ((adjusted_mode->crtc_hdisplay * in oaktrail_lvds_mode_set()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/kmb/ |
H A D | kmb_crtc.c | 84 m->crtc_hsync_start - m->crtc_hdisplay, in kmb_crtc_set_mode() 100 vm.vsync_len, m->crtc_hdisplay, vm.hback_porch, in kmb_crtc_set_mode() 108 m->crtc_hdisplay - 1); in kmb_crtc_set_mode()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/gma500/ |
H A D | oaktrail_crtc.c | 430 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set() 440 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set() 441 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set() 446 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set() 465 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
|
H A D | oaktrail_hdmi.c | 175 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate() 336 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 338 REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 1) << 16)); in oaktrail_crtc_hdmi_mode_set() 344 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 347 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
|
H A D | oaktrail_lvds.c | 137 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 138 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set() 141 else if ((adjusted_mode->crtc_hdisplay * in oaktrail_lvds_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_panel.c | 185 if (adjusted_mode->crtc_hdisplay == crtc_state->pipe_src_w && in intel_pch_panel_fitting() 194 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting() 201 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting() 209 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in intel_pch_panel_fitting() 218 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 221 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 228 WARN_ON(adjusted_mode->crtc_hdisplay != crtc_state->pipe_src_w); in intel_pch_panel_fitting() 233 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 260 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally() 263 adjusted_mode->crtc_hdisplay in centre_horizontally() [all...] |
H A D | vlv_dsi.c | 1114 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config() 1124 hactive = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1154 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1156 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1177 adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1210 crtc_htotal_sw = adjusted_mode_sw->crtc_hdisplay + hfp_sw + in bxt_dsi_get_pipe_config() 1212 crtc_hsync_start_sw = hfp_sw + adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1214 crtc_hblank_start_sw = adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1285 hactive = adjusted_mode->crtc_hdisplay; in set_dsi_timings() 1286 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings() [all...] |
H A D | dvo_ivch.c | 418 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set() 425 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arc/ |
H A D | arcpgu_crtc.c | 86 ENCODE_PGU_XY(m->crtc_hsync_start - m->crtc_hdisplay, in arc_pgu_crtc_mode_set_nofb() 87 m->crtc_hsync_end - m->crtc_hdisplay)); in arc_pgu_crtc_mode_set_nofb()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | atombios_crtc.c | 57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 61 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup() 62 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup() 65 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 66 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 68 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup() 69 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / in atombios_overscan_setup() [all...] |
H A D | radeon_encoders.c | 356 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 360 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup() 361 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | atombios_crtc.c | 57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 61 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup() 62 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup() 65 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 66 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 68 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup() 69 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / in atombios_overscan_setup() [all...] |
H A D | radeon_encoders.c | 352 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 356 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup() 357 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/ |
H A D | hdlcd_crtc.c | 138 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; in hdlcd_crtc_mode_set_nofb() 157 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/ |
H A D | hdlcd_crtc.c | 137 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; in hdlcd_crtc_mode_set_nofb() 156 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
|