• Home
  • Raw
  • Download

Lines Matching refs:nr

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()
37 : "a" (p), "di" (nr & 7) 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()
47 : "di" (nr & 7)); 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()
77 : "a" (p), "di" (nr & 7) 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()
87 : "di" (nr & 7)); 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()
117 : "a" (p), "di" (nr & 7) 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()
127 : "di" (nr & 7)); 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()
157 static inline int bset_reg_test_and_set_bit(int nr, in bset_reg_test_and_set_bit() argument
160 char *p = (char *)vaddr + (nr ^ 31) / 8; in bset_reg_test_and_set_bit()
165 : "a" (p), "di" (nr & 7) in bset_reg_test_and_set_bit()
170 static inline int bset_mem_test_and_set_bit(int nr, in bset_mem_test_and_set_bit() argument
173 char *p = (char *)vaddr + (nr ^ 31) / 8; in bset_mem_test_and_set_bit()
178 : "di" (nr & 7)); in bset_mem_test_and_set_bit()
182 static inline int bfset_mem_test_and_set_bit(int nr, 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
207 static inline int bclr_reg_test_and_clear_bit(int nr, in bclr_reg_test_and_clear_bit() argument
210 char *p = (char *)vaddr + (nr ^ 31) / 8; in bclr_reg_test_and_clear_bit()
215 : "a" (p), "di" (nr & 7) in bclr_reg_test_and_clear_bit()
220 static inline int bclr_mem_test_and_clear_bit(int nr, in bclr_mem_test_and_clear_bit() argument
223 char *p = (char *)vaddr + (nr ^ 31) / 8; in bclr_mem_test_and_clear_bit()
228 : "di" (nr & 7)); in bclr_mem_test_and_clear_bit()
232 static inline int bfclr_mem_test_and_clear_bit(int nr, 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
257 static inline int bchg_reg_test_and_change_bit(int nr, in bchg_reg_test_and_change_bit() argument
260 char *p = (char *)vaddr + (nr ^ 31) / 8; in bchg_reg_test_and_change_bit()
265 : "a" (p), "di" (nr & 7) in bchg_reg_test_and_change_bit()
270 static inline int bchg_mem_test_and_change_bit(int nr, in bchg_mem_test_and_change_bit() argument
273 char *p = (char *)vaddr + (nr ^ 31) / 8; in bchg_mem_test_and_change_bit()
278 : "di" (nr & 7)); in bchg_mem_test_and_change_bit()
282 static inline int bfchg_mem_test_and_change_bit(int nr, 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