Lines Matching refs:ptr
80 xf86freeModeList(XF86ModePtr ptr) in xf86freeModeList() argument
84 while (ptr) { in xf86freeModeList()
85 TestFree(ptr->mode_name); in xf86freeModeList()
86 prev = ptr; in xf86freeModeList()
87 ptr = ptr->list.next; in xf86freeModeList()
93 xf86freeDisplayList(XF86ConfDisplayPtr ptr) in xf86freeDisplayList() argument
97 while (ptr) { in xf86freeDisplayList()
98 xf86freeModeList(ptr->disp_mode_lst); in xf86freeDisplayList()
99 xf86optionListFree(ptr->disp_option_lst); in xf86freeDisplayList()
100 prev = ptr; in xf86freeDisplayList()
101 ptr = ptr->list.next; in xf86freeDisplayList()
115 ptr->disp_black.red = ptr->disp_black.green = ptr->disp_black.blue = -1; in xf86parseDisplaySubSection()
116 ptr->disp_white.red = ptr->disp_white.green = ptr->disp_white.blue = -1; in xf86parseDisplaySubSection()
117 ptr->disp_frameX0 = ptr->disp_frameY0 = -1; in xf86parseDisplaySubSection()
121 ptr->disp_comment = xf86addComment(ptr->disp_comment, xf86_lex_val.str); in xf86parseDisplaySubSection()
124 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
126 ptr->disp_frameX0 = xf86_lex_val.num; in xf86parseDisplaySubSection()
127 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
129 ptr->disp_frameY0 = xf86_lex_val.num; in xf86parseDisplaySubSection()
132 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
134 ptr->disp_virtualX = xf86_lex_val.num; in xf86parseDisplaySubSection()
135 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
137 ptr->disp_virtualY = xf86_lex_val.num; in xf86parseDisplaySubSection()
140 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
142 ptr->disp_depth = xf86_lex_val.num; in xf86parseDisplaySubSection()
145 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
147 ptr->disp_bpp = xf86_lex_val.num; in xf86parseDisplaySubSection()
150 if (xf86getSubToken(&(ptr->disp_comment)) != STRING) in xf86parseDisplaySubSection()
152 ptr->disp_visual = xf86_lex_val.str; in xf86parseDisplaySubSection()
155 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
157 ptr->disp_weight.red = xf86_lex_val.num; in xf86parseDisplaySubSection()
158 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
160 ptr->disp_weight.green = xf86_lex_val.num; in xf86parseDisplaySubSection()
161 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
163 ptr->disp_weight.blue = xf86_lex_val.num; in xf86parseDisplaySubSection()
166 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
168 ptr->disp_black.red = xf86_lex_val.num; in xf86parseDisplaySubSection()
169 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
171 ptr->disp_black.green = xf86_lex_val.num; in xf86parseDisplaySubSection()
172 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
174 ptr->disp_black.blue = xf86_lex_val.num; in xf86parseDisplaySubSection()
177 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
179 ptr->disp_white.red = xf86_lex_val.num; in xf86parseDisplaySubSection()
180 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
182 ptr->disp_white.green = xf86_lex_val.num; in xf86parseDisplaySubSection()
183 if (xf86getSubToken(&(ptr->disp_comment)) != NUMBER) in xf86parseDisplaySubSection()
185 ptr->disp_white.blue = xf86_lex_val.num; in xf86parseDisplaySubSection()
192 xf86getSubTokenWithTab(&(ptr->disp_comment), in xf86parseDisplaySubSection()
197 ptr->disp_mode_lst = (XF86ModePtr) in xf86parseDisplaySubSection()
198 xf86addListItem((glp) ptr->disp_mode_lst, (glp) mptr); in xf86parseDisplaySubSection()
204 ptr->disp_option_lst = xf86parseOption(ptr->disp_option_lst); in xf86parseDisplaySubSection()
220 return ptr; in xf86parseDisplaySubSection()
258 ptr->scrn_comment = xf86addComment(ptr->scrn_comment, xf86_lex_val.str); in xf86parseScreenSection()
261 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
263 ptr->scrn_identifier = xf86_lex_val.str; in xf86parseScreenSection()
269 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
271 ptr->match_seat = xf86_lex_val.str; in xf86parseScreenSection()
274 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
276 ptr->scrn_obso_driver = xf86_lex_val.str; in xf86parseScreenSection()
282 if (xf86getSubToken(&(ptr->scrn_comment)) != NUMBER) in xf86parseScreenSection()
284 ptr->scrn_defaultdepth = xf86_lex_val.num; in xf86parseScreenSection()
287 if (xf86getSubToken(&(ptr->scrn_comment)) != NUMBER) in xf86parseScreenSection()
289 ptr->scrn_defaultbpp = xf86_lex_val.num; in xf86parseScreenSection()
292 if (xf86getSubToken(&(ptr->scrn_comment)) != NUMBER) in xf86parseScreenSection()
294 ptr->scrn_defaultfbbpp = xf86_lex_val.num; in xf86parseScreenSection()
297 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
299 ptr->scrn_device_str = xf86_lex_val.str; in xf86parseScreenSection()
302 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
304 if (ptr->num_gpu_devices == CONF_MAXGPUDEVICES) in xf86parseScreenSection()
306 ptr->scrn_gpu_device_str[ptr->num_gpu_devices++] = xf86_lex_val.str; in xf86parseScreenSection()
309 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
311 ptr->scrn_monitor_str = xf86_lex_val.str; in xf86parseScreenSection()
317 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
321 for (aptr = ptr->scrn_adaptor_lst; aptr; in xf86parseScreenSection()
330 ptr->scrn_adaptor_lst = (XF86ConfAdaptorLinkPtr) in xf86parseScreenSection()
331 xf86addListItem((glp) ptr->scrn_adaptor_lst, (glp) aptr); in xf86parseScreenSection()
336 if (xf86getSubToken(&(ptr->scrn_comment)) != NUMBER) in xf86parseScreenSection()
338 ptr->scrn_virtualX = xf86_lex_val.num; in xf86parseScreenSection()
339 if (xf86getSubToken(&(ptr->scrn_comment)) != NUMBER) in xf86parseScreenSection()
341 ptr->scrn_virtualY = xf86_lex_val.num; in xf86parseScreenSection()
344 ptr->scrn_option_lst = xf86parseOption(ptr->scrn_option_lst); in xf86parseScreenSection()
347 if (xf86getSubToken(&(ptr->scrn_comment)) != STRING) in xf86parseScreenSection()
371 return ptr; in xf86parseScreenSection()
375 xf86printScreenSection(FILE * cf, XF86ConfScreenPtr ptr) in xf86printScreenSection() argument
381 while (ptr) { in xf86printScreenSection()
383 if (ptr->scrn_comment) in xf86printScreenSection()
384 fprintf(cf, "%s", ptr->scrn_comment); in xf86printScreenSection()
385 if (ptr->scrn_identifier) in xf86printScreenSection()
386 fprintf(cf, "\tIdentifier \"%s\"\n", ptr->scrn_identifier); in xf86printScreenSection()
387 if (ptr->scrn_obso_driver) in xf86printScreenSection()
388 fprintf(cf, "\tDriver \"%s\"\n", ptr->scrn_obso_driver); in xf86printScreenSection()
389 if (ptr->scrn_device_str) in xf86printScreenSection()
390 fprintf(cf, "\tDevice \"%s\"\n", ptr->scrn_device_str); in xf86printScreenSection()
391 for (i = 0; i < ptr->num_gpu_devices; i++) in xf86printScreenSection()
392 if (ptr->scrn_gpu_device_str[i]) in xf86printScreenSection()
393 fprintf(cf, "\tGPUDevice \"%s\"\n", ptr->scrn_gpu_device_str[i]); in xf86printScreenSection()
394 if (ptr->scrn_monitor_str) in xf86printScreenSection()
395 fprintf(cf, "\tMonitor \"%s\"\n", ptr->scrn_monitor_str); in xf86printScreenSection()
396 if (ptr->scrn_defaultdepth) in xf86printScreenSection()
397 fprintf(cf, "\tDefaultDepth %d\n", ptr->scrn_defaultdepth); in xf86printScreenSection()
398 if (ptr->scrn_defaultbpp) in xf86printScreenSection()
399 fprintf(cf, "\tDefaultBPP %d\n", ptr->scrn_defaultbpp); in xf86printScreenSection()
400 if (ptr->scrn_defaultfbbpp) in xf86printScreenSection()
401 fprintf(cf, "\tDefaultFbBPP %d\n", ptr->scrn_defaultfbbpp); in xf86printScreenSection()
402 xf86printOptionList(cf, ptr->scrn_option_lst, 1); in xf86printScreenSection()
403 for (aptr = ptr->scrn_adaptor_lst; aptr; aptr = aptr->list.next) { in xf86printScreenSection()
406 if (ptr->scrn_virtualX && ptr->scrn_virtualY) in xf86printScreenSection()
408 ptr->scrn_virtualX, ptr->scrn_virtualY); in xf86printScreenSection()
409 for (dptr = ptr->scrn_display_lst; dptr; dptr = dptr->list.next) { in xf86printScreenSection()
458 ptr = ptr->list.next; in xf86printScreenSection()
464 xf86freeAdaptorLinkList(XF86ConfAdaptorLinkPtr ptr) in xf86freeAdaptorLinkList() argument
468 while (ptr) { in xf86freeAdaptorLinkList()
469 TestFree(ptr->al_adaptor_str); in xf86freeAdaptorLinkList()
470 prev = ptr; in xf86freeAdaptorLinkList()
471 ptr = ptr->list.next; in xf86freeAdaptorLinkList()
477 xf86freeScreenList(XF86ConfScreenPtr ptr) in xf86freeScreenList() argument
481 while (ptr) { in xf86freeScreenList()
482 TestFree(ptr->scrn_identifier); in xf86freeScreenList()
483 TestFree(ptr->scrn_monitor_str); in xf86freeScreenList()
484 TestFree(ptr->scrn_device_str); in xf86freeScreenList()
485 for (i = 0; i < ptr->num_gpu_devices; i++) in xf86freeScreenList()
486 TestFree(ptr->scrn_gpu_device_str[i]); in xf86freeScreenList()
487 TestFree(ptr->scrn_comment); in xf86freeScreenList()
488 xf86optionListFree(ptr->scrn_option_lst); in xf86freeScreenList()
489 xf86freeAdaptorLinkList(ptr->scrn_adaptor_lst); in xf86freeScreenList()
490 xf86freeDisplayList(ptr->scrn_display_lst); in xf86freeScreenList()
491 prev = ptr; in xf86freeScreenList()
492 ptr = ptr->list.next; in xf86freeScreenList()