Lines Matching full:modes
960 DisplayModePtr * modes, int n, int width, int height) in xf86PickCrtcs() argument
979 best_score = xf86PickCrtcs(scrn, best_crtcs, modes, n + 1, width, height); in xf86PickCrtcs()
980 if (modes[n] == NULL) in xf86PickCrtcs()
991 /* Score outputs with preferred modes higher */ in xf86PickCrtcs()
1016 if (xf86ModesEqual(modes[o], modes[n]) && in xf86PickCrtcs()
1025 continue; /* different modes, can't clone */ in xf86PickCrtcs()
1030 my_score + xf86PickCrtcs(scrn, crtcs, modes, n + 1, width, height); in xf86PickCrtcs()
1117 xf86UserConfiguredOutputs(ScrnInfoPtr scrn, DisplayModePtr * modes) in xf86UserConfiguredOutputs() argument
1149 modes[o] = xf86OutputHasUserPreferredMode(output); in xf86UserConfiguredOutputs()
1150 if (modes[o]) in xf86UserConfiguredOutputs()
1158 xf86InitialOutputPositions(ScrnInfoPtr scrn, DisplayModePtr * modes) in xf86InitialOutputPositions() argument
1259 if (!modes[or]) { in xf86InitialOutputPositions()
1261 "Cannot position output %s relative to output %s without modes\n", in xf86InitialOutputPositions()
1277 xf86ModeHeight(modes[or], relative->initial_rotation); in xf86InitialOutputPositions()
1281 xf86ModeWidth(modes[or], relative->initial_rotation); in xf86InitialOutputPositions()
1284 if (modes[o]) in xf86InitialOutputPositions()
1286 xf86ModeHeight(modes[o], output->initial_rotation); in xf86InitialOutputPositions()
1289 if (modes[o]) in xf86InitialOutputPositions()
1291 xf86ModeWidth(modes[o], output->initial_rotation); in xf86InitialOutputPositions()
1432 /* prune identical modes */ in xf86SortModes()
1461 if (pScrn->display->modes && *pScrn->display->modes) in preferredMode()
1462 preferred_mode = *pScrn->display->modes; in preferredMode()
1514 * {next,previous} M_T_USERDEF mode in the screen modes list, itself
1516 * modes/xf86Crtc.c: xf86SortModes() xf86SetScrnInfoModes(), and
1643 * compare against the maximum values so that we don't drop modes. in xf86ProbeOutputModes()
1652 /* Probe the list of modes for each output. */ in xf86ProbeOutputModes()
1724 /* if display is not continuous-frequency, don't add default modes */ in xf86ProbeOutputModes()
1778 * If this is not an RB monitor, remove RB modes from the default in xf86ProbeOutputModes()
1779 * pool. RB modes from the config or the monitor itself are fine. in xf86ProbeOutputModes()
1786 * Check output and config modes against sync range from config file in xf86ProbeOutputModes()
1792 * Check default modes against sync range in xf86ProbeOutputModes()
1796 * Check default modes against monitor max clock in xf86ProbeOutputModes()
1812 * Check all modes against max size, interlace, and doublescan in xf86ProbeOutputModes()
1824 * Check all modes against output in xf86ProbeOutputModes()
1864 "Printing probed modes for output %s\n", in xf86ProbeOutputModes()
1869 "No remaining probed modes for output %s\n", in xf86ProbeOutputModes()
2008 /* Clear any existing modes from scrn->modes */ in xf86SetScrnInfoModes()
2009 while (scrn->modes != NULL) in xf86SetScrnInfoModes()
2010 xf86DeleteMode(&scrn->modes, scrn->modes); in xf86SetScrnInfoModes()
2012 /* Set scrn->modes to the mode list for the 'compat' output */ in xf86SetScrnInfoModes()
2013 scrn->modes = xf86DuplicateModes(scrn, output->probed_modes); in xf86SetScrnInfoModes()
2016 for (mode = scrn->modes; mode; mode = mode->next) in xf86SetScrnInfoModes()
2021 if (!scrn->modes) { in xf86SetScrnInfoModes()
2022 scrn->modes = xf86ModesAdd(scrn->modes, in xf86SetScrnInfoModes()
2028 /* For some reason, scrn->modes is circular, unlike the other mode in xf86SetScrnInfoModes()
2031 for (last = scrn->modes; last && last->next; last = last->next); in xf86SetScrnInfoModes()
2032 last->next = scrn->modes; in xf86SetScrnInfoModes()
2033 scrn->modes->prev = last; in xf86SetScrnInfoModes()
2035 while (scrn->modes != mode) in xf86SetScrnInfoModes()
2036 scrn->modes = scrn->modes->next; in xf86SetScrnInfoModes()
2039 scrn->currentMode = scrn->modes; in xf86SetScrnInfoModes()
2163 DisplayModePtr *modes, Bool *enabled, in xf86TargetRightOf() argument
2211 modes[o] = mode; in xf86TargetRightOf()
2254 modes[ot] = mode; in xf86TargetRightOf()
2267 DisplayModePtr * modes, Bool *enabled, in xf86TargetPreferred() argument
2365 /* oh good, there is a match. stash the selected modes and return. */ in xf86TargetPreferred()
2366 memcpy(modes, preferred_match, in xf86TargetPreferred()
2377 DisplayModePtr * modes, Bool *enabled, int width, int height) in xf86TargetAspect() argument
2421 modes[o] = xf86OutputFindClosestMode(config->output[o], guess); in xf86TargetAspect()
2432 DisplayModePtr * modes, Bool *enabled, int width, int height) in xf86TargetFallback() argument
2439 /* User preferred > preferred > other modes */ in xf86TargetFallback()
2457 modes[config->compat_output] = target_mode; in xf86TargetFallback()
2459 /* Fill in other output modes */ in xf86TargetFallback()
2461 if (!modes[o]) in xf86TargetFallback()
2462 modes[o] = xf86ClosestMode(config->output[o], target_mode, in xf86TargetFallback()
2471 DisplayModePtr * modes, Bool *enabled, int width, int height) in xf86TargetUserpref() argument
2475 if (xf86UserConfiguredOutputs(scrn, modes)) in xf86TargetUserpref()
2476 return xf86TargetFallback(scrn, config, modes, enabled, width, height); in xf86TargetUserpref()
2481 xf86TargetFallback(scrn, config, modes, enabled, width, height); in xf86TargetUserpref()
2496 * virtual[XY] to include the largest modes and set config->max{Width,Height}
2506 DisplayModePtr *modes; in xf86InitialConfiguration() local
2533 modes = xnfcalloc(config->num_output, sizeof(DisplayModePtr)); in xf86InitialConfiguration()
2546 if (xf86TargetUserpref(scrn, config, modes, enabled, width, height)) in xf86InitialConfiguration()
2547 xf86DrvMsg(i, X_INFO, "Using user preference for initial modes\n"); in xf86InitialConfiguration()
2548 else if (xf86TargetRightOf(scrn, config, modes, enabled, width, height)) in xf86InitialConfiguration()
2549 xf86DrvMsg(i, X_INFO, "Using spanning desktop for initial modes\n"); in xf86InitialConfiguration()
2551 (scrn, config, modes, enabled, width, height)) in xf86InitialConfiguration()
2552 xf86DrvMsg(i, X_INFO, "Using exact sizes for initial modes\n"); in xf86InitialConfiguration()
2553 else if (xf86TargetAspect(scrn, config, modes, enabled, width, height)) in xf86InitialConfiguration()
2555 "Using fuzzy aspect match for initial modes\n"); in xf86InitialConfiguration()
2557 (scrn, config, modes, enabled, width, height)) in xf86InitialConfiguration()
2558 xf86DrvMsg(i, X_INFO, "Using sloppy heuristic for initial modes\n"); in xf86InitialConfiguration()
2560 xf86DrvMsg(i, X_WARNING, "Unable to find initial modes\n"); in xf86InitialConfiguration()
2564 if (!modes[o]) in xf86InitialConfiguration()
2566 "Output %s enabled but has no modes\n", in xf86InitialConfiguration()
2571 config->output[o]->name, modes[o]->name, in xf86InitialConfiguration()
2579 if (!xf86InitialOutputPositions(scrn, modes)) in xf86InitialConfiguration()
2590 if (have_outputs && !xf86PickCrtcs(scrn, crtcs, modes, 0, width, height)) in xf86InitialConfiguration()
2612 DisplayModePtr mode = modes[o]; in xf86InitialConfiguration()
2681 free(modes); in xf86InitialConfiguration()
2770 * modes (used in EnterVT functions, or at server startup)
2848 * In the current world order, there are lists of modes per output, which may
2911 * output. Then, find similar modes for the other outputs, as with the
3266 * Return the list of modes supported by the EDID information