Lines Matching refs:order
1247 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument
1262 nbits_reg = 1 << order; in __reg_op()
1313 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1317 for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end) { in bitmap_find_free_region()
1318 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_find_free_region()
1320 __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_find_free_region()
1338 void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_release_region() argument
1340 __reg_op(bitmap, pos, order, REG_OP_RELEASE); in bitmap_release_region()
1355 int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_allocate_region() argument
1357 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_allocate_region()
1359 return __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_allocate_region()