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 unsigned long _find_first_zero_bit_le(const unsigned long *p, unsigned long size);
164 unsigned long _find_next_zero_bit_le(const unsigned long *p,
166 unsigned long _find_first_bit_le(const unsigned long *p, unsigned long size);
167 unsigned long _find_next_bit_le(const unsigned long *p, unsigned long size, unsigned long offset);
172 unsigned long _find_first_zero_bit_be(const unsigned long *p, unsigned long size);
173 unsigned long _find_next_zero_bit_be(const unsigned long *p,
175 unsigned long _find_first_bit_be(const unsigned long *p, unsigned long size);
176 unsigned long _find_next_bit_be(const unsigned long *p, unsigned long size, unsigned long offset);
182 #define ATOMIC_BITOP(name,nr,p) \ argument
183 (__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
185 #define ATOMIC_BITOP(name,nr,p) _##name(nr,p) argument
191 #define set_bit(nr,p) ATOMIC_BITOP(set_bit,nr,p) argument
192 #define clear_bit(nr,p) ATOMIC_BITOP(clear_bit,nr,p) argument
193 #define change_bit(nr,p) ATOMIC_BITOP(change_bit,nr,p) argument
194 #define test_and_set_bit(nr,p) ATOMIC_BITOP(test_and_set_bit,nr,p) argument
195 #define test_and_clear_bit(nr,p) ATOMIC_BITOP(test_and_clear_bit,nr,p) argument
196 #define test_and_change_bit(nr,p) ATOMIC_BITOP(test_and_change_bit,nr,p) argument
202 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument
203 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument
204 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument
205 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument
211 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument
212 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument
213 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument
214 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
249 static inline int find_first_zero_bit_le(const void *p, unsigned size) in find_first_zero_bit_le() argument
251 return _find_first_zero_bit_le(p, size); in find_first_zero_bit_le()
255 static inline int find_next_zero_bit_le(const void *p, int size, int offset) in find_next_zero_bit_le() argument
257 return _find_next_zero_bit_le(p, size, offset); in find_next_zero_bit_le()
261 static inline int find_next_bit_le(const void *p, int size, int offset) in find_next_bit_le() argument
263 return _find_next_bit_le(p, size, offset); in find_next_bit_le()