Lines Matching defs:nid
74 * @nid: node id of node to allocate memory from, or -1
79 static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid)
101 page = alloc_pages_exact_node(nid,
157 status = gen_pool_add(uc_pool->pool, uc_addr, IA64_GRANULE_SIZE, nid);
190 int nid;
197 nid = starting_nid;
200 if (!node_state(nid, N_HIGH_MEMORY))
202 uc_pool = &uncached_pools[nid];
210 } while (uncached_add_chunk(uc_pool, nid) == 0);
212 } while ((nid = (nid + 1) % MAX_NUMNODES) != starting_nid);
229 int nid = paddr_to_nid(uc_addr - __IA64_UNCACHED_OFFSET);
230 struct gen_pool *pool = uncached_pools[nid].pool;
255 int nid = paddr_to_nid(uc_start - __IA64_UNCACHED_OFFSET);
256 struct gen_pool *pool = uncached_pools[nid].pool;
263 (void) gen_pool_add(pool, uc_start, size, nid);
271 int nid;
273 for_each_node_state(nid, N_ONLINE) {
274 uncached_pools[nid].pool = gen_pool_create(PAGE_SHIFT, nid);
275 mutex_init(&uncached_pools[nid].add_chunk_mutex);