Lines Matching refs:addr

21 static __inline__ void set_bit(int nr, volatile unsigned long * addr)  in set_bit()  argument
26 addr += BIT_WORD(nr); in set_bit()
27 _atomic_spin_lock_irqsave(addr, flags); in set_bit()
28 *addr |= mask; in set_bit()
29 _atomic_spin_unlock_irqrestore(addr, flags); in set_bit()
32 static __inline__ void clear_bit(int nr, volatile unsigned long * addr) in clear_bit() argument
37 addr += BIT_WORD(nr); in clear_bit()
38 _atomic_spin_lock_irqsave(addr, flags); in clear_bit()
39 *addr &= ~mask; in clear_bit()
40 _atomic_spin_unlock_irqrestore(addr, flags); in clear_bit()
43 static __inline__ void change_bit(int nr, volatile unsigned long * addr) in change_bit() argument
48 addr += BIT_WORD(nr); in change_bit()
49 _atomic_spin_lock_irqsave(addr, flags); in change_bit()
50 *addr ^= mask; in change_bit()
51 _atomic_spin_unlock_irqrestore(addr, flags); in change_bit()
54 static __inline__ int test_and_set_bit(int nr, volatile unsigned long * addr) in test_and_set_bit() argument
61 addr += BIT_WORD(nr); in test_and_set_bit()
62 _atomic_spin_lock_irqsave(addr, flags); in test_and_set_bit()
63 old = *addr; in test_and_set_bit()
66 *addr = old | mask; in test_and_set_bit()
67 _atomic_spin_unlock_irqrestore(addr, flags); in test_and_set_bit()
72 static __inline__ int test_and_clear_bit(int nr, volatile unsigned long * addr) in test_and_clear_bit() argument
79 addr += BIT_WORD(nr); in test_and_clear_bit()
80 _atomic_spin_lock_irqsave(addr, flags); in test_and_clear_bit()
81 old = *addr; in test_and_clear_bit()
84 *addr = old & ~mask; in test_and_clear_bit()
85 _atomic_spin_unlock_irqrestore(addr, flags); in test_and_clear_bit()
90 static __inline__ int test_and_change_bit(int nr, volatile unsigned long * addr) in test_and_change_bit() argument
96 addr += BIT_WORD(nr); in test_and_change_bit()
97 _atomic_spin_lock_irqsave(addr, flags); in test_and_change_bit()
98 oldbit = *addr; in test_and_change_bit()
99 *addr = oldbit ^ mask; in test_and_change_bit()
100 _atomic_spin_unlock_irqrestore(addr, flags); in test_and_change_bit()