diff options
Diffstat (limited to 'include/linux/bitmap.h')
| -rw-r--r-- | include/linux/bitmap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index 9653fdb76a42..e9b0b9ab07e5 100644 --- a/include/linux/bitmap.h +++ b/include/linux/bitmap.h | |||
| @@ -59,6 +59,8 @@ | |||
| 59 | * bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region | 59 | * bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region |
| 60 | * bitmap_release_region(bitmap, pos, order) Free specified bit region | 60 | * bitmap_release_region(bitmap, pos, order) Free specified bit region |
| 61 | * bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region | 61 | * bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region |
| 62 | * bitmap_from_u32array(dst, nbits, buf, nwords) *dst = *buf (nwords 32b words) | ||
| 63 | * bitmap_to_u32array(buf, nwords, src, nbits) *buf = *dst (nwords 32b words) | ||
| 62 | */ | 64 | */ |
| 63 | 65 | ||
| 64 | /* | 66 | /* |
| @@ -163,6 +165,14 @@ extern void bitmap_fold(unsigned long *dst, const unsigned long *orig, | |||
| 163 | extern int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order); | 165 | extern int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order); |
| 164 | extern void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order); | 166 | extern void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order); |
| 165 | extern int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order); | 167 | extern int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order); |
| 168 | extern unsigned int bitmap_from_u32array(unsigned long *bitmap, | ||
| 169 | unsigned int nbits, | ||
| 170 | const u32 *buf, | ||
| 171 | unsigned int nwords); | ||
| 172 | extern unsigned int bitmap_to_u32array(u32 *buf, | ||
| 173 | unsigned int nwords, | ||
| 174 | const unsigned long *bitmap, | ||
| 175 | unsigned int nbits); | ||
| 166 | #ifdef __BIG_ENDIAN | 176 | #ifdef __BIG_ENDIAN |
| 167 | extern void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits); | 177 | extern void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits); |
| 168 | #else | 178 | #else |
