Lines Matching refs:addr

36 	unsigned long *addr = (unsigned long *) address;  in set_bit()  local
39 addr += (nr >> SHIFT_PER_LONG); in set_bit()
41 SPIN_LOCK_IRQSAVE(ATOMIC_HASH(addr), flags); in set_bit()
42 *addr |= mask; in set_bit()
43 SPIN_UNLOCK_IRQRESTORE(ATOMIC_HASH(addr), flags); in set_bit()
49 unsigned long *addr = (unsigned long *) address; in __set_bit() local
51 addr += (nr >> SHIFT_PER_LONG); in __set_bit()
53 *addr |= mask; in __set_bit()
59 unsigned long *addr = (unsigned long *) address; in clear_bit() local
62 addr += (nr >> SHIFT_PER_LONG); in clear_bit()
64 SPIN_LOCK_IRQSAVE(ATOMIC_HASH(addr), flags); in clear_bit()
65 *addr &= ~mask; in clear_bit()
66 SPIN_UNLOCK_IRQRESTORE(ATOMIC_HASH(addr), flags); in clear_bit()
72 unsigned long *addr = (unsigned long *) address; in change_bit() local
75 addr += (nr >> SHIFT_PER_LONG); in change_bit()
77 SPIN_LOCK_IRQSAVE(ATOMIC_HASH(addr), flags); in change_bit()
78 *addr ^= mask; in change_bit()
79 SPIN_UNLOCK_IRQRESTORE(ATOMIC_HASH(addr), flags); in change_bit()
85 unsigned long *addr = (unsigned long *) address; in __change_bit() local
87 addr += (nr >> SHIFT_PER_LONG); in __change_bit()
89 *addr ^= mask; in __change_bit()
95 unsigned long *addr = (unsigned long *) address; in test_and_set_bit() local
99 addr += (nr >> SHIFT_PER_LONG); in test_and_set_bit()
101 SPIN_LOCK_IRQSAVE(ATOMIC_HASH(addr), flags); in test_and_set_bit()
102 oldbit = (*addr & mask) ? 1 : 0; in test_and_set_bit()
103 *addr |= mask; in test_and_set_bit()
104 SPIN_UNLOCK_IRQRESTORE(ATOMIC_HASH(addr), flags); in test_and_set_bit()
112 unsigned long *addr = (unsigned long *) address; in __test_and_set_bit() local
115 addr += (nr >> SHIFT_PER_LONG); in __test_and_set_bit()
117 oldbit = (*addr & mask) ? 1 : 0; in __test_and_set_bit()
118 *addr |= mask; in __test_and_set_bit()
126 unsigned long *addr = (unsigned long *) address; in test_and_clear_bit() local
130 addr += (nr >> SHIFT_PER_LONG); in test_and_clear_bit()
132 SPIN_LOCK_IRQSAVE(ATOMIC_HASH(addr), flags); in test_and_clear_bit()
133 oldbit = (*addr & mask) ? 1 : 0; in test_and_clear_bit()
134 *addr &= ~mask; in test_and_clear_bit()
135 SPIN_UNLOCK_IRQRESTORE(ATOMIC_HASH(addr), flags); in test_and_clear_bit()
143 unsigned long *addr = (unsigned long *) address; in __test_and_clear_bit() local
146 addr += (nr >> SHIFT_PER_LONG); in __test_and_clear_bit()
148 oldbit = (*addr & mask) ? 1 : 0; in __test_and_clear_bit()
149 *addr &= ~mask; in __test_and_clear_bit()
157 unsigned long *addr = (unsigned long *) address; in test_and_change_bit() local
161 addr += (nr >> SHIFT_PER_LONG); in test_and_change_bit()
163 SPIN_LOCK_IRQSAVE(ATOMIC_HASH(addr), flags); in test_and_change_bit()
164 oldbit = (*addr & mask) ? 1 : 0; in test_and_change_bit()
165 *addr ^= mask; in test_and_change_bit()
166 SPIN_UNLOCK_IRQRESTORE(ATOMIC_HASH(addr), flags); in test_and_change_bit()
174 unsigned long *addr = (unsigned long *) address; in __test_and_change_bit() local
177 addr += (nr >> SHIFT_PER_LONG); in __test_and_change_bit()
179 oldbit = (*addr & mask) ? 1 : 0; in __test_and_change_bit()
180 *addr ^= mask; in __test_and_change_bit()
188 unsigned long *addr = (unsigned long *) address; in test_bit() local
190 addr += (nr >> SHIFT_PER_LONG); in test_bit()
193 return !!(*addr & mask); in test_bit()
234 #define find_first_zero_bit(addr, size) \ argument
235 find_next_zero_bit((addr), (size), 0)
237 static __inline__ unsigned long find_next_zero_bit(void * addr, unsigned long size, unsigned long o… in find_next_zero_bit() argument
239 unsigned long * p = ((unsigned long *) addr) + (offset >> SHIFT_PER_LONG); in find_next_zero_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
291 __const__ unsigned char *ADDR = (__const__ unsigned char *) addr; in ext2_test_bit()
301 #define ext2_find_first_zero_bit(addr, size) \ argument
302 ext2_find_next_zero_bit((addr), (size), 0)
304 extern __inline__ unsigned long ext2_find_next_zero_bit(void *addr, in ext2_find_next_zero_bit() argument
307 unsigned int *p = ((unsigned int *) addr) + (offset >> 5); in ext2_find_next_zero_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
345 #define minix_find_first_zero_bit(addr,size) ext2_find_first_zero_bit(addr,size) argument