Lines Matching refs:hdisplay

143 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,  in drm_cvt_mode()  argument
164 if (!hdisplay || !vdisplay) in drm_cvt_mode()
185 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode()
194 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode()
216 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode()
218 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode()
220 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode()
222 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode()
224 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode()
276 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode()
280 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode()
281 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2; in drm_cvt_mode()
314 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; in drm_cvt_mode()
316 drm_mode->hsync_end = drm_mode->hdisplay + CVT_RB_H_BLANK / 2; in drm_cvt_mode()
369 drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay, in drm_gtf_mode_complex() argument
402 if (!hdisplay || !vdisplay) in drm_gtf_mode_complex()
414 hdisplay_rnd = (hdisplay + GTF_CELL_GRAN / 2) / GTF_CELL_GRAN; in drm_gtf_mode_complex()
513 drm_mode->hdisplay = hdisplay_rnd; in drm_gtf_mode_complex()
574 drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh, in drm_gtf_mode() argument
577 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh, in drm_gtf_mode()
594 dmode->hdisplay = vm->hactive; in drm_display_mode_from_videomode()
595 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch; in drm_display_mode_from_videomode()
635 vm->hactive = dmode->hdisplay; in drm_display_mode_to_videomode()
636 vm->hfront_porch = dmode->hsync_start - dmode->hdisplay; in drm_display_mode_to_videomode()
796 mode->hdisplay, mode->vdisplay, in drm_mode_set_name()
840 int *hdisplay, int *vdisplay) in drm_mode_get_hv_timing() argument
847 *hdisplay = adjusted.crtc_hdisplay; in drm_mode_get_hv_timing()
873 p->crtc_hdisplay = p->hdisplay; in drm_mode_set_crtcinfo()
994 return mode1->hdisplay == mode2->hdisplay && in drm_mode_match_timings()
1162 if (mode->hdisplay == 0 || in drm_mode_validate_basic()
1163 mode->hsync_start < mode->hdisplay || in drm_mode_validate_basic()
1224 if (maxX > 0 && mode->hdisplay > maxX) in drm_mode_validate_size()
1373 diff = b->hdisplay * b->vdisplay - a->hdisplay * a->vdisplay; in drm_mode_compare()
1976 out->hdisplay = in->hdisplay; in drm_mode_convert_to_umode()
2036 out->hdisplay = in->hdisplay; in drm_mode_convert_umode()