Lines Matching +full:non +full:- +full:volatile
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
20 * (i.e. I get to shift by #5-2 (32 bits per long, 4 bytes per access),
27 * test_and_clear_bit - clear a bit and return its old value
31 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit()
51 * test_and_set_bit - set a bit and return its old value
55 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit()
77 * test_and_change_bit - toggle a bit and return its old value
81 static inline int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit()
106 static inline void clear_bit(int nr, volatile void *addr) in clear_bit()
111 static inline void set_bit(int nr, volatile void *addr) in set_bit()
116 static inline void change_bit(int nr, volatile void *addr) in change_bit()
123 * These are allowed to be non-atomic. In fact the generic flavors are
124 * in non-atomic.h. Would it be better to use intrinsics for this?
131 arch___clear_bit(unsigned long nr, volatile unsigned long *addr) in arch___clear_bit()
137 arch___set_bit(unsigned long nr, volatile unsigned long *addr) in arch___set_bit()
143 arch___change_bit(unsigned long nr, volatile unsigned long *addr) in arch___change_bit()
148 /* Apparently, at least some of these are allowed to be non-atomic */
150 arch___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) in arch___test_and_clear_bit()
156 arch___test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in arch___test_and_set_bit()
162 arch___test_and_change_bit(unsigned long nr, volatile unsigned long *addr) in arch___test_and_change_bit()
168 arch_test_bit(unsigned long nr, const volatile unsigned long *addr) in arch_test_bit()
172 asm volatile( in arch_test_bit()
183 arch_test_bit_acquire(unsigned long nr, const volatile unsigned long *addr) in arch_test_bit_acquire()
187 asm volatile( in arch_test_bit_acquire()
198 * ffz - find first zero in word.
214 * fls - find last (most-significant) bit set
234 * ffs - find first bit set
255 * __ffs - find first bit in word.
275 * __fls - find last (most-significant) set bit in a long word
293 #include <asm-generic/bitops/lock.h>
294 #include <asm-generic/bitops/non-instrumented-non-atomic.h>
296 #include <asm-generic/bitops/fls64.h>
297 #include <asm-generic/bitops/sched.h>
298 #include <asm-generic/bitops/hweight.h>
300 #include <asm-generic/bitops/le.h>
301 #include <asm-generic/bitops/ext2-atomic.h>