Lines Matching refs:hdisplay
119 * @hdisplay: hdisplay size
127 * according to the hdisplay, vdisplay, vrefresh.
140 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,
161 if (!hdisplay || !vdisplay)
182 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY);
191 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin;
213 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay))
215 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay))
217 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay))
219 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay))
221 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay))
273 hblank = drm_mode->hdisplay * hblank_percentage /
277 drm_mode->htotal = drm_mode->hdisplay + hblank;
278 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2;
311 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK;
313 drm_mode->hsync_end = drm_mode->hdisplay + CVT_RB_H_BLANK / 2;
347 * @hdisplay: hdisplay size
366 drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay,
399 if (!hdisplay || !vdisplay)
411 hdisplay_rnd = (hdisplay + GTF_CELL_GRAN / 2) / GTF_CELL_GRAN;
510 drm_mode->hdisplay = hdisplay_rnd;
539 * @hdisplay: hdisplay size
571 drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh,
574 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh,
591 dmode->hdisplay = vm->hactive;
592 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch;
632 vm->hactive = dmode->hdisplay;
633 vm->hfront_porch = dmode->hsync_start - dmode->hdisplay;
737 * Set the name of @mode to a standard format which is <hdisplay>x<vdisplay>
745 mode->hdisplay, mode->vdisplay,
780 * drm_mode_get_hv_timing - Fetches hdisplay/vdisplay for given mode
782 * @hdisplay: hdisplay value to fill in
789 int *hdisplay, int *vdisplay)
794 *hdisplay = adjusted.crtc_hdisplay;
820 p->crtc_hdisplay = p->hdisplay;
924 return mode1->hdisplay == mode2->hdisplay &&
1092 if (mode->hdisplay == 0 ||
1093 mode->hsync_start < mode->hdisplay ||
1154 if (maxX > 0 && mode->hdisplay > maxX)
1304 diff = b->hdisplay * b->vdisplay - a->hdisplay * a->vdisplay;
1904 out->hdisplay = in->hdisplay;
1964 out->hdisplay = in->hdisplay;