Lines Matching refs:bmap
85 static int ppm_find_unused_entries(unsigned long *bmap, in ppm_find_unused_entries() argument
93 i = bitmap_find_next_zero_area(bmap, max_ppods, start, nr, align_mask); in ppm_find_unused_entries()
96 i = bitmap_find_next_zero_area(bmap, max_ppods, 0, start - 1, in ppm_find_unused_entries()
101 bitmap_set(bmap, i, nr); in ppm_find_unused_entries()
134 i = ppm_find_unused_entries(pool->bmap, ppm->pool_index_max, in ppm_get_cpu_entries()
205 bitmap_clear(pool->bmap, i, count); in ppm_unmark_entries()
352 unsigned int bmap; in ppm_alloc_cpu_pool() local
362 bmap = ppmax / BITS_PER_TYPE(unsigned long); in ppm_alloc_cpu_pool()
363 if (!bmap) in ppm_alloc_cpu_pool()
366 ppmax = (bmap * sizeof(unsigned long)) << 3; in ppm_alloc_cpu_pool()
368 alloc_sz = sizeof(*pools) + sizeof(unsigned long) * bmap; in ppm_alloc_cpu_pool()