Lines Matching refs:map

170 	int     map, page;  in ncmem_alloc_page()  local
177 for (map = 0, i = 0; in ncmem_alloc_page()
179 i += BITS_PER_LONG, map++) in ncmem_alloc_page()
181 if (ncmem_pool.bitmap[map] == 0) in ncmem_alloc_page()
183 page = ffz (~ ncmem_pool.bitmap [map]); in ncmem_alloc_page()
185 clear_bit ( page, &ncmem_pool.bitmap [map],U32); in ncmem_alloc_page()
186 offset = (BITS_PER_LONG * map) + page; in ncmem_alloc_page()
201 …Dbg("The allocated addr is %p, bit_map[%d] is 0x%08lX\n",retval,map,(U32)(ncmem_pool.bitmap[map])); in ncmem_alloc_page()
218 int map, page; in ncmem_free_page() local
222 map = page / BITS_PER_LONG; in ncmem_free_page()
225 set_bit (page, &(ncmem_pool.bitmap[map]), U32); in ncmem_free_page()
226 NCM_Dbg("Free Block: bitmap[%d] is 0x%08lX",map,(U32)ncmem_pool.bitmap[map]); in ncmem_free_page()
246 U32 map, page; in ncmem_alloc() local
259 for (map = 0, i = 0; in ncmem_alloc()
261 i += BITS_PER_LONG, map++) in ncmem_alloc()
263 if (ncmem_pool.bitmap[map] == 0) in ncmem_alloc()
265 page = ffz (~ ncmem_pool.bitmap [map]); in ncmem_alloc()
267 offset = (BITS_PER_LONG * map) + page; in ncmem_alloc()
283 map++; in ncmem_alloc()
285 clear_bit ( page++, &ncmem_pool.bitmap [map],U32); in ncmem_alloc()
291 …es = %ld, end of bitmap[%ld]=0x%08lX",retval ,size, num_of_pages, map,(U32)ncmem_pool.bitmap[map]); in ncmem_alloc()
310 int map, page, num_of_pages; in ncmem_free() local
320 map = page / BITS_PER_LONG; in ncmem_free()
328 map++; in ncmem_free()
330 set_bit (page, &(ncmem_pool.bitmap[map]), U32); in ncmem_free()
332 … = %ld = %d pages, end of bitmap[%d]=0x%08lX",size, num_of_pages, map,(U32)ncmem_pool.bitmap[map]); in ncmem_free()