Lines Matching refs:nr
33 static __inline__ void set_bit(int nr, void * address) in set_bit() argument
39 addr += (nr >> SHIFT_PER_LONG); in set_bit()
40 mask = 1L << CHOP_SHIFTCOUNT(nr); in set_bit()
46 static __inline__ void __set_bit(int nr, void * address) in __set_bit() argument
51 addr += (nr >> SHIFT_PER_LONG); in __set_bit()
52 mask = 1L << CHOP_SHIFTCOUNT(nr); in __set_bit()
56 static __inline__ void clear_bit(int nr, void * address) in clear_bit() argument
62 addr += (nr >> SHIFT_PER_LONG); in clear_bit()
63 mask = 1L << CHOP_SHIFTCOUNT(nr); in clear_bit()
69 static __inline__ void change_bit(int nr, void * address) in change_bit() argument
75 addr += (nr >> SHIFT_PER_LONG); in change_bit()
76 mask = 1L << CHOP_SHIFTCOUNT(nr); in change_bit()
82 static __inline__ void __change_bit(int nr, void * address) in __change_bit() argument
87 addr += (nr >> SHIFT_PER_LONG); in __change_bit()
88 mask = 1L << CHOP_SHIFTCOUNT(nr); in __change_bit()
92 static __inline__ int test_and_set_bit(int nr, void * address) in test_and_set_bit() argument
99 addr += (nr >> SHIFT_PER_LONG); in test_and_set_bit()
100 mask = 1L << CHOP_SHIFTCOUNT(nr); in test_and_set_bit()
109 static __inline__ int __test_and_set_bit(int nr, void * address) in __test_and_set_bit() argument
115 addr += (nr >> SHIFT_PER_LONG); in __test_and_set_bit()
116 mask = 1L << CHOP_SHIFTCOUNT(nr); in __test_and_set_bit()
123 static __inline__ int test_and_clear_bit(int nr, void * address) in test_and_clear_bit() argument
130 addr += (nr >> SHIFT_PER_LONG); in test_and_clear_bit()
131 mask = 1L << CHOP_SHIFTCOUNT(nr); in test_and_clear_bit()
140 static __inline__ int __test_and_clear_bit(int nr, void * address) in __test_and_clear_bit() argument
146 addr += (nr >> SHIFT_PER_LONG); in __test_and_clear_bit()
147 mask = 1L << CHOP_SHIFTCOUNT(nr); in __test_and_clear_bit()
154 static __inline__ int test_and_change_bit(int nr, void * address) in test_and_change_bit() argument
161 addr += (nr >> SHIFT_PER_LONG); in test_and_change_bit()
162 mask = 1L << CHOP_SHIFTCOUNT(nr); in test_and_change_bit()
171 static __inline__ int __test_and_change_bit(int nr, void * address) in __test_and_change_bit() argument
177 addr += (nr >> SHIFT_PER_LONG); in __test_and_change_bit()
178 mask = 1L << CHOP_SHIFTCOUNT(nr); in __test_and_change_bit()
185 static __inline__ int test_bit(int nr, const void *address) in test_bit() argument
190 addr += (nr >> SHIFT_PER_LONG); in test_bit()
191 mask = 1L << CHOP_SHIFTCOUNT(nr); in test_bit()
280 #define ext2_set_bit(nr, addr) test_and_set_bit((nr) ^ 0x38, addr) argument
281 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr) ^ 0x38, addr) argument
283 #define ext2_set_bit(nr, addr) test_and_set_bit((nr) ^ 0x18, addr) argument
284 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr) ^ 0x18, addr) argument
289 static __inline__ int ext2_test_bit(int nr, __const__ void * addr) in ext2_test_bit() argument
293 return (ADDR[nr >> 3] >> (nr & 7)) & 1; in ext2_test_bit()
341 #define minix_test_and_set_bit(nr,addr) ext2_set_bit(nr,addr) argument
342 #define minix_set_bit(nr,addr) ((void)ext2_set_bit(nr,addr)) argument
343 #define minix_test_and_clear_bit(nr,addr) ext2_clear_bit(nr,addr) argument
344 #define minix_test_bit(nr,addr) ext2_test_bit(nr,addr) argument