Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
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 …]
Damdgpu_encoders.c175 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
178 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in amdgpu_panel_mode_fixup()
179 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in amdgpu_panel_mode_fixup()
Ddce_v8_0.c759 if (mode->crtc_hdisplay < 1920) { in dce_v8_0_line_buffer_adjust()
762 } else if (mode->crtc_hdisplay < 2560) { in dce_v8_0_line_buffer_adjust()
765 } else if (mode->crtc_hdisplay < 4096) { in dce_v8_0_line_buffer_adjust()
1214 wm_high.src_width = mode->crtc_hdisplay; in dce_v8_0_program_watermarks()
1215 wm_high.active_time = mode->crtc_hdisplay * pixel_period; in dce_v8_0_program_watermarks()
1253 wm_low.src_width = mode->crtc_hdisplay; in dce_v8_0_program_watermarks()
1254 wm_low.active_time = mode->crtc_hdisplay * pixel_period; in dce_v8_0_program_watermarks()
1279 lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in dce_v8_0_program_watermarks()
Ddce_v11_0.c802 if (mode->crtc_hdisplay < 1920) { in dce_v11_0_line_buffer_adjust()
805 } else if (mode->crtc_hdisplay < 2560) { in dce_v11_0_line_buffer_adjust()
808 } else if (mode->crtc_hdisplay < 4096) { in dce_v11_0_line_buffer_adjust()
1259 wm_high.src_width = mode->crtc_hdisplay; in dce_v11_0_program_watermarks()
1260 wm_high.active_time = mode->crtc_hdisplay * pixel_period; in dce_v11_0_program_watermarks()
1298 wm_low.src_width = mode->crtc_hdisplay; in dce_v11_0_program_watermarks()
1299 wm_low.active_time = mode->crtc_hdisplay * pixel_period; in dce_v11_0_program_watermarks()
1324 lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in dce_v11_0_program_watermarks()
Ddce_v10_0.c814 if (mode->crtc_hdisplay < 1920) { in dce_v10_0_line_buffer_adjust()
817 } else if (mode->crtc_hdisplay < 2560) { in dce_v10_0_line_buffer_adjust()
820 } else if (mode->crtc_hdisplay < 4096) { in dce_v10_0_line_buffer_adjust()
1271 wm_high.src_width = mode->crtc_hdisplay; in dce_v10_0_program_watermarks()
1272 wm_high.active_time = mode->crtc_hdisplay * pixel_period; in dce_v10_0_program_watermarks()
1310 wm_low.src_width = mode->crtc_hdisplay; in dce_v10_0_program_watermarks()
1311 wm_low.active_time = mode->crtc_hdisplay * pixel_period; in dce_v10_0_program_watermarks()
1336 lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in dce_v10_0_program_watermarks()
/linux-4.4.14/drivers/gpu/drm/gma500/
Dmdfld_intel_display.c788 | (min(mode->crtc_hdisplay, adjusted_mode->crtc_hdisplay) - 1)); in mdfld_crtc_mode_set()
790 REG_WRITE(map->src, ((mode->crtc_hdisplay - 1) << 16) in mdfld_crtc_mode_set()
795 (mode->crtc_hdisplay - 1)); in mdfld_crtc_mode_set()
797 ((mode->crtc_hdisplay - 1) << 16) | in mdfld_crtc_mode_set()
814 offsetX = (adjusted_mode->crtc_hdisplay - in mdfld_crtc_mode_set()
815 mode->crtc_hdisplay) / 2; in mdfld_crtc_mode_set()
819 REG_WRITE(map->htotal, (mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
836 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
Doaktrail_crtc.c430 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set()
444 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set()
445 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set()
450 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
469 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
Doaktrail_hdmi.c162 htotal = (mode->crtc_hdisplay - 1) | ((mode->crtc_htotal - 1) << 16); in htotal_calculate()
171 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate()
332 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
334 …REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 1) << … in oaktrail_crtc_hdmi_mode_set()
340 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
343 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
Doaktrail_lvds.c144 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set()
145 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set()
148 else if ((adjusted_mode->crtc_hdisplay * in oaktrail_lvds_mode_set()
Dpsb_intel_display.c272 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in psb_intel_crtc_mode_set()
Dcdv_intel_display.c797 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in cdv_intel_crtc_mode_set()
Dpsb_intel_sdvo.c728 width = mode->crtc_hdisplay; in psb_intel_sdvo_get_dtd_from_mode()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_panel.c112 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting()
120 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting()
127 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting()
135 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in intel_pch_panel_fitting()
144 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
147 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
155 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
181 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally()
184 adjusted_mode->crtc_hdisplay = width; in centre_horizontally()
230 u32 scaled_width = adjusted_mode->crtc_hdisplay * in i965_scale_aspect()
[all …]
Ddvo_ivch.c417 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set()
424 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
Dintel_dsi.c781 hactive = adjusted_mode->crtc_hdisplay; in set_dsi_timings()
782 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings()
816 adjusted_mode->crtc_hdisplay); in set_dsi_timings()
853 mode_hdisplay = adjusted_mode->crtc_hdisplay; in intel_dsi_prepare()
Dintel_fbdev.c595 cur_size = intel_crtc->config->base.adjusted_mode.crtc_hdisplay; in intel_fbdev_init_bios()
612 intel_crtc->config->base.adjusted_mode.crtc_hdisplay, in intel_fbdev_init_bios()
Dintel_dvo.c291 (adjusted_mode->crtc_hdisplay << DVO_SRCDIM_HORIZONTAL_SHIFT) | in intel_dvo_pre_enable()
Ddvo_ns2501.c576 adjusted_mode->crtc_hdisplay, in ns2501_mode_set()
Dintel_display.c4452 adjusted_mode->crtc_hdisplay, adjusted_mode->crtc_vdisplay); in skl_update_scaler_crtc()
6687 adjusted_mode->crtc_hsync_start == adjusted_mode->crtc_hdisplay) in intel_crtc_compute_config()
7729 (adjusted_mode->crtc_hdisplay - 1) | in intel_set_pipe_timings()
7773 pipe_config->base.adjusted_mode.crtc_hdisplay = (tmp & 0xffff) + 1; in intel_get_pipe_timings()
7809 mode->hdisplay = pipe_config->base.adjusted_mode.crtc_hdisplay; in intel_mode_from_pipe_config()
11990 mode->crtc_hdisplay, mode->crtc_hsync_start, in intel_dump_crtc_timings()
12544 PIPE_CONF_CHECK_I(base.adjusted_mode.crtc_hdisplay); in intel_pipe_config_compare()
Dintel_hdmi.c622 return mode->crtc_hdisplay % pixels_per_group == 0 && in gcp_default_phase_possible()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_encoders.c352 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()
Datombios_crtc.c53 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
54 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
57 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup()
58 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup()
61 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup()
62 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in atombios_overscan_setup()
64 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup()
65 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in atombios_overscan_setup()
308 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing()
310 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing()
[all …]
Drs690.c252 rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); in rs690_line_buffer_adjust()
255 rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); in rs690_line_buffer_adjust()
309 b.full = dfixed_const(mode->crtc_hdisplay); in rs690_crtc_bandwidth_compute()
359 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
442 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
449 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rs690_crtc_bandwidth_compute()
Dradeon_legacy_crtc.c81 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set()
164 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set()
623 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_set_crtc_timing()
Drv515.c988 b.full = dfixed_const(mode->crtc_hdisplay); in rv515_crtc_bandwidth_compute()
1038 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute()
1092 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute()
1099 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rv515_crtc_bandwidth_compute()
Dradeon_cursor.c184 frame_end = crtc->x + crtc->mode.crtc_hdisplay; in radeon_cursor_move_locked()
Dcik.c9108 if (mode->crtc_hdisplay < 1920) { in dce8_line_buffer_adjust()
9111 } else if (mode->crtc_hdisplay < 2560) { in dce8_line_buffer_adjust()
9114 } else if (mode->crtc_hdisplay < 4096) { in dce8_line_buffer_adjust()
9563 wm_high.src_width = mode->crtc_hdisplay; in dce8_program_watermarks()
9564 wm_high.active_time = mode->crtc_hdisplay * pixel_period; in dce8_program_watermarks()
9603 wm_low.src_width = mode->crtc_hdisplay; in dce8_program_watermarks()
9604 wm_low.active_time = mode->crtc_hdisplay * pixel_period; in dce8_program_watermarks()
9631 radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in dce8_program_watermarks()
Devergreen.c2288 wm_high.src_width = mode->crtc_hdisplay; in evergreen_program_watermarks()
2289 wm_high.active_time = mode->crtc_hdisplay * pixel_period; in evergreen_program_watermarks()
2315 wm_low.src_width = mode->crtc_hdisplay; in evergreen_program_watermarks()
2316 wm_low.active_time = mode->crtc_hdisplay * pixel_period; in evergreen_program_watermarks()
2377 radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in evergreen_program_watermarks()
Dsi.c2290 wm_high.src_width = mode->crtc_hdisplay; in dce6_program_watermarks()
2291 wm_high.active_time = mode->crtc_hdisplay * pixel_period; in dce6_program_watermarks()
2317 wm_low.src_width = mode->crtc_hdisplay; in dce6_program_watermarks()
2318 wm_low.active_time = mode->crtc_hdisplay * pixel_period; in dce6_program_watermarks()
2381 radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in dce6_program_watermarks()
Dr100.c3640 rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); in r100_bandwidth_update()
3643 rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); in r100_bandwidth_update()
Dradeon_atombios.c1819 mode->crtc_hdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Disp); in radeon_atom_get_tv_timings()
1860 mode->crtc_hdisplay = le16_to_cpu(dtd_timings->usHActive); in radeon_atom_get_tv_timings()
/linux-4.4.14/drivers/gpu/drm/sti/
Dsti_vid.c53 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_vid_commit()
Dsti_cursor.c125 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_cursor_atomic_update()
Dsti_gdp.c416 dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_gdp_atomic_update()
Dsti_hqvdp.c790 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_hqvdp_atomic_update()
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_crtc.c71 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
85 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
/linux-4.4.14/include/drm/
Ddrm_modes.h129 int crtc_hdisplay; member
/linux-4.4.14/drivers/gpu/drm/ast/
Dast_mode.c105 switch (crtc->mode.crtc_hdisplay) { in ast_get_vbios_mode_info()
212 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x94, adjusted_mode->crtc_hdisplay); in ast_get_vbios_mode_info()
213 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x95, adjusted_mode->crtc_hdisplay >> 8); in ast_get_vbios_mode_info()
283 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg()
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos5433_drm_decon.c133 m->crtc_hsync_start = m->crtc_hdisplay + 10; in decon_commit()
171 m->crtc_hsync_start - m->crtc_hdisplay - 1); in decon_commit()
Dexynos7_drm_decon.c196 hfpd = mode->crtc_hsync_start - mode->crtc_hdisplay; in decon_commit()
Dexynos_drm_fimd.c435 hfpd = mode->crtc_hsync_start - mode->crtc_hdisplay; in fimd_commit()
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/
Dcrtc.c246 int horizDisplay = (mode->crtc_hdisplay >> 3) - 1; in nv_crtc_mode_set_vga()
250 int horizBlankStart = (mode->crtc_hdisplay >> 3) - 1; in nv_crtc_mode_set_vga()
393 regp->CRTC[NV_CIO_CRE_RPC1_INDEX] = mode->crtc_hdisplay < 1280 ? in nv_crtc_mode_set_vga()
/linux-4.4.14/drivers/gpu/drm/armada/
Darmada_crtc.c551 rm = adj->crtc_hsync_start - adj->crtc_hdisplay; in armada_drm_crtc_mode_set()
557 adj->crtc_hdisplay, in armada_drm_crtc_mode_set()
623 val = adj->crtc_vdisplay << 16 | adj->crtc_hdisplay; in armada_drm_crtc_mode_set()
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_modeset.c173 xde = xds + mode->crtc_hdisplay; in udl_set_vid_cmds()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_modes.c791 p->crtc_hdisplay = p->hdisplay; in drm_mode_set_crtcinfo()
844 p->crtc_hblank_start = min(p->crtc_hsync_start, p->crtc_hdisplay); in drm_mode_set_crtcinfo()
Ddrm_crtc.c2571 *hdisplay = adjusted.crtc_hdisplay; in drm_crtc_get_hv_timing()
/linux-4.4.14/drivers/gpu/drm/i2c/
Dadv7511.c674 adj_mode->crtc_hdisplay; in adv7511_encoder_mode_set()
/linux-4.4.14/drivers/gpu/drm/mgag200/
Dmgag200_mode.c1641 if (mode->crtc_hdisplay > 2048 || mode->crtc_hsync_start > 4096 || in mga_vga_mode_valid()