Lines Matching defs:bit
154 __test_and_set_bit(unsigned int bit, volatile unsigned long *ptr)
157 volatile unsigned long *const p = &ptr[bit / units];
158 const unsigned long mask = (1UL << (bit % units));
168 __test_and_clear_bit(unsigned int bit, volatile unsigned long *ptr)
171 volatile unsigned long *const p = &ptr[bit / units];
172 const unsigned long mask = (1UL << (bit % units));
182 __test_and_change_bit(unsigned int bit, volatile unsigned long *ptr)
185 volatile unsigned long *const p = &ptr[bit / units];
186 const unsigned long mask = (1UL << (bit % units));
207 * works on unsigned long. This is a waste on 32-bit systems
246 /* Find the first set bit in this word, zero-based. */
290 set_bit(unsigned int bit, volatile unsigned long *ptr)
295 atomic_or_ulong(&ptr[bit / units], (1UL << (bit % units)));
299 clear_bit(unsigned int bit, volatile unsigned long *ptr)
304 atomic_and_ulong(&ptr[bit / units], ~(1UL << (bit % units)));
308 clear_bit_unlock(unsigned int bit, volatile unsigned long *ptr)
314 atomic_and_ulong(&ptr[bit / units], ~(1UL << (bit % units)));
318 change_bit(unsigned int bit, volatile unsigned long *ptr)
321 volatile unsigned long *const p = &ptr[bit / units];
322 const unsigned long mask = (1UL << (bit % units));
330 test_and_set_bit(unsigned int bit, volatile unsigned long *ptr)
333 volatile unsigned long *const p = &ptr[bit / units];
334 const unsigned long mask = (1UL << (bit % units));
345 test_and_clear_bit(unsigned int bit, volatile unsigned long *ptr)
348 volatile unsigned long *const p = &ptr[bit / units];
349 const unsigned long mask = (1UL << (bit % units));
360 test_and_change_bit(unsigned int bit, volatile unsigned long *ptr)
363 volatile unsigned long *const p = &ptr[bit / units];
364 const unsigned long mask = (1UL << (bit % units));