Searched refs:hmargin (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/gpu/drm/nouveau/dispnv04/ |
| H A D | tvmodesnv17.c | 550 int overscan, hmargin, vmargin, hratio, vratio; in nv17_ctv_update_rescaler() local 558 hmargin = (output_mode->hdisplay - crtc_mode->hdisplay) / 2; in nv17_ctv_update_rescaler() 561 hmargin = interpolate(0, min(hmargin, output_mode->hdisplay/20), in nv17_ctv_update_rescaler() 562 hmargin, overscan); in nv17_ctv_update_rescaler() 567 (output_mode->hdisplay - 2*hmargin); in nv17_ctv_update_rescaler() 571 regs->fp_horiz_regs[FP_VALID_START] = hmargin; in nv17_ctv_update_rescaler() 572 regs->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - hmargin - 1; in nv17_ctv_update_rescaler()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_modes.c | 640 int hdisplay_rnd, hmargin, vdisplay_rnd, vmargin, vsync; in drm_cvt_mode() local 668 hmargin = 0; in drm_cvt_mode() 670 hmargin = hdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000; in drm_cvt_mode() 671 hmargin -= hmargin % CVT_H_GRANULARITY; in drm_cvt_mode() 674 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode()
|