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?
130 static inline void __clear_bit(int nr, volatile unsigned long *addr) in __clear_bit()
135 static inline void __set_bit(int nr, volatile unsigned long *addr) in __set_bit()
140 static inline void __change_bit(int nr, volatile unsigned long *addr) in __change_bit()
145 /* Apparently, at least some of these are allowed to be non-atomic */
146 static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr) in __test_and_clear_bit()
151 static inline int __test_and_set_bit(int nr, volatile unsigned long *addr) in __test_and_set_bit()
156 static inline int __test_and_change_bit(int nr, volatile unsigned long *addr) in __test_and_change_bit()
161 static inline int __test_bit(int nr, const volatile unsigned long *addr) in __test_bit()
165 asm volatile( in __test_bit()
178 * ffz - find first zero in word.
194 * fls - find last (most-significant) bit set
214 * ffs - find first bit set
235 * __ffs - find first bit in word.
255 * __fls - find last (most-significant) set bit in a long word
273 #include <asm-generic/bitops/lock.h>
274 #include <asm-generic/bitops/find.h>
276 #include <asm-generic/bitops/fls64.h>
277 #include <asm-generic/bitops/sched.h>
278 #include <asm-generic/bitops/hweight.h>
280 #include <asm-generic/bitops/le.h>
281 #include <asm-generic/bitops/ext2-atomic.h>