Lines Matching refs:mem_node_config
36 struct mem_node_conf mem_node_config[MAX_MEM_NODES];
86 if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists, 0, 1)) {
90 if (start < mem_node_config[mnode].physbase)
91 mem_node_config[mnode].physbase = start;
92 if (end > mem_node_config[mnode].physmax)
93 mem_node_config[mnode].physmax = end;
95 mem_node_config[mnode].physbase = start;
96 mem_node_config[mnode].physmax = end;
131 ASSERT(mem_node_config[mnode].exists == 1);
134 node_size = mem_node_config[mnode].physmax -
135 mem_node_config[mnode].physbase;
141 if (start <= mem_node_config[mnode].physbase)
142 mem_node_config[mnode].physbase = end + 1;
143 ASSERT(end <= mem_node_config[mnode].physmax);
144 if (end == mem_node_config[mnode].physmax)
145 mem_node_config[mnode].physmax = start - 1;
164 mem_node_config[mnode].exists = 0;
224 if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists,
231 mem_node_config[mnode].physbase = (uint64_t)-1;
232 mem_node_config[mnode].physmax = 0;
270 base = mem_node_config[mnode].physbase;
271 end = mem_node_config[mnode].physmax;
297 * page_ctrs_adjust must ensure that mem_node_config does not change while it
308 if (mem_node_config[mnode].exists == 0)
310 if (max < mem_node_config[mnode].physmax)
311 max = mem_node_config[mnode].physmax;
312 if (base > mem_node_config[mnode].physbase)
313 base = mem_node_config[mnode].physbase;