Lines Matching refs:nr
23 * @nr: the bit to set
29 * Note that @nr may be almost arbitrarily large; this function is not
32 static inline void sync_set_bit(long nr, volatile unsigned long *addr)
36 : "Ir" (nr)
42 * @nr: Bit to clear
50 static inline void sync_clear_bit(long nr, volatile unsigned long *addr)
54 : "Ir" (nr)
60 * @nr: Bit to change
64 * Note that @nr may be almost arbitrarily large; this function is not
67 static inline void sync_change_bit(long nr, volatile unsigned long *addr)
71 : "Ir" (nr)
77 * @nr: Bit to set
83 static inline bool sync_test_and_set_bit(long nr, volatile unsigned long *addr)
85 return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(bts), *addr, c, "Ir", nr);
90 * @nr: Bit to clear
96 static inline int sync_test_and_clear_bit(long nr, volatile unsigned long *addr)
98 return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(btr), *addr, c, "Ir", nr);
103 * @nr: Bit to change
109 static inline int sync_test_and_change_bit(long nr, volatile unsigned long *addr)
111 return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(btc), *addr, c, "Ir", nr);
114 #define sync_test_bit(nr, addr) test_bit(nr, addr)