Lines Matching refs:mask
25 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in set_bit() local
26 __insn_fetchor((void *)(addr + nr / BITS_PER_LONG), mask); in set_bit()
31 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in clear_bit() local
32 __insn_fetchand((void *)(addr + nr / BITS_PER_LONG), ~mask); in clear_bit()
37 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in change_bit() local
43 oldval = cmpxchg(addr, guess, guess ^ mask); in change_bit()
58 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_set_bit() local
60 val = (__insn_fetchor((void *)(addr + nr / BITS_PER_LONG), mask) in test_and_set_bit()
61 & mask) != 0; in test_and_set_bit()
70 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_clear_bit() local
72 val = (__insn_fetchand((void *)(addr + nr / BITS_PER_LONG), ~mask) in test_and_clear_bit()
73 & mask) != 0; in test_and_clear_bit()
82 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_change_bit() local
88 oldval = cmpxchg(addr, guess, guess ^ mask); in test_and_change_bit()
90 return (oldval & mask) != 0; in test_and_change_bit()