Lines Matching refs:order
947 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument
962 nbits_reg = 1 << order; in __reg_op()
1013 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1017 for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end) { in bitmap_find_free_region()
1018 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_find_free_region()
1020 __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_find_free_region()
1038 void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_release_region() argument
1040 __reg_op(bitmap, pos, order, REG_OP_RELEASE); in bitmap_release_region()
1055 int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_allocate_region() argument
1057 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_allocate_region()
1059 return __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_allocate_region()