Lines Matching refs:offset
12 unsigned long offset = nr / BITS_IN_LONG; in test_bit() local
14 return (bitmap[offset] >> bit) & 1; in test_bit()
19 unsigned long offset = nr / BITS_IN_LONG; in set_bit() local
21 bitmap[offset] |= 1UL << bit; in set_bit()
26 unsigned long offset = nr / BITS_IN_LONG; in clear_bit() local
28 bitmap[offset] &= ~(1UL << bit); in clear_bit()
33 unsigned long offset = nr / BITS_IN_LONG; in test_and_set_bit() local
35 unsigned long old = bitmap[offset]; in test_and_set_bit()
37 bitmap[offset] = old | mask; in test_and_set_bit()
43 unsigned long offset = nr / BITS_IN_LONG; in test_and_clear_bit() local
45 unsigned long old = bitmap[offset]; in test_and_clear_bit()
47 bitmap[offset] = old & ~mask; in test_and_clear_bit()