Lines Matching refs:global_ppriv
43 static via_context_t global_ppriv[MAX_CONTEXT]; variable
51 if (global_ppriv[i].used && global_ppriv[i].context == context) in add_alloc_set()
53 retval = via_set_add(global_ppriv[i].sets[type], val); in add_alloc_set()
65 if (global_ppriv[i].used && global_ppriv[i].context == context) in del_alloc_set()
67 retval = via_set_del(global_ppriv[i].sets[type], val); in del_alloc_set()
114 if (global_ppriv[i].used && (global_ppriv[i].context == context)) in via_init_context()
119 if (!global_ppriv[i].used) { in via_init_context()
120 global_ppriv[i].context = context; in via_init_context()
121 global_ppriv[i].used = 1; in via_init_context()
122 global_ppriv[i].sets[0] = via_set_init(); in via_init_context()
123 global_ppriv[i].sets[1] = via_set_init(); in via_init_context()
130 if ((i >= MAX_CONTEXT) || (global_ppriv[i].sets[0] == NULL) || in via_init_context()
131 (global_ppriv[i].sets[1] == NULL)) { in via_init_context()
143 if (global_ppriv[i].used && (global_ppriv[i].context == context)) in via_final_context()
154 set = global_ppriv[i].sets[0]; in via_final_context()
164 set = global_ppriv[i].sets[1]; in via_final_context()
173 global_ppriv[i].used = 0; in via_final_context()