Lines Matching full:nr

20  * @nr: the bit to set
28 generic___set_bit(unsigned long nr, volatile unsigned long *addr) in generic___set_bit() argument
30 unsigned long mask = BIT_MASK(nr); in generic___set_bit()
31 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___set_bit()
37 generic___clear_bit(unsigned long nr, volatile unsigned long *addr) in generic___clear_bit() argument
39 unsigned long mask = BIT_MASK(nr); in generic___clear_bit()
40 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___clear_bit()
47 * @nr: the bit to change
55 generic___change_bit(unsigned long nr, volatile unsigned long *addr) in generic___change_bit() argument
57 unsigned long mask = BIT_MASK(nr); in generic___change_bit()
58 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___change_bit()
65 * @nr: Bit to set
73 generic___test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in generic___test_and_set_bit() argument
75 unsigned long mask = BIT_MASK(nr); in generic___test_and_set_bit()
76 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_set_bit()
85 * @nr: Bit to clear
93 generic___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) in generic___test_and_clear_bit() argument
95 unsigned long mask = BIT_MASK(nr); in generic___test_and_clear_bit()
96 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_clear_bit()
105 generic___test_and_change_bit(unsigned long nr, volatile unsigned long *addr) in generic___test_and_change_bit() argument
107 unsigned long mask = BIT_MASK(nr); in generic___test_and_change_bit()
108 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_change_bit()
117 * @nr: bit number to test
121 generic_test_bit(unsigned long nr, const volatile unsigned long *addr) in generic_test_bit() argument
128 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in generic_test_bit()
133 * @nr: bit number to test
137 generic_test_bit_acquire(unsigned long nr, const volatile unsigned long *addr) in generic_test_bit_acquire() argument
139 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic_test_bit_acquire()
140 return 1UL & (smp_load_acquire(p) >> (nr & (BITS_PER_LONG-1))); in generic_test_bit_acquire()
157 * @nr: bit number to test
166 const_test_bit(unsigned long nr, const volatile unsigned long *addr) in const_test_bit() argument
168 const unsigned long *p = (const unsigned long *)addr + BIT_WORD(nr); in const_test_bit()
169 unsigned long mask = BIT_MASK(nr); in const_test_bit()