• Home
  • Raw
  • Download

Lines Matching refs:nr

6 #define BITOP_MASK(nr)		(1UL << ((nr) % BITS_PER_LONG))  argument
7 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) argument
67 static inline void set_bit(int nr, volatile unsigned long *addr) in set_bit() argument
69 unsigned long mask = BITOP_MASK(nr); in set_bit()
70 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in set_bit()
88 static inline void clear_bit(int nr, volatile unsigned long *addr) in clear_bit() argument
90 unsigned long mask = BITOP_MASK(nr); in clear_bit()
91 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in clear_bit()
109 static inline void change_bit(int nr, volatile unsigned long *addr) in change_bit() argument
111 unsigned long mask = BITOP_MASK(nr); in change_bit()
112 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in change_bit()
129 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() argument
131 unsigned long mask = BITOP_MASK(nr); in test_and_set_bit()
132 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in test_and_set_bit()
153 static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) in test_and_clear_bit() argument
155 unsigned long mask = BITOP_MASK(nr); in test_and_clear_bit()
156 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in test_and_clear_bit()
176 static inline int test_and_change_bit(int nr, volatile unsigned long *addr) in test_and_change_bit() argument
178 unsigned long mask = BITOP_MASK(nr); in test_and_change_bit()
179 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in test_and_change_bit()