Lines Matching +full:bit +full:- +full:mask

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * bitops.h: Bit string operations on the Sparc.
22 unsigned long sp32___set_bit(unsigned long *addr, unsigned long mask);
23 unsigned long sp32___clear_bit(unsigned long *addr, unsigned long mask);
24 unsigned long sp32___change_bit(unsigned long *addr, unsigned long mask);
27 * Set bit 'nr' in 32-bit quantity at address 'addr' where bit '0'
28 * is in the highest of the four bytes and bit '31' is the high bit
29 * within the first byte. Sparc is BIG-Endian. Unless noted otherwise
30 * all bit-ops return 0 if bit was previously clear and != 0 otherwise.
34 unsigned long *ADDR, mask; in test_and_set_bit() local
37 mask = 1 << (nr & 31); in test_and_set_bit()
39 return sp32___set_bit(ADDR, mask) != 0; in test_and_set_bit()
44 unsigned long *ADDR, mask; in set_bit() local
47 mask = 1 << (nr & 31); in set_bit()
49 (void) sp32___set_bit(ADDR, mask); in set_bit()
54 unsigned long *ADDR, mask; in test_and_clear_bit() local
57 mask = 1 << (nr & 31); in test_and_clear_bit()
59 return sp32___clear_bit(ADDR, mask) != 0; in test_and_clear_bit()
64 unsigned long *ADDR, mask; in clear_bit() local
67 mask = 1 << (nr & 31); in clear_bit()
69 (void) sp32___clear_bit(ADDR, mask); in clear_bit()
74 unsigned long *ADDR, mask; in test_and_change_bit() local
77 mask = 1 << (nr & 31); in test_and_change_bit()
79 return sp32___change_bit(ADDR, mask) != 0; in test_and_change_bit()
84 unsigned long *ADDR, mask; in change_bit() local
87 mask = 1 << (nr & 31); in change_bit()
89 (void) sp32___change_bit(ADDR, mask); in change_bit()
92 #include <asm-generic/bitops/non-atomic.h>
94 #include <asm-generic/bitops/ffz.h>
95 #include <asm-generic/bitops/__ffs.h>
96 #include <asm-generic/bitops/sched.h>
97 #include <asm-generic/bitops/ffs.h>
98 #include <asm-generic/bitops/fls.h>
99 #include <asm-generic/bitops/__fls.h>
100 #include <asm-generic/bitops/fls64.h>
101 #include <asm-generic/bitops/hweight.h>
102 #include <asm-generic/bitops/lock.h>
103 #include <asm-generic/bitops/le.h>
104 #include <asm-generic/bitops/ext2-atomic.h>