Lines Matching refs:vaddr
31 static inline void bset_reg_set_bit(int nr, volatile unsigned long *vaddr) in bset_reg_set_bit() argument
33 char *p = (char *)vaddr + (nr ^ 31) / 8; in bset_reg_set_bit()
41 static inline void bset_mem_set_bit(int nr, volatile unsigned long *vaddr) in bset_mem_set_bit() argument
43 char *p = (char *)vaddr + (nr ^ 31) / 8; in bset_mem_set_bit()
50 static inline void bfset_mem_set_bit(int nr, volatile unsigned long *vaddr) in bfset_mem_set_bit() argument
54 : "d" (nr ^ 31), "o" (*vaddr) in bfset_mem_set_bit()
59 #define set_bit(nr, vaddr) bset_reg_set_bit(nr, vaddr) argument
61 #define set_bit(nr, vaddr) bset_mem_set_bit(nr, vaddr) argument
63 #define set_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
64 bset_mem_set_bit(nr, vaddr) : \
65 bfset_mem_set_bit(nr, vaddr))
68 #define __set_bit(nr, vaddr) set_bit(nr, vaddr) argument
71 static inline void bclr_reg_clear_bit(int nr, volatile unsigned long *vaddr) in bclr_reg_clear_bit() argument
73 char *p = (char *)vaddr + (nr ^ 31) / 8; in bclr_reg_clear_bit()
81 static inline void bclr_mem_clear_bit(int nr, volatile unsigned long *vaddr) in bclr_mem_clear_bit() argument
83 char *p = (char *)vaddr + (nr ^ 31) / 8; in bclr_mem_clear_bit()
90 static inline void bfclr_mem_clear_bit(int nr, volatile unsigned long *vaddr) in bfclr_mem_clear_bit() argument
94 : "d" (nr ^ 31), "o" (*vaddr) in bfclr_mem_clear_bit()
99 #define clear_bit(nr, vaddr) bclr_reg_clear_bit(nr, vaddr) argument
101 #define clear_bit(nr, vaddr) bclr_mem_clear_bit(nr, vaddr) argument
103 #define clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
104 bclr_mem_clear_bit(nr, vaddr) : \
105 bfclr_mem_clear_bit(nr, vaddr))
108 #define __clear_bit(nr, vaddr) clear_bit(nr, vaddr) argument
111 static inline void bchg_reg_change_bit(int nr, volatile unsigned long *vaddr) in bchg_reg_change_bit() argument
113 char *p = (char *)vaddr + (nr ^ 31) / 8; in bchg_reg_change_bit()
121 static inline void bchg_mem_change_bit(int nr, volatile unsigned long *vaddr) in bchg_mem_change_bit() argument
123 char *p = (char *)vaddr + (nr ^ 31) / 8; in bchg_mem_change_bit()
130 static inline void bfchg_mem_change_bit(int nr, volatile unsigned long *vaddr) in bfchg_mem_change_bit() argument
134 : "d" (nr ^ 31), "o" (*vaddr) in bfchg_mem_change_bit()
139 #define change_bit(nr, vaddr) bchg_reg_change_bit(nr, vaddr) argument
141 #define change_bit(nr, vaddr) bchg_mem_change_bit(nr, vaddr) argument
143 #define change_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
144 bchg_mem_change_bit(nr, vaddr) : \
145 bfchg_mem_change_bit(nr, vaddr))
148 #define __change_bit(nr, vaddr) change_bit(nr, vaddr) argument
151 static inline int test_bit(int nr, const volatile unsigned long *vaddr) in test_bit() argument
153 return (vaddr[nr >> 5] & (1UL << (nr & 31))) != 0; in test_bit()
158 volatile unsigned long *vaddr) in bset_reg_test_and_set_bit() argument
160 char *p = (char *)vaddr + (nr ^ 31) / 8; in bset_reg_test_and_set_bit()
171 volatile unsigned long *vaddr) in bset_mem_test_and_set_bit() argument
173 char *p = (char *)vaddr + (nr ^ 31) / 8; in bset_mem_test_and_set_bit()
183 volatile unsigned long *vaddr) in bfset_mem_test_and_set_bit() argument
189 : "d" (nr ^ 31), "o" (*vaddr) in bfset_mem_test_and_set_bit()
195 #define test_and_set_bit(nr, vaddr) bset_reg_test_and_set_bit(nr, vaddr) argument
197 #define test_and_set_bit(nr, vaddr) bset_mem_test_and_set_bit(nr, vaddr) argument
199 #define test_and_set_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
200 bset_mem_test_and_set_bit(nr, vaddr) : \
201 bfset_mem_test_and_set_bit(nr, vaddr))
204 #define __test_and_set_bit(nr, vaddr) test_and_set_bit(nr, vaddr) argument
208 volatile unsigned long *vaddr) in bclr_reg_test_and_clear_bit() argument
210 char *p = (char *)vaddr + (nr ^ 31) / 8; in bclr_reg_test_and_clear_bit()
221 volatile unsigned long *vaddr) in bclr_mem_test_and_clear_bit() argument
223 char *p = (char *)vaddr + (nr ^ 31) / 8; in bclr_mem_test_and_clear_bit()
233 volatile unsigned long *vaddr) in bfclr_mem_test_and_clear_bit() argument
239 : "d" (nr ^ 31), "o" (*vaddr) in bfclr_mem_test_and_clear_bit()
245 #define test_and_clear_bit(nr, vaddr) bclr_reg_test_and_clear_bit(nr, vaddr) argument
247 #define test_and_clear_bit(nr, vaddr) bclr_mem_test_and_clear_bit(nr, vaddr) argument
249 #define test_and_clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
250 bclr_mem_test_and_clear_bit(nr, vaddr) : \
251 bfclr_mem_test_and_clear_bit(nr, vaddr))
254 #define __test_and_clear_bit(nr, vaddr) test_and_clear_bit(nr, vaddr) argument
258 volatile unsigned long *vaddr) in bchg_reg_test_and_change_bit() argument
260 char *p = (char *)vaddr + (nr ^ 31) / 8; in bchg_reg_test_and_change_bit()
271 volatile unsigned long *vaddr) in bchg_mem_test_and_change_bit() argument
273 char *p = (char *)vaddr + (nr ^ 31) / 8; in bchg_mem_test_and_change_bit()
283 volatile unsigned long *vaddr) in bfchg_mem_test_and_change_bit() argument
289 : "d" (nr ^ 31), "o" (*vaddr) in bfchg_mem_test_and_change_bit()
295 #define test_and_change_bit(nr, vaddr) bchg_reg_test_and_change_bit(nr, vaddr) argument
297 #define test_and_change_bit(nr, vaddr) bchg_mem_test_and_change_bit(nr, vaddr) argument
299 #define test_and_change_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
300 bchg_mem_test_and_change_bit(nr, vaddr) : \
301 bfchg_mem_test_and_change_bit(nr, vaddr))
304 #define __test_and_change_bit(nr, vaddr) test_and_change_bit(nr, vaddr) argument
317 static inline int find_first_zero_bit(const unsigned long *vaddr, in find_first_zero_bit() argument
320 const unsigned long *p = vaddr; in find_first_zero_bit()
338 res += ((long)p - (long)vaddr - 4) * 8; in find_first_zero_bit()
343 static inline int find_next_zero_bit(const unsigned long *vaddr, int size, in find_next_zero_bit() argument
346 const unsigned long *p = vaddr + (offset >> 5); in find_next_zero_bit()
373 static inline int find_first_bit(const unsigned long *vaddr, unsigned size) in find_first_bit() argument
375 const unsigned long *p = vaddr; in find_first_bit()
393 res += ((long)p - (long)vaddr - 4) * 8; in find_first_bit()
398 static inline int find_next_bit(const unsigned long *vaddr, int size, in find_next_bit() argument
401 const unsigned long *p = vaddr + (offset >> 5); in find_next_bit()