Lines Matching defs:scan
2681 DisplayModePtr best = NULL, scan = NULL;
2683 for (scan = output->probed_modes; scan != NULL; scan = scan->next)
2686 if (xf86ModesEqual(scan, desired)) {
2692 if (scan->HDisplay > desired->HDisplay ||
2693 scan->VDisplay > desired->VDisplay)
2704 best = scan;
2711 if ((scan->HDisplay > best->HDisplay &&
2712 scan->VDisplay >= best->VDisplay) ||
2713 (scan->HDisplay >= best->HDisplay &&
2714 scan->VDisplay > best->VDisplay))
2716 best = scan;
2723 if (scan->HDisplay == best->HDisplay &&
2724 scan->VDisplay == best->VDisplay &&
2725 (fabs(scan->VRefresh - desired->VRefresh) <
2727 best = scan;