Lines Matching refs:p
36 static inline void ____atomic_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_set_bit() argument
41 p += BIT_WORD(bit); in ____atomic_set_bit()
44 *p |= mask; in ____atomic_set_bit()
48 static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_clear_bit() argument
53 p += BIT_WORD(bit); in ____atomic_clear_bit()
56 *p &= ~mask; in ____atomic_clear_bit()
60 static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_change_bit() argument
65 p += BIT_WORD(bit); in ____atomic_change_bit()
68 *p ^= mask; in ____atomic_change_bit()
73 ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_set_bit() argument
79 p += BIT_WORD(bit); in ____atomic_test_and_set_bit()
82 res = *p; in ____atomic_test_and_set_bit()
83 *p = res | mask; in ____atomic_test_and_set_bit()
90 ____atomic_test_and_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_clear_bit() argument
96 p += BIT_WORD(bit); in ____atomic_test_and_clear_bit()
99 res = *p; in ____atomic_test_and_clear_bit()
100 *p = res & ~mask; in ____atomic_test_and_clear_bit()
107 ____atomic_test_and_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_change_bit() argument
113 p += BIT_WORD(bit); in ____atomic_test_and_change_bit()
116 res = *p; in ____atomic_test_and_change_bit()
117 *p = res ^ mask; in ____atomic_test_and_change_bit()
153 extern void _set_bit(int nr, volatile unsigned long * p);
154 extern void _clear_bit(int nr, volatile unsigned long * p);
155 extern void _change_bit(int nr, volatile unsigned long * p);
156 extern int _test_and_set_bit(int nr, volatile unsigned long * p);
157 extern int _test_and_clear_bit(int nr, volatile unsigned long * p);
158 extern int _test_and_change_bit(int nr, volatile unsigned long * p);
163 extern int _find_first_zero_bit_le(const unsigned long *p, unsigned size);
164 extern int _find_next_zero_bit_le(const unsigned long *p, int size, int offset);
165 extern int _find_first_bit_le(const unsigned long *p, unsigned size);
166 extern int _find_next_bit_le(const unsigned long *p, int size, int offset);
171 extern int _find_first_zero_bit_be(const unsigned long *p, unsigned size);
172 extern int _find_next_zero_bit_be(const unsigned long *p, int size, int offset);
173 extern int _find_first_bit_be(const unsigned long *p, unsigned size);
174 extern int _find_next_bit_be(const unsigned long *p, int size, int offset);
180 #define ATOMIC_BITOP(name,nr,p) \ argument
181 (__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
183 #define ATOMIC_BITOP(name,nr,p) _##name(nr,p) argument
189 #define set_bit(nr,p) ATOMIC_BITOP(set_bit,nr,p) argument
190 #define clear_bit(nr,p) ATOMIC_BITOP(clear_bit,nr,p) argument
191 #define change_bit(nr,p) ATOMIC_BITOP(change_bit,nr,p) argument
192 #define test_and_set_bit(nr,p) ATOMIC_BITOP(test_and_set_bit,nr,p) argument
193 #define test_and_clear_bit(nr,p) ATOMIC_BITOP(test_and_clear_bit,nr,p) argument
194 #define test_and_change_bit(nr,p) ATOMIC_BITOP(test_and_change_bit,nr,p) argument
200 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument
201 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument
202 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument
203 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument
209 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument
210 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument
211 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument
212 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
247 static inline int find_first_zero_bit_le(const void *p, unsigned size) in find_first_zero_bit_le() argument
249 return _find_first_zero_bit_le(p, size); in find_first_zero_bit_le()
253 static inline int find_next_zero_bit_le(const void *p, int size, int offset) in find_next_zero_bit_le() argument
255 return _find_next_zero_bit_le(p, size, offset); in find_next_zero_bit_le()
259 static inline int find_next_bit_le(const void *p, int size, int offset) in find_next_bit_le() argument
261 return _find_next_bit_le(p, size, offset); in find_next_bit_le()