Home | History | Annotate | Download | only in alsa

Lines Matching refs:atomic_t

18 typedef struct { volatile int counter; } atomic_t;
24 * @v: pointer of type atomic_t
27 * useful range of an atomic_t is only 24 bits.
33 * @v: pointer of type atomic_t
37 * useful range of an atomic_t is only 24 bits.
44 * @v: pointer of type atomic_t
47 * of an atomic_t is only 24 bits.
49 static __inline__ void atomic_add(int i, atomic_t *v)
60 * @v: pointer of type atomic_t
63 * useful range of an atomic_t is only 24 bits.
65 static __inline__ void atomic_sub(int i, atomic_t *v)
76 * @v: pointer of type atomic_t
81 * useful range of an atomic_t is only 24 bits.
83 static __inline__ int atomic_sub_and_test(int i, atomic_t *v)
96 * @v: pointer of type atomic_t
99 * useful range of an atomic_t is only 24 bits.
101 static __inline__ void atomic_inc(atomic_t *v)
111 * @v: pointer of type atomic_t
114 * useful range of an atomic_t is only 24 bits.
116 static __inline__ void atomic_dec(atomic_t *v)
126 * @v: pointer of type atomic_t
131 * useful range of an atomic_t is only 24 bits.
133 static __inline__ int atomic_dec_and_test(atomic_t *v)
146 * @v: pointer of type atomic_t
151 * useful range of an atomic_t is only 24 bits.
153 static __inline__ int atomic_inc_and_test(atomic_t *v)
166 * @v: pointer of type atomic_t
172 * useful range of an atomic_t is only 24 bits.
174 static __inline__ int atomic_add_negative(int i, atomic_t *v)
231 typedef struct { volatile int counter; } atomic_t;
233 #define ATOMIC_INIT(i) ((atomic_t) { (i) })
252 ia64_atomic_add (int i, atomic_t *v)
261 } while (ia64_cmpxchg("acq", v, old, old + i, sizeof(atomic_t)) != old);
266 ia64_atomic_sub (int i, atomic_t *v)
275 } while (ia64_cmpxchg("acq", v, old, new, sizeof(atomic_t)) != old);
316 atomic_add_negative (int i, atomic_t *v)
393 typedef struct { volatile int counter; } atomic_t;
395 #define ATOMIC_INIT(i) ( (atomic_t) { (i) } )
406 static __inline__ void atomic_add(int i, atomic_t * v)
421 static __inline__ void atomic_sub(int i, atomic_t * v)
439 static __inline__ long atomic_add_return(int i, atomic_t * v)
457 static __inline__ long atomic_sub_return(int i, atomic_t * v)
499 typedef struct { volatile int counter; } atomic_t;
511 static __inline__ void atomic_add(int a, atomic_t *v)
525 static __inline__ int atomic_add_return(int a, atomic_t *v)
542 static __inline__ void atomic_sub(int a, atomic_t *v)
556 static __inline__ int atomic_sub_return(int a, atomic_t *v)
573 static __inline__ void atomic_inc(atomic_t *v)
587 static __inline__ int atomic_inc_return(atomic_t *v)
604 static __inline__ void atomic_dec(atomic_t *v)
618 static __inline__ int atomic_dec_return(atomic_t *v)
642 static __inline__ int atomic_dec_if_positive(atomic_t *v)
687 typedef struct { volatile int counter; } atomic_t;
693 * @v: pointer of type atomic_t
696 * useful range of an atomic_t is only 24 bits.
702 * @v: pointer of type atomic_t
706 * useful range of an atomic_t is only 24 bits.
718 * @v: pointer of type atomic_t
721 * of an atomic_t is only 24 bits.
723 extern __inline__ void atomic_add(int i, atomic_t * v)
742 * @v: pointer of type atomic_t
745 * useful range of an atomic_t is only 24 bits.
747 extern __inline__ void atomic_sub(int i, atomic_t * v)
766 extern __inline__ int atomic_add_return(int i, atomic_t * v)
787 extern __inline__ int atomic_sub_return(int i, atomic_t * v)
814 * @v: pointer of type atomic_t
819 * useful range of an atomic_t is only 24 bits.
825 * @v: pointer of type atomic_t
830 * useful range of an atomic_t is only 24 bits.
836 * @v: pointer of type atomic_t
841 * useful range of an atomic_t is only 24 bits.
847 * @v: pointer of type atomic_t
850 * useful range of an atomic_t is only 24 bits.
856 * @v: pointer of type atomic_t
859 * useful range of an atomic_t is only 24 bits.
865 * @v: pointer of type atomic_t
871 * useful range of an atomic_t is only 24 bits.
927 typedef struct { volatile int counter; } atomic_t;
934 static __inline__ void atomic_add(int i, volatile atomic_t *v)
943 static __inline__ void atomic_sub(int i, volatile atomic_t *v)
952 static __inline__ void atomic_inc(volatile atomic_t *v)
961 static __inline__ void atomic_dec(volatile atomic_t *v)
970 static __inline__ int atomic_dec_and_test(volatile atomic_t *v)
983 static inline int atomic_add_negative(int i, volatile atomic_t *v)
1019 typedef struct { volatile int counter; } atomic_t;