Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/i915/display/
H A Dintel_pfit.c48 if (adjusted_mode->crtc_hdisplay != 2 * x + width || in intel_pch_pfit_check_dst_window()
196 if (adjusted_mode->crtc_hdisplay == pipe_src_w && in pch_panel_fitting()
205 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in pch_panel_fitting()
212 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in pch_panel_fitting()
219 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in pch_panel_fitting()
228 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
231 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
238 WARN_ON(adjusted_mode->crtc_hdisplay != pipe_src_w); in pch_panel_fitting()
243 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting()
297 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally()
[all …]
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()
/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/kmb/
H A Dkmb_crtc.c84 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()
/linux/drivers/gpu/drm/gma500/
H A Doaktrail_crtc.c431 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set()
441 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set()
442 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set()
447 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
466 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
H A Doaktrail_lvds.c136 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set()
137 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set()
140 else if ((adjusted_mode->crtc_hdisplay * in oaktrail_lvds_mode_set()
H A Doaktrail_hdmi.c176 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate()
337 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
339 …REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 1) << … in oaktrail_crtc_hdmi_mode_set()
345 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
348 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
/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 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()
/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_tcon.c368 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_cpu()
441 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_lvds()
523 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_rgb()
627 SUN4I_TCON1_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
632 SUN4I_TCON1_BASIC1_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
637 SUN4I_TCON1_BASIC2_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
/linux/drivers/gpu/drm/arm/
H A Dhdlcd_crtc.c145 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; in hdlcd_crtc_mode_set_nofb()
164 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
/linux/drivers/gpu/drm/ast/
H A Dast_mode.c193 ast_set_index_reg(ast, AST_IO_VGACRI, 0x94, adjusted_mode->crtc_hdisplay); in ast_set_vbios_mode_reg()
194 ast_set_index_reg(ast, AST_IO_VGACRI, 0x95, adjusted_mode->crtc_hdisplay >> 8); in ast_set_vbios_mode_reg()
262 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg()
791 adjusted_mode->crtc_hdisplay = vmode->hde; in ast_crtc_helper_atomic_check()
/linux/drivers/gpu/drm/imx/dc/
H A Ddc-crtc.c254 adj->crtc_hdisplay, adj->crtc_vdisplay); in dc_crtc_atomic_enable()
256 adj->crtc_hdisplay, adj->crtc_vdisplay); in dc_crtc_atomic_enable()
H A Ddc-fg.c148 hact = m->crtc_hdisplay; in dc_fg_cfg_videomode()
/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_crtc.c110 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
124 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
/linux/drivers/gpu/drm/mgag200/
H A Dmgag200_mode.c222 hdispend = mode->crtc_hdisplay / 8 - 1; in mgag200_set_mode_regs()
601 if (mode->crtc_hdisplay > 2048 || mode->crtc_hsync_start > 4096 || in mgag200_crtc_helper_mode_valid()
/linux/include/drm/
H A Ddrm_modes.h321 u16 crtc_hdisplay; member
/linux/drivers/gpu/drm/exynos/
H A Dexynos5433_drm_decon.c205 m->crtc_hsync_start = m->crtc_hdisplay + 10; in decon_commit()
251 m->crtc_hsync_start - m->crtc_hdisplay - 1); in decon_commit()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_crtc.c225 (mode->crtc_htotal << 16) | mode->crtc_hdisplay); in lsdc_crtc0_set_mode()
243 (mode->crtc_htotal << 16) | mode->crtc_hdisplay); in lsdc_crtc1_set_mode()
/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/sti/
H A Dsti_cursor.c211 mode->crtc_hdisplay - dst_x); in sti_cursor_atomic_check()
/linux/drivers/gpu/drm/armada/
H A Darmada_crtc.c342 rm = adj->crtc_hsync_start - adj->crtc_hdisplay; in armada_drm_crtc_mode_set_nofb()
377 val = adj->crtc_vdisplay << 16 | adj->crtc_hdisplay; in armada_drm_crtc_mode_set_nofb()

12