/linux-3.4.99/drivers/gpu/drm/ |
D | drm_modes.c | 55 mode->hdisplay, mode->hsync_start, in drm_mode_debug_printmodeline() 86 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument 123 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode() 132 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode() 154 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode() 156 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode() 158 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode() 160 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode() 162 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode() 214 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode() [all …]
|
D | drm_edid.c | 453 #define MODE_SIZE(m) ((m)->hdisplay * (m)->vdisplay) 510 if (hsize == ptr->hdisplay && in drm_mode_find_dmt() 732 if (m->hdisplay == hsize && m->vdisplay == vsize && in drm_mode_std() 740 mode->hdisplay = 1366; in drm_mode_std() 811 if ((mode->hdisplay == cea_interlaced[i].w) && in drm_mode_do_interlace_quirk() 886 mode->hdisplay = hactive; in drm_mode_detailed() 887 mode->hsync_start = mode->hdisplay + hsync_offset; in drm_mode_detailed() 889 mode->htotal = mode->hdisplay + hblank; in drm_mode_detailed() 937 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb() 938 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb() [all …]
|
/linux-3.4.99/drivers/gpu/drm/i915/ |
D | intel_panel.c | 40 adjusted_mode->hdisplay = fixed_mode->hdisplay; in intel_fixed_panel_mode() 66 if (adjusted_mode->hdisplay == mode->hdisplay && in intel_pch_panel_fitting() 72 width = mode->hdisplay; in intel_pch_panel_fitting() 74 x = (adjusted_mode->hdisplay - width + 1)/2; in intel_pch_panel_fitting() 81 u32 scaled_width = adjusted_mode->hdisplay * mode->vdisplay; in intel_pch_panel_fitting() 82 u32 scaled_height = mode->hdisplay * adjusted_mode->vdisplay; in intel_pch_panel_fitting() 87 x = (adjusted_mode->hdisplay - width + 1) / 2; in intel_pch_panel_fitting() 91 height = scaled_width / mode->hdisplay; in intel_pch_panel_fitting() 96 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting() 99 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting() [all …]
|
D | intel_lvds.c | 162 if (mode->hdisplay > fixed_mode->hdisplay) in intel_lvds_mode_valid() 181 border = (mode->hdisplay - width + 1) / 2; in centre_horizontally() 272 if (adjusted_mode->hdisplay == mode->hdisplay && in intel_lvds_mode_fixup() 298 centre_horizontally(adjusted_mode, mode->hdisplay); in intel_lvds_mode_fixup() 306 u32 scaled_width = adjusted_mode->hdisplay * mode->vdisplay; in intel_lvds_mode_fixup() 307 u32 scaled_height = mode->hdisplay * adjusted_mode->vdisplay; in intel_lvds_mode_fixup() 314 else if (adjusted_mode->hdisplay != mode->hdisplay) in intel_lvds_mode_fixup() 317 u32 scaled_width = adjusted_mode->hdisplay * mode->vdisplay; in intel_lvds_mode_fixup() 318 u32 scaled_height = mode->hdisplay * adjusted_mode->vdisplay; in intel_lvds_mode_fixup() 337 centre_vertically(adjusted_mode, scaled_width / mode->hdisplay); in intel_lvds_mode_fixup() [all …]
|
D | dvo_ch7017.c | 301 horizontal_active_pixel_input = mode->hdisplay & 0x00ff; in ch7017_mode_set() 304 horizontal_active_pixel_output = mode->hdisplay & 0x00ff; in ch7017_mode_set() 306 active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | in ch7017_mode_set() 310 (mode->hdisplay & 0x0700) >> 8; in ch7017_mode_set()
|
D | dvo_ivch.c | 337 if (mode->hdisplay != adjusted_mode->hdisplay || in ivch_mode_set() 343 x_ratio = (((mode->hdisplay - 1) << 16) / in ivch_mode_set() 344 (adjusted_mode->hdisplay - 1)) >> 2; in ivch_mode_set()
|
D | intel_dvo.c | 129 if (mode->hdisplay > intel_dvo->panel_fixed_mode->hdisplay) in intel_dvo_mode_valid() 151 C(hdisplay); in intel_dvo_mode_fixup() 217 (adjusted_mode->hdisplay << DVO_SRCDIM_HORIZONTAL_SHIFT) | in intel_dvo_mode_set()
|
/linux-3.4.99/drivers/gpu/drm/gma500/ |
D | mdfld_tpo_vid.c | 42 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tpo_vid_get_config_mode() 44 mode->hsync_start = mode->hdisplay + in tpo_vid_get_config_mode() 50 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | in tpo_vid_get_config_mode() 62 dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); in tpo_vid_get_config_mode() 72 mode->hdisplay = 864; in tpo_vid_get_config_mode()
|
D | mdfld_tmd_vid.c | 45 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode() 47 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode() 53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode() 65 dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); in tmd_vid_get_config_mode() 75 mode->hdisplay = 480; in tmd_vid_get_config_mode()
|
D | oaktrail_lvds.c | 145 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 147 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 150 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set() 265 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in oaktrail_lvds_get_configuration_mode() 267 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode() 273 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode() 285 printk(KERN_INFO "hdisplay is %d\n", mode->hdisplay); in oaktrail_lvds_get_configuration_mode()
|
D | cdv_intel_lvds.c | 264 if (mode->hdisplay > fixed_mode->hdisplay) in cdv_intel_lvds_mode_valid() 300 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in cdv_intel_lvds_mode_fixup() 372 if (mode->hdisplay != adjusted_mode->hdisplay || in cdv_intel_lvds_mode_set() 491 if (crtc->saved_mode.hdisplay != 0 && in cdv_intel_lvds_set_property()
|
D | mdfld_dsi_dpi.c | 435 pclk_hactive = mode->hdisplay; in mdfld_dsi_dpi_timing_calculation() 436 pclk_hfp = mode->hsync_start - mode->hdisplay; in mdfld_dsi_dpi_timing_calculation() 519 mode->vdisplay << 16 | mode->hdisplay); in mdfld_dsi_dpi_controller_init() 696 adjusted_mode->hdisplay = fixed_mode->hdisplay; in mdfld_dsi_dpi_mode_fixup() 753 mode->vdisplay << 16 | mode->hdisplay); in mdfld_mipi_set_video_timing() 797 REG_WRITE(HTOTAL_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1)); in mdfld_set_pipe_timing() 798 REG_WRITE(HBLANK_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1)); in mdfld_set_pipe_timing() 808 ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); in mdfld_set_pipe_timing() 872 REG_WRITE(DSPASTRIDE, (mode->hdisplay * 4)); in mdfld_dsi_dpi_mode_set() 874 ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); in mdfld_dsi_dpi_mode_set()
|
D | psb_intel_lvds.c | 369 if (mode->hdisplay > fixed_mode->hdisplay) in psb_intel_lvds_mode_valid() 421 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in psb_intel_lvds_mode_fixup() 493 if (mode->hdisplay != adjusted_mode->hdisplay || in psb_intel_lvds_mode_set() 619 if (crtc->saved_mode.hdisplay != 0 && in psb_intel_lvds_set_property()
|
D | intel_bios.c | 58 panel_fixed_mode->hdisplay = (dvo_timing->hactive_hi << 8) | in fill_detail_timing_data() 60 panel_fixed_mode->hsync_start = panel_fixed_mode->hdisplay + in fill_detail_timing_data() 64 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
|
/linux-3.4.99/drivers/gpu/drm/nouveau/ |
D | nv17_tv.c | 203 for (tv_mode = nv17_tv_modes; tv_mode->hdisplay; tv_mode++) { in nv17_tv_get_ld_modes() 215 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes() 233 int hdisplay; in nv17_tv_get_hd_modes() member 249 if (modes[i].hdisplay > output_mode->hdisplay || in nv17_tv_get_hd_modes() 253 if (modes[i].hdisplay == output_mode->hdisplay && in nv17_tv_get_hd_modes() 259 mode = drm_cvt_mode(encoder->dev, modes[i].hdisplay, in nv17_tv_get_hd_modes() 266 if (output_mode->hdisplay <= 720 in nv17_tv_get_hd_modes() 267 || output_mode->hdisplay >= 1920) { in nv17_tv_get_hd_modes() 269 mode->hsync_start = (mode->hdisplay + (mode->htotal in nv17_tv_get_hd_modes() 270 - mode->hdisplay) * 9 / 10) & ~7; in nv17_tv_get_hd_modes() [all …]
|
D | nv04_dfp.c | 190 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup() 299 regp->fp_horiz_regs[FP_DISPLAY_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 302 (output_mode->hsync_start - output_mode->hdisplay) >= in nv04_dfp_mode_set() 304 regp->fp_horiz_regs[FP_CRTC] = output_mode->hdisplay; in nv04_dfp_mode_set() 310 regp->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 333 else if (adjusted_mode->hdisplay == output_mode->hdisplay && in nv04_dfp_mode_set() 373 mode_ratio = (1 << 12) * adjusted_mode->hdisplay / adjusted_mode->vdisplay; in nv04_dfp_mode_set() 374 panel_ratio = (1 << 12) * output_mode->hdisplay / output_mode->vdisplay; in nv04_dfp_mode_set() 392 diff = output_mode->hdisplay - in nv04_dfp_mode_set() 403 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set() [all …]
|
D | nv17_tv_modes.c | 326 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter() 329 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter() 561 hmargin = (output_mode->hdisplay - crtc_mode->hdisplay) / 2; in nv17_ctv_update_rescaler() 564 hmargin = interpolate(0, min(hmargin, output_mode->hdisplay/20), in nv17_ctv_update_rescaler() 569 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler() 570 (output_mode->hdisplay - 2*hmargin); in nv17_ctv_update_rescaler() 575 regs->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - hmargin - 1; in nv17_ctv_update_rescaler()
|
D | nouveau_connector.c | 566 if (mode->hdisplay < high_w) in nouveau_connector_native_mode() 569 if (mode->hdisplay == high_w && mode->vdisplay < high_h) in nouveau_connector_native_mode() 572 if (mode->hdisplay == high_w && mode->vdisplay == high_h && in nouveau_connector_native_mode() 576 high_w = mode->hdisplay; in nouveau_connector_native_mode() 588 int hdisplay; member 622 while (mode->hdisplay) { in nouveau_connector_scaler_modes_add() 623 if (mode->hdisplay <= native->hdisplay && in nouveau_connector_scaler_modes_add() 625 m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay, in nouveau_connector_scaler_modes_add() 791 (mode->hdisplay > nv_connector->native_mode->hdisplay || in nouveau_connector_mode_valid()
|
/linux-3.4.99/drivers/gpu/drm/radeon/ |
D | radeon_encoders.c | 267 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup() 269 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup() 278 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 282 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup() 283 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup() 293 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
|
D | radeon_connectors.c | 242 if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 250 } else if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 259 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in radeon_fp_native_mode() 303 if (common_modes[i].w > native_mode->hdisplay || in radeon_add_common_modes() 305 (common_modes[i].w == native_mode->hdisplay && in radeon_add_common_modes() 462 if (mode->hdisplay != native_mode->hdisplay || in radeon_fixup_lvds_native_mode() 471 if (mode->hdisplay == native_mode->hdisplay && in radeon_fixup_lvds_native_mode() 531 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in radeon_lvds_mode_valid() 541 if ((mode->hdisplay > native_mode->hdisplay) || in radeon_lvds_mode_valid() 547 if ((mode->hdisplay != native_mode->hdisplay) || in radeon_lvds_mode_valid() [all …]
|
D | radeon_legacy_crtc.c | 51 int xres = mode->hdisplay; in radeon_legacy_rmx_mode_set() 109 if (native_mode->hdisplay == 0 || in radeon_legacy_rmx_mode_set() 114 if (xres > native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 115 xres = native_mode->hdisplay; in radeon_legacy_rmx_mode_set() 119 if (xres == native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 133 / native_mode->hdisplay + 1; in radeon_legacy_rmx_mode_set() 137 ((native_mode->hdisplay/8-1) << 16)); in radeon_legacy_rmx_mode_set() 190 (((native_mode->hdisplay / 8) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set()
|
/linux-3.4.99/drivers/staging/omapdrm/ |
D | omap_connector.c | 41 mode->hdisplay = timings->x_res; in copy_timings_omap_to_drm() 42 mode->hsync_start = mode->hdisplay + timings->hfp; in copy_timings_omap_to_drm() 65 timings->x_res = mode->hdisplay; in copy_timings_drm_to_omap() 66 timings->hfp = mode->hsync_start - mode->hdisplay; in copy_timings_drm_to_omap() 234 mode->hdisplay, mode->hsync_start, in omap_connector_mode_valid() 301 mode->hdisplay, mode->hsync_start, in omap_connector_mode_set()
|
D | omap_crtc.c | 85 0, 0, mode->hdisplay, mode->vdisplay, in omap_crtc_mode_set() 87 mode->hdisplay << 16, mode->vdisplay << 16); in omap_crtc_mode_set() 112 0, 0, mode->hdisplay, mode->vdisplay, in omap_crtc_mode_set_base() 114 mode->hdisplay << 16, mode->vdisplay << 16); in omap_crtc_mode_set_base()
|
/linux-3.4.99/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_scrn.c | 133 cmd->obj.size.width = mode->hdisplay; in vmw_sou_fifo_create() 145 cmd->obj.backingStore.pitch = mode->hdisplay * 4; in vmw_sou_fifo_create() 326 if (set->x + mode->hdisplay > fb->width || in vmw_sou_crtc_set_config() 334 if (mode->hdisplay != crtc->mode.hdisplay || in vmw_sou_crtc_set_config() 350 size_t size = mode->hdisplay * mode->vdisplay * 4; in vmw_sou_crtc_set_config()
|
/linux-3.4.99/drivers/gpu/drm/exynos/ |
D | exynos_drm_connector.c | 56 mode->hdisplay = timing->xres; in convert_to_display_mode() 57 mode->hsync_start = mode->hdisplay + timing->right_margin; in convert_to_display_mode() 87 timing->xres = mode->hdisplay; in convert_to_video_timing() 88 timing->right_margin = mode->hsync_start - mode->hdisplay; in convert_to_video_timing()
|