Lines Matching refs:dst

31  * bitmap_zero(dst, nbits)			*dst = 0UL
32 * bitmap_fill(dst, nbits) *dst = ~0UL
33 * bitmap_copy(dst, src, nbits) *dst = *src
34 * bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2
35 * bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2
36 * bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2
37 * bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2)
38 * bitmap_complement(dst, src, nbits) *dst = ~(*src)
45 * bitmap_set(dst, pos, nbits) Set specified bit area
46 * bitmap_clear(dst, pos, nbits) Clear specified bit area
48 * bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n
49 * bitmap_shift_left(dst, src, n, nbits) *dst = *src << n
50 * bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src)
52 * bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap
53 * bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz
55 * bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf
56 * bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf
58 * bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf
59 * bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf
95 extern void __bitmap_complement(unsigned long *dst, const unsigned long *src,
97 extern void __bitmap_shift_right(unsigned long *dst,
99 extern void __bitmap_shift_left(unsigned long *dst,
101 extern int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1,
103 extern void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1,
105 extern void __bitmap_xor(unsigned long *dst, const unsigned long *bitmap1,
107 extern int __bitmap_andnot(unsigned long *dst, const unsigned long *bitmap1,
126 unsigned long *dst, int nbits);
128 unsigned long *dst, int nbits);
134 unsigned long *dst, int nbits);
135 extern void bitmap_remap(unsigned long *dst, const unsigned long *src,
139 extern void bitmap_onto(unsigned long *dst, const unsigned long *orig,
141 extern void bitmap_fold(unsigned long *dst, const unsigned long *orig,
146 extern void bitmap_copy_le(void *dst, const unsigned long *src, int nbits);
159 static inline void bitmap_zero(unsigned long *dst, int nbits)
162 *dst = 0UL;
165 memset(dst, 0, len);
169 static inline void bitmap_fill(unsigned long *dst, int nbits)
174 memset(dst, 0xff, len);
176 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits);
179 static inline void bitmap_copy(unsigned long *dst, const unsigned long *src,
183 *dst = *src;
186 memcpy(dst, src, len);
190 static inline int bitmap_and(unsigned long *dst, const unsigned long *src1,
194 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0;
195 return __bitmap_and(dst, src1, src2, nbits);
198 static inline void bitmap_or(unsigned long *dst, const unsigned long *src1,
202 *dst = *src1 | *src2;
204 __bitmap_or(dst, src1, src2, nbits);
207 static inline void bitmap_xor(unsigned long *dst, const unsigned long *src1,
211 *dst = *src1 ^ *src2;
213 __bitmap_xor(dst, src1, src2, nbits);
216 static inline int bitmap_andnot(unsigned long *dst, const unsigned long *src1,
220 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
221 return __bitmap_andnot(dst, src1, src2, nbits);
224 static inline void bitmap_complement(unsigned long *dst, const unsigned long *src,
228 *dst = ~(*src);
230 __bitmap_complement(dst, src, nbits);
283 static inline void bitmap_shift_right(unsigned long *dst,
287 *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> n;
289 __bitmap_shift_right(dst, src, n, nbits);
292 static inline void bitmap_shift_left(unsigned long *dst,
296 *dst = (*src << n) & BITMAP_LAST_WORD_MASK(nbits);
298 __bitmap_shift_left(dst, src, n, nbits);