Lines Matching +full:x +full:- +full:mask
10 #include <asm-generic/bitops/fls.h>
11 #include <asm-generic/bitops/__fls.h>
12 #include <asm-generic/bitops/fls64.h>
13 #include <asm-generic/bitops/__ffs.h>
39 int mask; in set_bit() local
43 mask = 1 << (nr & 0x1f); in set_bit()
45 *a |= mask; in set_bit()
52 int mask; in __set_bit() local
55 mask = 1 << (nr & 0x1f); in __set_bit()
56 *a |= mask; in __set_bit()
69 int mask; in clear_bit() local
73 mask = 1 << (nr & 0x1f); in clear_bit()
75 *a &= ~mask; in clear_bit()
84 int mask; in change_bit() local
89 mask = 1 << (nr & 31); in change_bit()
91 *ADDR ^= mask; in change_bit()
97 int mask; in __change_bit() local
101 mask = 1 << (nr & 31); in __change_bit()
102 *ADDR ^= mask; in __change_bit()
107 int mask, retval; in test_and_set_bit() local
112 mask = 1 << (nr & 0x1f); in test_and_set_bit()
114 retval = (mask & *a) != 0; in test_and_set_bit()
115 *a |= mask; in test_and_set_bit()
123 int mask, retval; in __test_and_set_bit() local
127 mask = 1 << (nr & 0x1f); in __test_and_set_bit()
128 retval = (mask & *a) != 0; in __test_and_set_bit()
129 *a |= mask; in __test_and_set_bit()
135 int mask, retval; in test_and_clear_bit() local
140 mask = 1 << (nr & 0x1f); in test_and_clear_bit()
142 retval = (mask & *a) != 0; in test_and_clear_bit()
143 *a &= ~mask; in test_and_clear_bit()
151 int mask, retval; in __test_and_clear_bit() local
155 mask = 1 << (nr & 0x1f); in __test_and_clear_bit()
156 retval = (mask & *a) != 0; in __test_and_clear_bit()
157 *a &= ~mask; in __test_and_clear_bit()
163 int mask, retval; in test_and_change_bit() local
168 mask = 1 << (nr & 0x1f); in test_and_change_bit()
170 retval = (mask & *a) != 0; in test_and_change_bit()
171 *a ^= mask; in test_and_change_bit()
179 int mask, retval; in __test_and_change_bit() local
183 mask = 1 << (nr & 0x1f); in __test_and_change_bit()
184 retval = (mask & *a) != 0; in __test_and_change_bit()
185 *a ^= mask; in __test_and_change_bit()
200 int mask; in __test_bit() local
203 mask = 1 << (nr & 0x1f); in __test_bit()
204 return ((mask & *a) != 0); in __test_bit()
223 size -= result; in find_next_zero_bit()
227 tmp |= ~0UL >> (32-offset); in find_next_zero_bit()
232 size -= 32; in find_next_zero_bit()
239 size -= 32; in find_next_zero_bit()
253 * of bits set) of a N-bit word
256 #define hweight32(x) generic_hweight32(x) argument
257 #define hweight16(x) generic_hweight16(x) argument
258 #define hweight8(x) generic_hweight8(x) argument
263 int mask, retval; in ext2_set_bit() local
268 mask = 1 << (nr & 0x07); in ext2_set_bit()
270 retval = (mask & *ADDR) != 0; in ext2_set_bit()
271 *ADDR |= mask; in ext2_set_bit()
278 int mask, retval; in ext2_clear_bit() local
283 mask = 1 << (nr & 0x07); in ext2_clear_bit()
285 retval = (mask & *ADDR) != 0; in ext2_clear_bit()
286 *ADDR &= ~mask; in ext2_clear_bit()
293 int mask; in ext2_test_bit() local
297 mask = 1 << (nr & 0x07); in ext2_test_bit()
298 return ((mask & *ADDR) != 0); in ext2_test_bit()
313 size -= result; in ext2_find_next_zero_bit()
321 * tmp |= ~0UL >> (32-offset); in ext2_find_next_zero_bit()
327 tmp |= __swab32(~0UL >> (32-offset)); in ext2_find_next_zero_bit()
332 size -= 32; in ext2_find_next_zero_bit()
339 size -= 32; in ext2_find_next_zero_bit()
363 * hweightN - returns the hamming weight of a N-bit word
364 * @x: the word to weigh
369 #define hweight32(x) generic_hweight32(x) argument
370 #define hweight16(x) generic_hweight16(x) argument
371 #define hweight8(x) generic_hweight8(x) argument