/bionic/libc/bionic/ |
D | atomics_x86.c | 63 int __atomic_cmpxchg(int old, int new, volatile int* addr) { in __atomic_cmpxchg() argument 70 : "a" (old), in __atomic_cmpxchg() 78 int old; in __atomic_swap() local 82 : "=c" (old) in __atomic_swap() 86 return old; in __atomic_swap() 90 int old; in __atomic_dec() local 92 old = *addr; in __atomic_dec() 93 } while (atomic_cmpxchg(old, old-1, addr)); in __atomic_dec() 94 return old; in __atomic_dec()
|
D | semaphore.c | 166 unsigned int old, new; in __sem_dec() local 170 old = (*pvalue & SEMCOUNT_VALUE_MASK); in __sem_dec() 171 ret = SEMCOUNT_TO_VALUE(old); in __sem_dec() 175 new = SEMCOUNT_DECREMENT(old); in __sem_dec() 177 while (__atomic_cmpxchg((int)(old|shared), in __sem_dec() 190 unsigned int old, new; in __sem_trydec() local 194 old = (*pvalue & SEMCOUNT_VALUE_MASK); in __sem_trydec() 195 ret = SEMCOUNT_TO_VALUE(old); in __sem_trydec() 199 new = SEMCOUNT_DECREMENT(old); in __sem_trydec() 201 while (__atomic_cmpxchg((int)(old|shared), in __sem_trydec() [all …]
|
/bionic/libc/netbsd/isc/ |
D | ev_streams.c | 152 evStream *old = id.opaque; in evCancelRW() local 163 if (old->prev != NULL) in evCancelRW() 164 old->prev->next = old->next; in evCancelRW() 166 ctx->streams = old->next; in evCancelRW() 167 if (old->next != NULL) in evCancelRW() 168 old->next->prev = old->prev; in evCancelRW() 174 if (old->prevDone == NULL && old->nextDone == NULL) { in evCancelRW() 180 if (ctx->strDone == old) { in evCancelRW() 185 if (old->prevDone != NULL) in evCancelRW() 186 old->prevDone->nextDone = old->nextDone; in evCancelRW() [all …]
|
D | eventlib_p.h | 228 evWait *evFreeWait(evContext_p *ctx, evWait *old);
|
/bionic/libc/arch-x86/include/sys/ |
D | atomics.h | 37 __atomic_cmpxchg(int old, int _new, volatile int *ptr) in __atomic_cmpxchg() argument 39 return !__sync_bool_compare_and_swap (ptr, old, _new); in __atomic_cmpxchg()
|
/bionic/libc/arch-sh/bionic/ |
D | atomics_sh.c | 43 int __atomic_cmpxchg(int old, int _new, volatile int *ptr) 50 if (*ptr == old) { 60 extern int __atomic_cmpxchg(int old, int _new, volatile int *ptr);
|
/bionic/libc/kernel/arch-x86/asm/ |
D | local_32.h | 33 …old; c = local_read(l); for (;;) { if (unlikely(c == (u))) break; old = local_cmpxchg((l…
|
D | atomic_32.h | 27 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) argument
|
/bionic/libc/include/sys/ |
D | atomics.h | 36 extern int __atomic_cmpxchg(int old, int _new, volatile int *ptr);
|
/bionic/libc/kernel/common/linux/ |
D | cpumask.h | 56 #define cpu_remap(oldbit, old, new) __cpu_remap((oldbit), &(old), &(new), NR_CPUS) argument 57 #define cpus_remap(dst, src, old, new) __cpus_remap(&(dst), &(src), &(old), &(new), NR_CPUS) argument
|
D | nodemask.h | 57 #define node_remap(oldbit, old, new) __node_remap((oldbit), &(old), &(new), MAX_NUMNODES) argument 58 #define nodes_remap(dst, src, old, new) __nodes_remap(&(dst), &(src), &(old), &(new), MAX_NUMNODE… argument
|
D | uinput.h | 23 struct ff_effect old; member
|
/bionic/libc/tzcode/ |
D | private.h | 242 char * icatalloc P((char * old, const char * new));
|
/bionic/libc/kernel/ |
D | README.TXT | 205 - some headers contain invalid "legacy" definitions for the benefit of old
|