Lines Matching refs:map

176     int     map, page;  in ncmem_alloc_page()  local
183 for (map = 0, i = 0; in ncmem_alloc_page()
185 i += BITS_PER_LONG, map++) in ncmem_alloc_page()
187 if (ncmem_pool.bitmap[map] == 0) in ncmem_alloc_page()
189 page = ms_find_1st_zero (~ ncmem_pool.bitmap [map]); in ncmem_alloc_page()
192 ms_clear_bit ( page, &ncmem_pool.bitmap [map],U32); in ncmem_alloc_page()
193 offset = (BITS_PER_LONG * map) + page; in ncmem_alloc_page()
208 …Dbg("The allocated addr is %p, bit_map[%d] is 0x%08lX\n",retval,map,(U32)(ncmem_pool.bitmap[map])); in ncmem_alloc_page()
225 int map, page; in ncmem_free_page() local
229 map = page / BITS_PER_LONG; in ncmem_free_page()
232 ms_set_bit (page, &(ncmem_pool.bitmap[map]), U32); in ncmem_free_page()
233 NCM_Dbg("Free Block: bitmap[%d] is 0x%08lX\n",map,(U32)ncmem_pool.bitmap[map]); in ncmem_free_page()
253 U32 map, page; in ncmem_alloc() local
266 for (map = 0, i = 0; in ncmem_alloc()
268 i += BITS_PER_LONG, map++) in ncmem_alloc()
270 if (ncmem_pool.bitmap[map] == 0) in ncmem_alloc()
272 page = ms_find_1st_zero (~ ncmem_pool.bitmap [map]); in ncmem_alloc()
275 offset = (BITS_PER_LONG * map) + page; in ncmem_alloc()
291 map++; in ncmem_alloc()
293 ms_clear_bit ( page++, &ncmem_pool.bitmap [map],U32); in ncmem_alloc()
299 … = %ld, end of bitmap[%ld]=0x%08lX\n",retval ,size, num_of_pages, map,(U32)ncmem_pool.bitmap[map]); in ncmem_alloc()
318 int map, page, num_of_pages; in ncmem_free() local
328 map = page / BITS_PER_LONG; in ncmem_free()
336 map++; in ncmem_free()
338 ms_set_bit (page, &(ncmem_pool.bitmap[map]), U32); in ncmem_free()
340 … %ld = %d pages, end of bitmap[%d]=0x%08lX\n",size, num_of_pages, map,(U32)ncmem_pool.bitmap[map]); in ncmem_free()