Go to the source code of this file.
|
#define | oro_atomic_add(i, v) (void) oro_atomic_add_return(i, v) |
|
#define | oro_atomic_add_negative(i, v) (oro_atomic_add_return(i, v) < 0) |
|
#define | oro_atomic_dec(v) (void) oro_atomic_sub_return(1, v) |
|
#define | oro_atomic_dec_and_test(v) (oro_atomic_sub_return(1, v) == 0) |
|
#define | oro_atomic_dec_return(v) (oro_atomic_sub_return(1, v)) |
|
#define | oro_atomic_inc(v) (void) oro_atomic_add_return(1, v) |
|
#define | oro_atomic_inc_and_test(v) (oro_atomic_add_return(1, v) == 0) |
|
#define | oro_atomic_inc_not_zero(v) oro_atomic_add_unless((v), 1, 0) |
|
#define | oro_atomic_inc_return(v) (oro_atomic_add_return(1, v)) |
|
#define | ORO_ATOMIC_INIT(i) { (i) } |
|
#define | oro_atomic_read(v) ((v)->counter) |
|
#define | oro_atomic_set(v, i) (((v)->counter) = (i)) |
|
#define | oro_atomic_sub(i, v) (void) oro_atomic_sub_return(i, v) |
|
#define | oro_atomic_sub_and_test(i, v) (oro_atomic_sub_return(i, v) == 0) |
|
#define | oro_atomic_xchg(v, new) (xchg(&((v)->counter), new)) |
|
#define | oro_localirq_restore_hw(flags) oro_localirq_restore_hw_notrace(flags) |
|
#define | oro_localirq_restore_hw_notrace(x) |
|
#define | oro_localirq_save_hw(flags) oro_localirq_save_hw_notrace(flags) |
|
#define | oro_localirq_save_hw_notrace(x) |
|
#define | smp_mb__after_oro_atomic_dec() barrier() |
|
#define | smp_mb__after_oro_atomic_inc() barrier() |
|
#define | smp_mb__before_oro_atomic_dec() barrier() |
|
#define | smp_mb__before_oro_atomic_inc() barrier() |
|
#define ORO_ATOMIC_INIT |
( |
|
i | ) |
{ (i) } |
#define oro_atomic_read |
( |
|
v | ) |
((v)->counter) |
#define oro_atomic_set |
( |
|
v, |
|
|
|
i |
|
) |
| (((v)->counter) = (i)) |
#define oro_atomic_xchg |
( |
|
v, |
|
|
|
new |
|
) |
| (xchg(&((v)->counter), new)) |
#define oro_localirq_restore_hw_notrace |
( |
|
x | ) |
|
Value:__asm__ __volatile__( \
"msr cpsr_c, %0 @ oro_localirq_restore_hw\n" \
: \
: "r" (x) \
: "memory", "cc")
Definition at line 50 of file oro_arm/oro_arch.h.
#define oro_localirq_save_hw_notrace |
( |
|
x | ) |
|
Value:({ \
unsigned long temp; \
(void) (&temp == &x); \
__asm__ __volatile__( \
"mrs %0, cpsr @ oro_localirq_save_hw\n" \
" orr %1, %0, #128\n" \
" msr cpsr_c, %1" \
: "=r" (x), "=r" (temp) \
: \
: "memory", "cc"); \
})
Definition at line 36 of file oro_arm/oro_arch.h.
#define smp_mb__after_oro_atomic_dec |
( |
| ) |
barrier() |
#define smp_mb__after_oro_atomic_inc |
( |
| ) |
barrier() |
#define smp_mb__before_oro_atomic_dec |
( |
| ) |
barrier() |
#define smp_mb__before_oro_atomic_inc |
( |
| ) |
barrier() |
static int oro_atomic_add_return |
( |
int |
i, |
|
|
oro_atomic_t * |
v |
|
) |
| |
|
inlinestatic |
static int oro_atomic_add_unless |
( |
oro_atomic_t * |
v, |
|
|
int |
a, |
|
|
int |
u |
|
) |
| |
|
inlinestatic |
static void oro_atomic_clear_mask |
( |
unsigned long |
mask, |
|
|
unsigned long * |
addr |
|
) |
| |
|
inlinestatic |
static int oro_atomic_cmpxchg |
( |
oro_atomic_t * |
v, |
|
|
int |
old, |
|
|
int |
a |
|
) |
| |
|
inlinestatic |
static int oro_atomic_sub_return |
( |
int |
i, |
|
|
oro_atomic_t * |
v |
|
) |
| |
|
inlinestatic |