Lines Matching refs:atomic_t
23 typedef struct { volatile int counter; } __attribute__ ((aligned (4))) atomic_t; typedef
40 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add()
46 static __inline__ int atomic_add_return (int i, atomic_t *v) in atomic_add_return()
53 static __inline__ int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative()
60 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
66 static __inline__ void atomic_inc(volatile atomic_t *v) in atomic_inc()
72 static __inline__ int atomic_inc_return(volatile atomic_t *v) in atomic_inc_return()
79 static __inline__ int atomic_inc_and_test(volatile atomic_t *v) in atomic_inc_and_test()
86 static __inline__ void atomic_dec(volatile atomic_t *v) in atomic_dec()
92 static __inline__ int atomic_dec_return(volatile atomic_t *v) in atomic_dec_return()
99 static __inline__ int atomic_dec_and_test(volatile atomic_t *v) in atomic_dec_and_test()
106 static __inline__ void atomic_clear_mask(unsigned long mask, atomic_t *v) in atomic_clear_mask()
112 static __inline__ void atomic_set_mask(unsigned long mask, atomic_t *v) in atomic_set_mask()
123 atomic_compare_and_swap(int expected_oldval,int new_val,atomic_t *v) in atomic_compare_and_swap()
143 atomic_compare_and_swap_spin(int expected_oldval,int new_val,atomic_t *v) in atomic_compare_and_swap_spin()