Lines Matching refs:hdisplay
455 mode->hdisplay = hactive;
456 mode->hsync_start = mode->hdisplay + hfp;
528 * @hdisplay: hdisplay size
535 * Note that @hdisplay is larger than the usual constraints for the PAL
547 unsigned int hdisplay,
584 pixel_clock_hz, hdisplay, vdisplay, interlace);
599 * @hdisplay: hdisplay size
607 * according to the hdisplay, vdisplay, vrefresh.
620 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,
641 if (!hdisplay || !vdisplay)
662 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY);
671 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin;
693 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay))
695 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay))
697 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay))
699 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay))
701 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay))
753 hblank = drm_mode->hdisplay * hblank_percentage /
757 drm_mode->htotal = drm_mode->hdisplay + hblank;
758 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2;
791 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK;
793 drm_mode->hsync_end = drm_mode->hdisplay + CVT_RB_H_BLANK / 2;
827 * @hdisplay: hdisplay size
846 drm_gtf_mode_complex(struct drm_device *dev, int hdisplay, int vdisplay,
879 if (!hdisplay || !vdisplay)
891 hdisplay_rnd = (hdisplay + GTF_CELL_GRAN / 2) / GTF_CELL_GRAN;
990 drm_mode->hdisplay = hdisplay_rnd;
1019 * @hdisplay: hdisplay size
1051 drm_gtf_mode(struct drm_device *dev, int hdisplay, int vdisplay, int vrefresh,
1054 return drm_gtf_mode_complex(dev, hdisplay, vdisplay, vrefresh,
1071 dmode->hdisplay = vm->hactive;
1072 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch;
1112 vm->hactive = dmode->hdisplay;
1113 vm->hfront_porch = dmode->hsync_start - dmode->hdisplay;
1265 * Set the name of @mode to a standard format which is <hdisplay>x<vdisplay>
1273 mode->hdisplay, mode->vdisplay,
1308 * drm_mode_get_hv_timing - Fetches hdisplay/vdisplay for given mode
1310 * @hdisplay: hdisplay value to fill in
1317 int *hdisplay, int *vdisplay)
1324 *hdisplay = adjusted.crtc_hdisplay;
1350 p->crtc_hdisplay = p->hdisplay;
1471 return mode1->hdisplay == mode2->hdisplay &&
1639 if (mode->hdisplay == 0 ||
1640 mode->hsync_start < mode->hdisplay ||
1701 if (maxX > 0 && mode->hdisplay > maxX)
1850 diff = b->hdisplay * b->vdisplay - a->hdisplay * a->vdisplay;
2584 out->hdisplay = in->hdisplay;
2644 out->hdisplay = in->hdisplay;