Lines Matching +full:refresh +full:- +full:rate +full:- +full:hz

3 /*-
52 if ((this->hdisplay != width) || (this->vdisplay != height) || in pick_mode_by_dotclock()
53 (this->dot_clock > dotclock)) in pick_mode_by_dotclock()
56 if (this->dot_clock > best->dot_clock) in pick_mode_by_dotclock()
62 DPRINTF("found %s\n", best->name); in pick_mode_by_dotclock()
68 pick_mode_by_ref(int width, int height, int refresh) in pick_mode_by_ref() argument
73 DPRINTF("%s: looking for %d x %d at up to %d Hz\n", __func__, width, in pick_mode_by_ref()
74 height, refresh); in pick_mode_by_ref()
77 mref = this->dot_clock * 1000 / (this->htotal * this->vtotal); in pick_mode_by_ref()
78 diff = abs(mref - refresh); in pick_mode_by_ref()
79 if ((this->hdisplay != width) || (this->vdisplay != height)) in pick_mode_by_ref()
81 DPRINTF("%s in %d hz, diff %d\n", this->name, mref, diff); in pick_mode_by_ref()
93 DPRINTF("found %s %d\n", best->name, best->dot_clock); in pick_mode_by_ref()
109 * Sort modes by refresh rate, aspect ratio (*), then resolution.
119 int aspect, refresh, hbest, vbest, abest, atemp, rbest, rtemp; in sort_modes() local
128 aspect = (*preferred)->hdisplay * 100 / (*preferred)->vdisplay; in sort_modes()
129 refresh = DIVIDE(DIVIDE((*preferred)->dot_clock * 1000, in sort_modes()
130 (*preferred)->htotal), (*preferred)->vtotal); in sort_modes()
138 * first in the list. Preferred refresh rate is taken from in sort_modes()
154 aspect = mtemp->hdisplay * 100 / mtemp->vdisplay; in sort_modes()
155 refresh = DIVIDE(DIVIDE(mtemp->dot_clock * 1000, in sort_modes()
156 mtemp->htotal), mtemp->vtotal); in sort_modes()
161 /* Sort other modes by refresh rate, aspect ratio, then resolution */ in sort_modes()
162 for (j = 1; j < nmodes - 1; j++) { in sort_modes()
168 rtemp = abs(refresh - in sort_modes()
178 if (abs(abest - atemp) > (abest / 8) && in sort_modes()
179 abs(aspect - atemp) < abs(aspect - abest)) { in sort_modes()
184 abs(abest - atemp) <= (abest / 8)) { in sort_modes()