• Home
  • Raw
  • Download

Lines Matching refs:p

33 static inline void ____atomic_set_bit(unsigned int bit, volatile unsigned long *p)  in ____atomic_set_bit()  argument
38 p += bit >> 5; in ____atomic_set_bit()
41 *p |= mask; in ____atomic_set_bit()
45 static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_clear_bit() argument
50 p += bit >> 5; in ____atomic_clear_bit()
53 *p &= ~mask; in ____atomic_clear_bit()
57 static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_change_bit() argument
62 p += bit >> 5; in ____atomic_change_bit()
65 *p ^= mask; in ____atomic_change_bit()
70 ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_set_bit() argument
76 p += bit >> 5; in ____atomic_test_and_set_bit()
79 res = *p; in ____atomic_test_and_set_bit()
80 *p = res | mask; in ____atomic_test_and_set_bit()
87 ____atomic_test_and_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_clear_bit() argument
93 p += bit >> 5; in ____atomic_test_and_clear_bit()
96 res = *p; in ____atomic_test_and_clear_bit()
97 *p = res & ~mask; in ____atomic_test_and_clear_bit()
104 ____atomic_test_and_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_change_bit() argument
110 p += bit >> 5; in ____atomic_test_and_change_bit()
113 res = *p; in ____atomic_test_and_change_bit()
114 *p = res ^ mask; in ____atomic_test_and_change_bit()
150 extern void _set_bit_le(int nr, volatile unsigned long * p);
151 extern void _clear_bit_le(int nr, volatile unsigned long * p);
152 extern void _change_bit_le(int nr, volatile unsigned long * p);
153 extern int _test_and_set_bit_le(int nr, volatile unsigned long * p);
154 extern int _test_and_clear_bit_le(int nr, volatile unsigned long * p);
155 extern int _test_and_change_bit_le(int nr, volatile unsigned long * p);
156 extern int _find_first_zero_bit_le(const void * p, unsigned size);
157 extern int _find_next_zero_bit_le(const void * p, int size, int offset);
158 extern int _find_first_bit_le(const unsigned long *p, unsigned size);
159 extern int _find_next_bit_le(const unsigned long *p, int size, int offset);
164 extern void _set_bit_be(int nr, volatile unsigned long * p);
165 extern void _clear_bit_be(int nr, volatile unsigned long * p);
166 extern void _change_bit_be(int nr, volatile unsigned long * p);
167 extern int _test_and_set_bit_be(int nr, volatile unsigned long * p);
168 extern int _test_and_clear_bit_be(int nr, volatile unsigned long * p);
169 extern int _test_and_change_bit_be(int nr, volatile unsigned long * p);
170 extern int _find_first_zero_bit_be(const void * p, unsigned size);
171 extern int _find_next_zero_bit_be(const void * p, int size, int offset);
172 extern int _find_first_bit_be(const unsigned long *p, unsigned size);
173 extern int _find_next_bit_be(const unsigned long *p, int size, int offset);
179 #define ATOMIC_BITOP_LE(name,nr,p) \ argument
181 ____atomic_##name(nr, p) : \
182 _##name##_le(nr,p))
184 #define ATOMIC_BITOP_BE(name,nr,p) \ argument
186 ____atomic_##name(nr, p) : \
187 _##name##_be(nr,p))
189 #define ATOMIC_BITOP_LE(name,nr,p) _##name##_le(nr,p) argument
190 #define ATOMIC_BITOP_BE(name,nr,p) _##name##_be(nr,p) argument
193 #define NONATOMIC_BITOP(name,nr,p) \ argument
194 (____nonatomic_##name(nr, p))
200 #define set_bit(nr,p) ATOMIC_BITOP_LE(set_bit,nr,p) argument
201 #define clear_bit(nr,p) ATOMIC_BITOP_LE(clear_bit,nr,p) argument
202 #define change_bit(nr,p) ATOMIC_BITOP_LE(change_bit,nr,p) argument
203 #define test_and_set_bit(nr,p) ATOMIC_BITOP_LE(test_and_set_bit,nr,p) argument
204 #define test_and_clear_bit(nr,p) ATOMIC_BITOP_LE(test_and_clear_bit,nr,p) argument
205 #define test_and_change_bit(nr,p) ATOMIC_BITOP_LE(test_and_change_bit,nr,p) argument
206 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument
207 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument
208 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument
209 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument
218 #define set_bit(nr,p) ATOMIC_BITOP_BE(set_bit,nr,p) argument
219 #define clear_bit(nr,p) ATOMIC_BITOP_BE(clear_bit,nr,p) argument
220 #define change_bit(nr,p) ATOMIC_BITOP_BE(change_bit,nr,p) argument
221 #define test_and_set_bit(nr,p) ATOMIC_BITOP_BE(test_and_set_bit,nr,p) argument
222 #define test_and_clear_bit(nr,p) ATOMIC_BITOP_BE(test_and_clear_bit,nr,p) argument
223 #define test_and_change_bit(nr,p) ATOMIC_BITOP_BE(test_and_change_bit,nr,p) argument
224 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument
225 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument
226 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument
227 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
294 #define ext2_set_bit(nr,p) \ argument
295 __test_and_set_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
296 #define ext2_set_bit_atomic(lock,nr,p) \ argument
297 test_and_set_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
298 #define ext2_clear_bit(nr,p) \ argument
299 __test_and_clear_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
300 #define ext2_clear_bit_atomic(lock,nr,p) \ argument
301 test_and_clear_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
302 #define ext2_test_bit(nr,p) \ argument
303 test_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
304 #define ext2_find_first_zero_bit(p,sz) \ argument
305 _find_first_zero_bit_le(p,sz)
306 #define ext2_find_next_zero_bit(p,sz,off) \ argument
307 _find_next_zero_bit_le(p,sz,off)
313 #define minix_set_bit(nr,p) \ argument
314 __set_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
315 #define minix_test_bit(nr,p) \ argument
316 test_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
317 #define minix_test_and_set_bit(nr,p) \ argument
318 __test_and_set_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
319 #define minix_test_and_clear_bit(nr,p) \ argument
320 __test_and_clear_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p))
321 #define minix_find_first_zero_bit(p,sz) \ argument
322 _find_first_zero_bit_le(p,sz)