Home
last modified time | relevance | path

Searched refs:a_swap (Results 1 - 25 of 39) sorted by relevance

12

/third_party/musl/porting/liteos_a/kernel/src/internal/
H A Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/porting/liteos_m/user/src/internal/
H A Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/porting/liteos_m/kernel/src/internal/
H A Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/porting/uniproton/kernel/src/internal/
H A Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/src/internal/
H A Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/arch/microblaze/
H A Datomic_arch.h20 #define a_swap a_swap macro
21 static inline int a_swap(volatile int *x, int v) in a_swap() function
/third_party/musl/arch/i386/
H A Datomic_arch.h10 #define a_swap a_swap macro
11 static inline int a_swap(volatile int *p, int v) in a_swap() function
/third_party/musl/arch/x32/
H A Datomic_arch.h10 #define a_swap a_swap macro
11 static inline int a_swap(volatile int *p, int v) in a_swap() function
/third_party/musl/arch/x86_64/
H A Datomic_arch.h19 #define a_swap a_swap macro
20 static inline int a_swap(volatile int *p, int v) in a_swap() function
/third_party/musl/src/time/
H A Dtimer_create.c56 if (a_swap(barrier, CHILD_ARRIVE) == INIT_STATE) { in __child_sync()
62 a_swap(barrier, CHILD_DONE); in __child_sync()
68 if (a_swap(barrier, PARENT_ARRIVE) == CHILD_ARRIVE) { in __parent_sync()
74 if (a_swap(barrier, PARENT_WAIT) != CHILD_DONE) { in __parent_sync()
/third_party/musl/src/thread/
H A Dpthread_once.c7 if (a_swap(control, 0) == 3) in undo()
25 if (a_swap(control, 2) == 3) in __pthread_once_full()
H A Dpthread_mutex_unlock.c40 cont = a_swap(&m->_m_lock, new); in __pthread_mutex_unlock()
50 cont = a_swap(&m->_m_lock, new); in __pthread_mutex_unlock()
H A Dpthread_detach.c17 a_swap(&t->detach_state, DT_JOINABLE); in __pthread_detach()
/third_party/musl/porting/linux/user/src/thread/
H A Dpthread_once.c7 if (a_swap(control, 0) == 3) in undo()
25 if (a_swap(control, 2) == 3) in __pthread_once_full()
/third_party/musl/src/stdio/
H A Dgetc.h11 if (a_swap(&f->lock, 0) & MAYBE_WAITERS) in locking_getc()
H A Dputc.h11 if (a_swap(&f->lock, 0) & MAYBE_WAITERS) in locking_putc()
H A D__lockfile.c21 if (a_swap(&f->lock, 0) & MAYBE_WAITERS) in __unlockfile()
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_detach.c13 if (ret) a_swap(&t->detach_state, DT_JOINABLE); in __pthread_detach()
H A Dpthread_mutex_unlock.c34 cont = a_swap(&m->_m_lock, new); in __pthread_mutex_unlock()
/third_party/musl/porting/liteos_m/user/src/thread/
H A Dpthread_detach.c14 if (ret) a_swap(&t->detach_state, DT_JOINABLE); in __pthread_detach()
/third_party/musl/porting/linux/user/src/aio/
H A Daio.c171 if (a_swap(&at->running, 0) < 0) in cleanup()
173 if (a_swap(&cb->__err, at->err) != EINPROGRESS) in cleanup()
175 if (a_swap(&__aio_fut, 0)) in cleanup()
/third_party/musl/porting/liteos_a/user/src/aio/
H A Daio.c171 if (a_swap(&at->running, 0) < 0) in cleanup()
173 if (a_swap(&cb->__err, at->err) != EINPROGRESS) in cleanup()
175 if (a_swap(&__aio_fut, 0)) in cleanup()
/third_party/musl/src/aio/
H A Daio.c178 if (a_swap(&at->running, 0) < 0) in cleanup()
180 if (a_swap(&cb->__err, at->err) != EINPROGRESS) in cleanup()
182 if (a_swap(&__aio_fut, 0)) in cleanup()
/third_party/musl/src/malloc/
H A Dmemalign.c12 while (a_swap(lk, 1)) __wait(lk, lk + 1, 1, 1); in lock()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
H A Dmemalign.c11 while(a_swap(lk, 1)) __wait(lk, lk+1, 1, 1); in lock()

Completed in 8 milliseconds

12