Lines Matching defs:scan
2902 DisplayModePtr best = NULL, scan = NULL;
2904 for (scan = output->probed_modes; scan != NULL; scan = scan->next) {
2906 if (xf86ModesEqual(scan, desired)) {
2912 if (scan->HDisplay > desired->HDisplay ||
2913 scan->VDisplay > desired->VDisplay) {
2922 best = scan;
2929 if ((scan->HDisplay > best->HDisplay &&
2930 scan->VDisplay >= best->VDisplay) ||
2931 (scan->HDisplay >= best->HDisplay &&
2932 scan->VDisplay > best->VDisplay)) {
2933 best = scan;
2940 if (scan->HDisplay == best->HDisplay &&
2941 scan->VDisplay == best->VDisplay &&
2942 (fabs(scan->VRefresh - desired->VRefresh) <
2944 best = scan;