Lines Matching refs:nr
26 extern void set_bit(int nr, volatile void * addr);
28 static inline void __set_bit(int nr, volatile void *addr) in __set_bit() argument
30 ((unsigned char *) addr)[nr >> 3] |= (1U << (nr & 7)); in __set_bit()
33 extern void clear_bit(int nr, volatile void * addr);
35 static inline void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument
37 ((unsigned char *) addr)[nr >> 3] &= ~(1U << (nr & 7)); in __clear_bit()
40 extern void change_bit(int nr, volatile void * addr);
42 static inline void __change_bit(int nr, volatile void *addr) in __change_bit() argument
44 ((unsigned char *) addr)[nr >> 3] ^= (1U << (nr & 7)); in __change_bit()
47 extern int test_and_set_bit(int nr, volatile void * addr);
49 static inline int __test_and_set_bit(int nr, volatile void *addr) in __test_and_set_bit() argument
51 unsigned int mask = 1 << (nr & 7); in __test_and_set_bit()
54 oldval = ((unsigned char *) addr)[nr >> 3]; in __test_and_set_bit()
55 ((unsigned char *) addr)[nr >> 3] = oldval | mask; in __test_and_set_bit()
59 extern int test_and_clear_bit(int nr, volatile void * addr);
61 static inline int __test_and_clear_bit(int nr, volatile void *addr) in __test_and_clear_bit() argument
63 unsigned int mask = 1 << (nr & 7); in __test_and_clear_bit()
66 oldval = ((unsigned char *) addr)[nr >> 3]; in __test_and_clear_bit()
67 ((unsigned char *) addr)[nr >> 3] = oldval & ~mask; in __test_and_clear_bit()
71 extern int test_and_change_bit(int nr, volatile void * addr);
73 static inline int __test_and_change_bit(int nr, volatile void *addr) in __test_and_change_bit() argument
75 unsigned int mask = 1 << (nr & 7); in __test_and_change_bit()
78 oldval = ((unsigned char *) addr)[nr >> 3]; in __test_and_change_bit()
79 ((unsigned char *) addr)[nr >> 3] = oldval ^ mask; in __test_and_change_bit()
89 static inline int test_bit(int nr, const void * addr) in test_bit() argument
91 return (((unsigned char *) addr)[nr >> 3] >> (nr & 7)) & 1; in test_bit()
136 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
137 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
138 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
139 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument