Lines Matching defs:region

174  * bitmap_cut() - remove bit region from bitmap and right shift remaining bits
177 * @first: start bit of region to be removed
497 struct region {
504 static int bitmap_set_region(const struct region *r,
518 static int bitmap_check_region(const struct region *r)
558 * of the region.
576 static const char *bitmap_parse_region(const char *str, struct region *r)
635 * - ``-EINVAL``: wrong region format
642 struct region r;
1088 * pos: the beginning of the region
1089 * order: region size (log base 2 of number of bits)
1090 * reg_op: operation(s) to perform on that region of bitmap
1092 * Can set, verify and/or release a region of bits in a bitmap,
1095 * A region of a bitmap is a sequence of bits in the bitmap, of
1099 * Returns 1 if REG_OP_ISFREE succeeds (region is all zero bits).
1104 REG_OP_ISFREE, /* true if region is all zero bits */
1105 REG_OP_ALLOC, /* set all bits in region */
1106 REG_OP_RELEASE, /* clear all bits in region */
1111 int nbits_reg; /* number of bits in region */
1112 int index; /* index first long of region in bitmap */
1113 int offset; /* bit offset region in bitmap[index] */
1114 int nlongs_reg; /* num longs spanned by region in bitmap */
1115 int nbitsinlong; /* num bits of region in each spanned long */
1116 unsigned long mask; /* bitmask for one long of region */
1144 ret = 1; /* all bits in region free (zero) */
1162 * bitmap_find_free_region - find a contiguous aligned mem region
1165 * @order: region size (log base 2 of number of bits) to find
1167 * Find a region of free (zero) bits in a @bitmap of @bits bits and
1172 * Return the bit offset in bitmap of the allocated region,
1190 * bitmap_release_region - release allocated bitmap region
1192 * @pos: beginning of bit region to release
1193 * @order: region size (log base 2 of number of bits) to release
1196 * the found region (by clearing it in the bitmap).
1207 * bitmap_allocate_region - allocate bitmap region
1209 * @pos: beginning of bit region to allocate
1210 * @order: region size (log base 2 of number of bits) to allocate
1212 * Allocate (set bits in) a specified region of a bitmap.
1214 * Return 0 on success, or %-EBUSY if specified region wasn't