Lines Matching refs:hdisplay

141 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,  in drm_cvt_mode()  argument
162 if (!hdisplay || !vdisplay) in drm_cvt_mode()
183 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode()
192 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode()
214 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode()
216 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode()
218 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode()
220 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode()
222 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode()
274 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode()
278 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode()
279 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2; in drm_cvt_mode()
312 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; in drm_cvt_mode()
314 drm_mode->hsync_end = drm_mode->hdisplay + CVT_RB_H_BLANK / 2; in drm_cvt_mode()
367 drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay, in drm_gtf_mode_complex() argument
400 if (!hdisplay || !vdisplay) in drm_gtf_mode_complex()
412 hdisplay_rnd = (hdisplay + GTF_CELL_GRAN / 2) / GTF_CELL_GRAN; in drm_gtf_mode_complex()
511 drm_mode->hdisplay = hdisplay_rnd; in drm_gtf_mode_complex()
572 drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh, in drm_gtf_mode() argument
575 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh, in drm_gtf_mode()
592 dmode->hdisplay = vm->hactive; in drm_display_mode_from_videomode()
593 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch; in drm_display_mode_from_videomode()
633 vm->hactive = dmode->hdisplay; in drm_display_mode_to_videomode()
634 vm->hfront_porch = dmode->hsync_start - dmode->hdisplay; in drm_display_mode_to_videomode()
794 mode->hdisplay, mode->vdisplay, in drm_mode_set_name()
838 int *hdisplay, int *vdisplay) in drm_mode_get_hv_timing() argument
845 *hdisplay = adjusted.crtc_hdisplay; in drm_mode_get_hv_timing()
871 p->crtc_hdisplay = p->hdisplay; in drm_mode_set_crtcinfo()
992 return mode1->hdisplay == mode2->hdisplay && in drm_mode_match_timings()
1160 if (mode->hdisplay == 0 || in drm_mode_validate_basic()
1161 mode->hsync_start < mode->hdisplay || in drm_mode_validate_basic()
1222 if (maxX > 0 && mode->hdisplay > maxX) in drm_mode_validate_size()
1367 diff = b->hdisplay * b->vdisplay - a->hdisplay * a->vdisplay; in drm_mode_compare()
1970 out->hdisplay = in->hdisplay; in drm_mode_convert_to_umode()
2030 out->hdisplay = in->hdisplay; in drm_mode_convert_umode()