• Home
  • Raw
  • Download

Lines Matching refs:addr

36 static __inline__ void set_bit(int nr, volatile unsigned long * addr)  in set_bit()  argument
41 addr += (nr >> SHIFT_PER_LONG); in set_bit()
42 _atomic_spin_lock_irqsave(addr, flags); in set_bit()
43 *addr |= mask; in set_bit()
44 _atomic_spin_unlock_irqrestore(addr, flags); in set_bit()
47 static __inline__ void clear_bit(int nr, volatile unsigned long * addr) in clear_bit() argument
52 addr += (nr >> SHIFT_PER_LONG); in clear_bit()
53 _atomic_spin_lock_irqsave(addr, flags); in clear_bit()
54 *addr &= mask; in clear_bit()
55 _atomic_spin_unlock_irqrestore(addr, flags); in clear_bit()
58 static __inline__ void change_bit(int nr, volatile unsigned long * addr) in change_bit() argument
63 addr += (nr >> SHIFT_PER_LONG); in change_bit()
64 _atomic_spin_lock_irqsave(addr, flags); in change_bit()
65 *addr ^= mask; in change_bit()
66 _atomic_spin_unlock_irqrestore(addr, flags); in change_bit()
69 static __inline__ int test_and_set_bit(int nr, volatile unsigned long * addr) in test_and_set_bit() argument
76 addr += (nr >> SHIFT_PER_LONG); in test_and_set_bit()
77 _atomic_spin_lock_irqsave(addr, flags); in test_and_set_bit()
78 old = *addr; in test_and_set_bit()
81 *addr = old | mask; in test_and_set_bit()
82 _atomic_spin_unlock_irqrestore(addr, flags); in test_and_set_bit()
87 static __inline__ int test_and_clear_bit(int nr, volatile unsigned long * addr) in test_and_clear_bit() argument
94 addr += (nr >> SHIFT_PER_LONG); in test_and_clear_bit()
95 _atomic_spin_lock_irqsave(addr, flags); in test_and_clear_bit()
96 old = *addr; in test_and_clear_bit()
99 *addr = old & ~mask; in test_and_clear_bit()
100 _atomic_spin_unlock_irqrestore(addr, flags); in test_and_clear_bit()
105 static __inline__ int test_and_change_bit(int nr, volatile unsigned long * addr) in test_and_change_bit() argument
111 addr += (nr >> SHIFT_PER_LONG); in test_and_change_bit()
112 _atomic_spin_lock_irqsave(addr, flags); in test_and_change_bit()
113 oldbit = *addr; in test_and_change_bit()
114 *addr = oldbit ^ mask; in test_and_change_bit()
115 _atomic_spin_unlock_irqrestore(addr, flags); in test_and_change_bit()