Lines Matching refs:nid
73 static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid) in uncached_add_chunk() argument
95 page = __alloc_pages_node(nid, in uncached_add_chunk()
148 status = gen_pool_add(uc_pool->pool, uc_addr, IA64_GRANULE_SIZE, nid); in uncached_add_chunk()
181 int nid; in uncached_alloc_page() local
188 nid = starting_nid; in uncached_alloc_page()
191 if (!node_state(nid, N_HIGH_MEMORY)) in uncached_alloc_page()
193 uc_pool = &uncached_pools[nid]; in uncached_alloc_page()
201 } while (uncached_add_chunk(uc_pool, nid) == 0); in uncached_alloc_page()
203 } while ((nid = (nid + 1) % MAX_NUMNODES) != starting_nid); in uncached_alloc_page()
220 int nid = paddr_to_nid(uc_addr - __IA64_UNCACHED_OFFSET); in uncached_free_page() local
221 struct gen_pool *pool = uncached_pools[nid].pool; in uncached_free_page()
246 int nid = paddr_to_nid(uc_start - __IA64_UNCACHED_OFFSET); in uncached_build_memmap() local
247 struct gen_pool *pool = uncached_pools[nid].pool; in uncached_build_memmap()
254 (void) gen_pool_add(pool, uc_start, size, nid); in uncached_build_memmap()
262 int nid; in uncached_init() local
264 for_each_node_state(nid, N_ONLINE) { in uncached_init()
265 uncached_pools[nid].pool = gen_pool_create(PAGE_SHIFT, nid); in uncached_init()
266 mutex_init(&uncached_pools[nid].add_chunk_mutex); in uncached_init()