Lines Matching refs:nr
23 static inline void set_bit(unsigned nr, volatile unsigned long *addr) in set_bit() argument
25 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in set_bit()
26 __insn_fetchor((void *)(addr + nr / BITS_PER_LONG), mask); in set_bit()
29 static inline void clear_bit(unsigned nr, volatile unsigned long *addr) in clear_bit() argument
31 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in clear_bit()
32 __insn_fetchand((void *)(addr + nr / BITS_PER_LONG), ~mask); in clear_bit()
39 static inline void change_bit(unsigned nr, volatile unsigned long *addr) in change_bit() argument
41 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in change_bit()
43 addr += nr / BITS_PER_LONG; in change_bit()
60 static inline int test_and_set_bit(unsigned nr, volatile unsigned long *addr) in test_and_set_bit() argument
63 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_set_bit()
65 val = (__insn_fetchor((void *)(addr + nr / BITS_PER_LONG), mask) in test_and_set_bit()
72 static inline int test_and_clear_bit(unsigned nr, volatile unsigned long *addr) in test_and_clear_bit() argument
75 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_clear_bit()
77 val = (__insn_fetchand((void *)(addr + nr / BITS_PER_LONG), ~mask) in test_and_clear_bit()
84 static inline int test_and_change_bit(unsigned nr, in test_and_change_bit() argument
87 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_change_bit()
89 addr += nr / BITS_PER_LONG; in test_and_change_bit()