Lines Matching refs:nr
31 * @nr: the bit to set
36 * Note that @nr may be almost arbitrarily large; this function is not
39 static __inline__ void set_bit(int nr, volatile void * addr)
44 :"Ir" (nr));
49 * @nr: the bit to set
56 static __inline__ void __set_bit(int nr, volatile void * addr)
61 :"Ir" (nr));
68 * @nr: Bit to clear
76 static __inline__ void clear_bit(int nr, volatile void * addr)
81 :"Ir" (nr));
88 * @nr: the bit to set
95 static __inline__ void __change_bit(int nr, volatile void * addr)
100 :"Ir" (nr));
105 * @nr: Bit to clear
109 * Note that @nr may be almost arbitrarily large; this function is not
112 static __inline__ void change_bit(int nr, volatile void * addr)
117 :"Ir" (nr));
122 * @nr: Bit to set
128 static __inline__ int test_and_set_bit(int nr, volatile void * addr)
135 :"Ir" (nr) : "memory");
141 * @nr: Bit to set
148 static __inline__ int __test_and_set_bit(int nr, volatile void * addr)
155 :"Ir" (nr));
161 * @nr: Bit to set
167 static __inline__ int test_and_clear_bit(int nr, volatile void * addr)
174 :"Ir" (nr) : "memory");
180 * @nr: Bit to set
187 static __inline__ int __test_and_clear_bit(int nr, volatile void * addr)
194 :"Ir" (nr));
199 static __inline__ int __test_and_change_bit(int nr, volatile void * addr)
206 :"Ir" (nr) : "memory");
212 * @nr: Bit to set
218 static __inline__ int test_and_change_bit(int nr, volatile void * addr)
225 :"Ir" (nr) : "memory");
232 * @nr: bit number to test
235 static int test_bit(int nr, const volatile void * addr);
238 static __inline__ int constant_test_bit(int nr, const volatile void * addr)
240 return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0;
243 static __inline__ int variable_test_bit(int nr, volatile void * addr)
250 :"m" (ADDR),"Ir" (nr));
254 #define test_bit(nr,addr) \
255 (__builtin_constant_p(nr) ? \
256 constant_test_bit((nr),(addr)) : \
257 variable_test_bit((nr),(addr)))
402 #define minix_test_and_set_bit(nr,addr) __test_and_set_bit(nr,addr)
403 #define minix_set_bit(nr,addr) __set_bit(nr,addr)
404 #define minix_test_and_clear_bit(nr,addr) __test_and_clear_bit(nr,addr)
405 #define minix_test_bit(nr,addr) test_bit(nr,addr)