Lines Matching defs:order
77 * bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region
78 * bitmap_release_region(bitmap, pos, order) Free specified bit region
79 * bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region
275 * machines the order of hi and lo parts of numbers match the bitmap structure.
626 * @order: region size (log base 2 of number of bits) to release
631 static inline void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)
633 bitmap_clear(bitmap, pos, BIT(order));
640 * @order: region size (log base 2 of number of bits) to allocate
647 static inline int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order)
649 unsigned int len = BIT(order);
661 * @order: region size (log base 2 of number of bits) to find
665 * a power (@order) of two, aligned to that power of two, which
671 static inline int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order)
673 unsigned int pos, end; /* scans bitmap by regions of size order */
675 for (pos = 0; (end = pos + BIT(order)) <= bits; pos = end) {
676 if (!bitmap_allocate_region(bitmap, pos, order))