| /linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
| 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() 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 …]
|
| D | amdgpu_encoders.c | 175 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()
|
| D | dce_v8_0.c | 759 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()
|
| D | dce_v11_0.c | 802 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()
|
| D | dce_v10_0.c | 814 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/ |
| D | mdfld_intel_display.c | 788 | (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()
|
| D | oaktrail_crtc.c | 430 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()
|
| D | oaktrail_hdmi.c | 162 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()
|
| D | oaktrail_lvds.c | 144 (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()
|
| D | psb_intel_display.c | 272 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in psb_intel_crtc_mode_set()
|
| D | cdv_intel_display.c | 797 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in cdv_intel_crtc_mode_set()
|
| D | psb_intel_sdvo.c | 728 width = mode->crtc_hdisplay; in psb_intel_sdvo_get_dtd_from_mode()
|
| /linux-4.4.14/drivers/gpu/drm/i915/ |
| D | intel_panel.c | 112 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 …]
|
| D | dvo_ivch.c | 417 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set() 424 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
|
| D | intel_dsi.c | 781 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()
|
| D | intel_fbdev.c | 595 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()
|
| D | intel_dvo.c | 291 (adjusted_mode->crtc_hdisplay << DVO_SRCDIM_HORIZONTAL_SHIFT) | in intel_dvo_pre_enable()
|
| D | dvo_ns2501.c | 576 adjusted_mode->crtc_hdisplay, in ns2501_mode_set()
|
| D | intel_display.c | 4452 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()
|
| D | intel_hdmi.c | 622 return mode->crtc_hdisplay % pixels_per_group == 0 && in gcp_default_phase_possible()
|
| /linux-4.4.14/drivers/gpu/drm/radeon/ |
| 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()
|
| D | atombios_crtc.c | 53 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 …]
|
| D | rs690.c | 252 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()
|
| D | radeon_legacy_crtc.c | 81 | ((((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()
|
| D | rv515.c | 988 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()
|
| D | radeon_cursor.c | 184 frame_end = crtc->x + crtc->mode.crtc_hdisplay; in radeon_cursor_move_locked()
|
| D | cik.c | 9108 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()
|
| D | evergreen.c | 2288 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()
|
| D | si.c | 2290 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()
|
| D | r100.c | 3640 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()
|
| D | radeon_atombios.c | 1819 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/ |
| D | sti_vid.c | 53 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_vid_commit()
|
| D | sti_cursor.c | 125 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_cursor_atomic_update()
|
| D | sti_gdp.c | 416 dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_gdp_atomic_update()
|
| D | sti_hqvdp.c | 790 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/ |
| D | atmel_hlcdc_crtc.c | 71 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/ |
| D | drm_modes.h | 129 int crtc_hdisplay; member
|
| /linux-4.4.14/drivers/gpu/drm/ast/ |
| D | ast_mode.c | 105 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/ |
| D | exynos5433_drm_decon.c | 133 m->crtc_hsync_start = m->crtc_hdisplay + 10; in decon_commit() 171 m->crtc_hsync_start - m->crtc_hdisplay - 1); in decon_commit()
|
| D | exynos7_drm_decon.c | 196 hfpd = mode->crtc_hsync_start - mode->crtc_hdisplay; in decon_commit()
|
| D | exynos_drm_fimd.c | 435 hfpd = mode->crtc_hsync_start - mode->crtc_hdisplay; in fimd_commit()
|
| /linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/ |
| D | crtc.c | 246 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/ |
| D | armada_crtc.c | 551 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/ |
| D | udl_modeset.c | 173 xde = xds + mode->crtc_hdisplay; in udl_set_vid_cmds()
|
| /linux-4.4.14/drivers/gpu/drm/ |
| D | drm_modes.c | 791 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()
|
| D | drm_crtc.c | 2571 *hdisplay = adjusted.crtc_hdisplay; in drm_crtc_get_hv_timing()
|
| /linux-4.4.14/drivers/gpu/drm/i2c/ |
| D | adv7511.c | 674 adj_mode->crtc_hdisplay; in adv7511_encoder_mode_set()
|
| /linux-4.4.14/drivers/gpu/drm/mgag200/ |
| D | mgag200_mode.c | 1641 if (mode->crtc_hdisplay > 2048 || mode->crtc_hsync_start > 4096 || in mga_vga_mode_valid()
|