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)
45 unsigned long mask = BIT_MASK(nr);
46 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
51 static inline int __test_and_set_bit(int nr, void *addr)
53 unsigned long mask = BIT_MASK(nr);
54 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
61 static inline int test_and_set_bit(int nr, void *addr)
67 out = __test_and_set_bit(nr, addr);
73 static inline int __test_and_clear_bit(int nr, void *addr)
75 unsigned long mask = BIT_MASK(nr);
76 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
83 static inline int test_and_clear_bit(int nr, void *addr)
89 out = __test_and_clear_bit(nr, addr);
95 extern int test_and_change_bit(int nr, void *addr);
97 static inline int __test_and_change_bit(int nr, void *addr)
99 unsigned long mask = BIT_MASK(nr);
100 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
113 static inline int test_bit(int nr, const void *addr)
115 return ((unsigned char *) addr)[nr >> 3] & (1U << (nr & 7));
161 #define minix_test_and_set_bit(nr, addr) test_and_set_bit(nr, addr)
162 #define minix_set_bit(nr, addr) set_bit(nr, addr)
163 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr)
164 #define minix_test_bit(nr, addr) test_bit(nr, addr)