Lines Matching full:options
50 static Bool ParseOptionValue(int scrnIndex, XF86OptionPtr options,
54 * xf86CollectOptions collects the options from each of the config file
55 * sections used by the screen and puts the combined list in pScrn->options.
63 * The extraOpts parameter may optionally contain a list of additional options
66 * The order of precedence for options is:
80 pScrn->options = NULL; in xf86CollectOptions()
83 xf86MergeOutputClassOptions(pScrn->entityList[i], &pScrn->options); in xf86CollectOptions()
87 if (device && device->options) { in xf86CollectOptions()
88 tmp = xf86optionListDup(device->options); in xf86CollectOptions()
89 if (pScrn->options) in xf86CollectOptions()
90 pScrn->options = xf86optionListMerge(pScrn->options, tmp); in xf86CollectOptions()
92 pScrn->options = tmp; in xf86CollectOptions()
95 if (pScrn->monitor->options) { in xf86CollectOptions()
96 tmp = xf86optionListDup(pScrn->monitor->options); in xf86CollectOptions()
97 if (pScrn->options) in xf86CollectOptions()
98 pScrn->options = xf86optionListMerge(pScrn->options, tmp); in xf86CollectOptions()
100 pScrn->options = tmp; in xf86CollectOptions()
102 if (pScrn->confScreen->options) { in xf86CollectOptions()
103 tmp = xf86optionListDup(pScrn->confScreen->options); in xf86CollectOptions()
104 if (pScrn->options) in xf86CollectOptions()
105 pScrn->options = xf86optionListMerge(pScrn->options, tmp); in xf86CollectOptions()
107 pScrn->options = tmp; in xf86CollectOptions()
109 if (pScrn->display->options) { in xf86CollectOptions()
110 tmp = xf86optionListDup(pScrn->display->options); in xf86CollectOptions()
111 if (pScrn->options) in xf86CollectOptions()
112 pScrn->options = xf86optionListMerge(pScrn->options, tmp); in xf86CollectOptions()
114 pScrn->options = tmp; in xf86CollectOptions()
118 if (pScrn->options) in xf86CollectOptions()
119 pScrn->options = xf86optionListMerge(pScrn->options, tmp); in xf86CollectOptions()
121 pScrn->options = tmp; in xf86CollectOptions()
126 * xf86CollectInputOptions collects extra options for an InputDevice (other
128 * The options are merged into the existing ones and thus take precedence
138 if (pInfo->options) in xf86CollectInputOptions()
139 pInfo->options = xf86optionListMerge(tmp, pInfo->options); in xf86CollectInputOptions()
141 pInfo->options = tmp; in xf86CollectInputOptions()
150 xf86OptionListDuplicate(XF86OptionPtr options) in xf86OptionListDuplicate() argument
154 while (options) { in xf86OptionListDuplicate()
155 o = xf86AddNewOption(o, xf86OptionName(options), in xf86OptionListDuplicate()
156 xf86OptionValue(options)); in xf86OptionListDuplicate()
157 options = xf86nextOption(options); in xf86OptionListDuplicate()
266 * These are like the Set*Option functions, but they don't mark the options
366 xf86OptionListCreate(const char **options, int count, int used) in xf86OptionListCreate() argument
368 return xf86optionListCreate(options, count, used); in xf86OptionListCreate()
413 xf86FindOption(XF86OptionPtr options, const char *name) in xf86FindOption() argument
415 return xf86findOption(options, name); in xf86FindOption()
419 xf86FindOptionValue(XF86OptionPtr options, const char *name) in xf86FindOptionValue() argument
421 return xf86findOptionValue(options, name); in xf86FindOptionValue()
432 xf86MarkOptionUsedByName(XF86OptionPtr options, const char *name) in xf86MarkOptionUsedByName() argument
436 opt = xf86findOption(options, name); in xf86MarkOptionUsedByName()
451 xf86CheckIfOptionUsedByName(XF86OptionPtr options, const char *name) in xf86CheckIfOptionUsedByName() argument
455 opt = xf86findOption(options, name); in xf86CheckIfOptionUsedByName()
481 ParseOptionValue(int scrnIndex, XF86OptionPtr options, OptionInfoPtr p, in ParseOptionValue() argument
488 if ((s = xf86findOptionValue(options, p->name)) != NULL) { in ParseOptionValue()
490 wasUsed = xf86CheckIfOptionUsedByName(options, p->name); in ParseOptionValue()
491 xf86MarkOptionUsedByName(options, p->name); in ParseOptionValue()
657 /* Look for matches with options with or without a "No" prefix. */ in ParseOptionValue()
677 if ((s = xf86findOptionValue(options, newn)) != NULL) { in ParseOptionValue()
679 xf86MarkOptionUsedByName(options, newn); in ParseOptionValue()
709 xf86ProcessOptions(int scrnIndex, XF86OptionPtr options, OptionInfoPtr optinfo) in xf86ProcessOptions() argument
714 ParseOptionValue(scrnIndex, options, p, TRUE); in xf86ProcessOptions()