<dec f='src/src/sys/external/bsd/drm2/dist/include/drm/drm_modes.h' l='194' type='struct drm_display_mode * drm_gtf_mode(struct drm_device * dev, int hdisplay, int vdisplay, int vrefresh, _Bool interlaced, int margins)'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/drm_edid.c' l='1689' u='c' c='drm_mode_std'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/drm_edid.c' l='1697' u='c' c='drm_mode_std'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/drm_edid.c' l='2010' u='c' c='drm_gtf_modes_for_range'/>
<def f='src/src/sys/external/bsd/drm2/dist/drm/drm_modes.c' l='570' ll='577' type='struct drm_display_mode * drm_gtf_mode(struct drm_device * dev, int hdisplay, int vdisplay, int vrefresh, _Bool interlaced, int margins)'/>
<use f='src/src/sys/external/bsd/drm2/dist/drm/drm_modes.c' l='1264' u='c' c='drm_mode_create_from_cmdline_mode'/>
<doc f='src/src/sys/external/bsd/drm2/dist/drm/drm_modes.c' l='538'>/**
 * drm_gtf_mode - create the modeline based on the GTF algorithm
 * @dev: drm device
 * @hdisplay: hdisplay size
 * @vdisplay: vdisplay size
 * @vrefresh: vrefresh rate.
 * @interlaced: whether to compute an interlaced mode
 * @margins: desired margin (borders) size
 *
 * return the modeline based on GTF algorithm
 *
 * This function is to create the modeline based on the GTF algorithm.
 * Generalized Timing Formula is derived from:
 *	GTF Spreadsheet by Andy Morrish (1/5/97)
 *	available at http://www.vesa.org
 *
 * And it is copied from the file of xserver/hw/xfree86/modes/xf86gtf.c.
 * What I have done is to translate it by using integer calculation.
 * I also refer to the function of fb_get_mode in the file of
 * drivers/video/fbmon.c
 *
 * Standard GTF parameters:
 * M = 600
 * C = 40
 * K = 128
 * J = 20
 *
 * Returns:
 * The modeline based on the GTF algorithm stored in a drm_display_mode object.
 * The display mode object is allocated with drm_mode_create(). Returns NULL
 * when no mode could be allocated.
 */</doc>
