Lines Matching refs:src
102 extern void __bitmap_complement(unsigned long *dst, const unsigned long *src,
104 extern void __bitmap_shift_right(unsigned long *dst, const unsigned long *src,
106 extern void __bitmap_shift_left(unsigned long *dst, const unsigned long *src,
163 extern void bitmap_remap(unsigned long *dst, const unsigned long *src,
175 extern void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits);
214 static inline void bitmap_copy(unsigned long *dst, const unsigned long *src, in bitmap_copy() argument
218 *dst = *src; in bitmap_copy()
221 memcpy(dst, src, len); in bitmap_copy()
259 static inline void bitmap_complement(unsigned long *dst, const unsigned long *src, in bitmap_complement() argument
263 *dst = ~(*src); in bitmap_complement()
265 __bitmap_complement(dst, src, nbits); in bitmap_complement()
295 static inline int bitmap_empty(const unsigned long *src, unsigned nbits) in bitmap_empty() argument
298 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()
300 return find_first_bit(src, nbits) == nbits; in bitmap_empty()
303 static inline int bitmap_full(const unsigned long *src, unsigned int nbits) in bitmap_full() argument
306 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()
308 return find_first_zero_bit(src, nbits) == nbits; in bitmap_full()
311 static __always_inline int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() argument
314 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
315 return __bitmap_weight(src, nbits); in bitmap_weight()
318 static inline void bitmap_shift_right(unsigned long *dst, const unsigned long *src, in bitmap_shift_right() argument
322 *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift; in bitmap_shift_right()
324 __bitmap_shift_right(dst, src, shift, nbits); in bitmap_shift_right()
327 static inline void bitmap_shift_left(unsigned long *dst, const unsigned long *src, in bitmap_shift_left() argument
331 *dst = (*src << shift) & BITMAP_LAST_WORD_MASK(nbits); in bitmap_shift_left()
333 __bitmap_shift_left(dst, src, shift, nbits); in bitmap_shift_left()