Lines Matching refs:hdisplay
140 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument
161 if (!hdisplay || !vdisplay) in drm_cvt_mode()
182 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode()
191 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode()
213 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode()
215 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode()
217 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode()
219 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode()
221 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode()
273 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode()
277 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode()
278 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2; in drm_cvt_mode()
311 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; in drm_cvt_mode()
313 drm_mode->hsync_end = drm_mode->hdisplay + CVT_RB_H_BLANK / 2; in drm_cvt_mode()
366 drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay, in drm_gtf_mode_complex() argument
399 if (!hdisplay || !vdisplay) in drm_gtf_mode_complex()
411 hdisplay_rnd = (hdisplay + GTF_CELL_GRAN / 2) / GTF_CELL_GRAN; in drm_gtf_mode_complex()
510 drm_mode->hdisplay = hdisplay_rnd; in drm_gtf_mode_complex()
571 drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh, in drm_gtf_mode() argument
574 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh, in drm_gtf_mode()
591 dmode->hdisplay = vm->hactive; in drm_display_mode_from_videomode()
592 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch; in drm_display_mode_from_videomode()
632 vm->hactive = dmode->hdisplay; in drm_display_mode_to_videomode()
633 vm->hfront_porch = dmode->hsync_start - dmode->hdisplay; in drm_display_mode_to_videomode()
745 mode->hdisplay, mode->vdisplay, in drm_mode_set_name()
789 int *hdisplay, int *vdisplay) in drm_mode_get_hv_timing() argument
794 *hdisplay = adjusted.crtc_hdisplay; in drm_mode_get_hv_timing()
820 p->crtc_hdisplay = p->hdisplay; in drm_mode_set_crtcinfo()
924 return mode1->hdisplay == mode2->hdisplay && in drm_mode_match_timings()
1092 if (mode->hdisplay == 0 || in drm_mode_validate_basic()
1093 mode->hsync_start < mode->hdisplay || in drm_mode_validate_basic()
1154 if (maxX > 0 && mode->hdisplay > maxX) in drm_mode_validate_size()
1299 diff = b->hdisplay * b->vdisplay - a->hdisplay * a->vdisplay; in drm_mode_compare()
1902 out->hdisplay = in->hdisplay; in drm_mode_convert_to_umode()
1962 out->hdisplay = in->hdisplay; in drm_mode_convert_umode()