Lines Matching refs:nr
37 extern void set_bit(int nr, void *addr);
39 extern void clear_bit(int nr, void *addr);
41 extern void change_bit(int nr, void *addr);
43 static inline void __change_bit(int nr, void *addr) in __change_bit() argument
45 unsigned long mask = BIT_MASK(nr); in __change_bit()
46 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit()
51 static inline int __test_and_set_bit(int nr, void *addr) in __test_and_set_bit() argument
53 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit()
54 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit()
61 static inline int test_and_set_bit(int nr, void *addr) in test_and_set_bit() argument
67 out = __test_and_set_bit(nr, addr); in test_and_set_bit()
73 static inline int __test_and_clear_bit(int nr, void *addr) in __test_and_clear_bit() argument
75 unsigned long mask = BIT_MASK(nr); in __test_and_clear_bit()
76 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_clear_bit()
83 static inline int test_and_clear_bit(int nr, void *addr) in test_and_clear_bit() argument
89 out = __test_and_clear_bit(nr, addr); in test_and_clear_bit()
95 extern int test_and_change_bit(int nr, void *addr);
97 static inline int __test_and_change_bit(int nr, void *addr) in __test_and_change_bit() argument
99 unsigned long mask = BIT_MASK(nr); in __test_and_change_bit()
100 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_change_bit()
113 static inline int test_bit(int nr, const void *addr) in test_bit() argument
115 return ((unsigned char *) addr)[nr >> 3] & (1U << (nr & 7)); in test_bit()
161 #define minix_test_and_set_bit(nr, addr) test_and_set_bit(nr, addr) argument
162 #define minix_set_bit(nr, addr) set_bit(nr, addr) argument
163 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr) argument
164 #define minix_test_bit(nr, addr) test_bit(nr, addr) argument