Go to the source code of this file.
|
#define | __BITOPS_ALIGN 3 |
|
#define | __BITOPS_WORDSIZE 32 |
|
#define | __BITOPS_OR "or" |
|
#define | __BITOPS_AND "nr" |
|
#define | __BITOPS_XOR "xr" |
|
#define | __BITOPS_LOOP(__old, __new, __addr, __val, __op_string) |
|
#define | __BITOPS_WORDS(bits) (((bits)+__BITOPS_WORDSIZE-1)/__BITOPS_WORDSIZE) |
|
#define | __BITOPS_BARRIER() asm volatile("" : : : "memory") |
|
#define | set_bit_simple(nr, addr) |
|
#define | clear_bit_simple(nr, addr) |
|
#define | change_bit_simple(nr, addr) |
|
#define | __test_and_set_bit(X, Y) test_and_set_bit_simple(X,Y) |
|
#define | __test_and_clear_bit(X, Y) test_and_clear_bit_simple(X,Y) |
|
#define | __test_and_change_bit(X, Y) test_and_change_bit_simple(X,Y) |
|
#define | set_bit set_bit_simple |
|
#define | clear_bit clear_bit_simple |
|
#define | change_bit change_bit_simple |
|
#define | test_and_set_bit test_and_set_bit_simple |
|
#define | test_and_clear_bit test_and_clear_bit_simple |
|
#define | test_and_change_bit test_and_change_bit_simple |
|
#define | test_bit(nr, addr) |
|
#define | find_first_zero_bit find_first_zero_bit |
|
#define | find_first_bit find_first_bit |
|
#define | find_next_zero_bit find_next_zero_bit |
|
#define | find_next_bit find_next_bit |
|
#define | find_first_zero_bit_le find_first_zero_bit_le |
|
#define | find_next_zero_bit_le find_next_zero_bit_le |
|
#define | find_first_bit_le find_first_bit_le |
|
#define | find_next_bit_le find_next_bit_le |
|
#define __BITOPS_AND "nr" |
#define __BITOPS_BARRIER |
( |
| ) |
asm volatile("" : : : "memory") |
#define __BITOPS_LOOP |
( |
|
__old, |
|
|
|
__new, |
|
|
|
__addr, |
|
|
|
__val, |
|
|
|
__op_string |
|
) |
| |
Value:asm volatile( \
" l %0,%2\n" \
"0: lr %1,%0\n" \
__op_string " %1,%3\n" \
" cs %0,%1,%2\n" \
" jl 0b" \
: "=&d" (__old), "=&d" (__new), \
"=Q" (*(
unsigned long *)
__addr) \
: "cc");
Definition at line 70 of file bitops.h.
#define __BITOPS_WORDSIZE 32 |
#define __BITOPS_XOR "xr" |
#define __test_and_change_bit |
( |
|
X, |
|
|
|
Y |
|
) |
| test_and_change_bit_simple(X,Y) |
#define __test_and_clear_bit |
( |
|
X, |
|
|
|
Y |
|
) |
| test_and_clear_bit_simple(X,Y) |
#define __test_and_set_bit |
( |
|
X, |
|
|
|
Y |
|
) |
| test_and_set_bit_simple(X,Y) |
#define change_bit_simple |
( |
|
nr, |
|
|
|
addr |
|
) |
| |
Value:(__builtin_constant_p((
nr)) ? \
__constant_change_bit((
nr),(
addr)) : \
Definition at line 291 of file bitops.h.
#define clear_bit_simple |
( |
|
nr, |
|
|
|
addr |
|
) |
| |
Value:(__builtin_constant_p((
nr)) ? \
__constant_clear_bit((
nr),(
addr)) : \
Definition at line 264 of file bitops.h.
#define find_first_bit find_first_bit |
#define find_first_bit_le find_first_bit_le |
#define find_first_zero_bit find_first_zero_bit |
#define find_first_zero_bit_le find_first_zero_bit_le |
#define find_next_bit find_next_bit |
#define find_next_bit_le find_next_bit_le |
#define find_next_zero_bit find_next_zero_bit |
#define find_next_zero_bit_le find_next_zero_bit_le |
#define set_bit_simple |
( |
|
nr, |
|
|
|
addr |
|
) |
| |
Value:(__builtin_constant_p((
nr)) ? \
__constant_set_bit((
nr),(
addr)) : \
Definition at line 236 of file bitops.h.
#define test_and_change_bit test_and_change_bit_simple |
#define test_and_clear_bit test_and_clear_bit_simple |
#define test_and_set_bit test_and_set_bit_simple |
Value:(__builtin_constant_p((
nr)) ? \
__constant_test_bit((
nr),(
addr)) : \
Definition at line 390 of file bitops.h.