Lines Matching refs:hdisplay
129 * @hdisplay: hdisplay size
137 * according to the hdisplay, vdisplay, vrefresh.
150 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,
171 if (!hdisplay || !vdisplay)
192 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY);
201 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin;
223 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay))
225 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay))
227 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay))
229 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay))
231 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay))
283 hblank = drm_mode->hdisplay * hblank_percentage /
287 drm_mode->htotal = drm_mode->hdisplay + hblank;
288 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2;
321 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK;
323 drm_mode->hsync_end = drm_mode->hdisplay + CVT_RB_H_BLANK / 2;
357 * @hdisplay: hdisplay size
376 drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay,
409 if (!hdisplay || !vdisplay)
421 hdisplay_rnd = (hdisplay + GTF_CELL_GRAN / 2) / GTF_CELL_GRAN;
520 drm_mode->hdisplay = hdisplay_rnd;
549 * @hdisplay: hdisplay size
581 drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh,
584 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh,
601 dmode->hdisplay = vm->hactive;
602 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch;
642 vm->hactive = dmode->hdisplay;
643 vm->hfront_porch = dmode->hsync_start - dmode->hdisplay;
747 * Set the name of @mode to a standard format which is <hdisplay>x<vdisplay>
755 mode->hdisplay, mode->vdisplay,
820 * drm_mode_get_hv_timing - Fetches hdisplay/vdisplay for given mode
822 * @hdisplay: hdisplay value to fill in
829 int *hdisplay, int *vdisplay)
834 *hdisplay = adjusted.crtc_hdisplay;
860 p->crtc_hdisplay = p->hdisplay;
964 return mode1->hdisplay == mode2->hdisplay &&
1132 if (mode->hdisplay == 0 ||
1133 mode->hsync_start < mode->hdisplay ||
1194 if (maxX > 0 && mode->hdisplay > maxX)
1198 if (mode->hdisplay > DRM_MAX_RESOLUTION_HORIZONTAL)
1353 diff = b->hdisplay * b->vdisplay - a->hdisplay * a->vdisplay;
1952 WARN(in->hdisplay > USHRT_MAX || in->hsync_start > USHRT_MAX ||
1960 out->hdisplay = in->hdisplay;
2020 out->hdisplay = in->hdisplay;