/bionic/libc/arch-mips/bionic/ |
H A D | __set_tls.c | 32 int __set_tls(void *ptr) argument 34 return __set_thread_area(ptr);
|
/bionic/libc/arch-arm/bionic/ |
H A D | atomics_arm.c | 61 __atomic_cmpxchg(int old, int _new, volatile int *ptr) argument 64 return __sync_val_compare_and_swap(ptr, old, _new) != old; 68 __atomic_swap(int _new, volatile int *ptr) argument 72 prev = *ptr; 73 } while (__sync_val_compare_and_swap(ptr, prev, _new) != prev); 78 __atomic_dec(volatile int *ptr) argument 80 return __sync_fetch_and_sub (ptr, 1); 84 __atomic_inc(volatile int *ptr) argument 86 return __sync_fetch_and_add (ptr, 1);
|
/bionic/libc/include/sys/ |
H A D | atomics.h | 50 __atomic_cmpxchg(int old_value, int new_value, volatile int* ptr) argument 53 return __sync_val_compare_and_swap(ptr, old_value, new_value) != old_value; 57 __atomic_swap(int new_value, volatile int *ptr) argument 61 old_value = *ptr; 62 } while (__sync_val_compare_and_swap(ptr, old_value, new_value) != old_value); 67 __atomic_dec(volatile int *ptr) argument 69 return __sync_fetch_and_sub (ptr, 1); 73 __atomic_inc(volatile int *ptr) argument 75 return __sync_fetch_and_add (ptr, 1);
|
H A D | epoll.h | 53 void *ptr; member in union:epoll_data
|
/bionic/libc/private/ |
H A D | bionic_atomic_gcc_builtin.h | 31 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 34 return __sync_val_compare_and_swap(ptr, old_value, new_value) != old_value; 38 __bionic_swap(int32_t new_value, volatile int32_t* ptr) argument 42 old_value = *ptr; 43 } while (__sync_val_compare_and_swap(ptr, old_value, new_value) != old_value); 48 __bionic_atomic_inc(volatile int32_t* ptr) argument 51 return __sync_fetch_and_add(ptr, 1); 55 __bionic_atomic_dec(volatile int32_t* ptr) argument 58 return __sync_fetch_and_add(ptr, -1);
|
H A D | bionic_atomic_mips.h | 42 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 46 " ll %[prev], 0(%[ptr]) \n" 48 " sc %[status], 0(%[ptr]) \n" 51 : [prev]"=&r"(prev), [status]"=&r"(status), "+m"(*ptr) 52 : [new_value]"r"(new_value), [old_value]"r"(old_value), [ptr]"r"(ptr) 60 __bionic_swap(int32_t new_value, volatile int32_t *ptr) argument 64 " ll %[prev], 0(%[ptr]) \n" 65 " sc %[status], 0(%[ptr]) \n" 67 : [prev]"=&r"(prev), [status]"=&r"(status), "+m"(*ptr) 75 __bionic_atomic_inc(volatile int32_t *ptr) argument 90 __bionic_atomic_dec(volatile int32_t *ptr) argument [all...] |
H A D | bionic_atomic_x86.h | 42 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 47 : "q" (new_value), "m" (*ptr), "0" (old_value) 55 __bionic_swap(int32_t new_value, volatile int32_t *ptr) argument 59 : "m" (*ptr), "0" (new_value) 66 __bionic_atomic_inc(volatile int32_t *ptr) argument 70 : "+r" (increment), "+m" (*ptr) 72 /* increment now holds the old value of *ptr */ 78 __bionic_atomic_dec(volatile int32_t *ptr) argument 82 : "+r" (increment), "+m" (*ptr) 84 /* increment now holds the old value of *ptr */ [all...] |
H A D | bionic_atomic_arm.h | 140 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 154 : "=&r" (prev), "=&r" (status), "+m"(*ptr) 155 : "r" (ptr), "Ir" (old_value), "r" (new_value) 166 __kernel_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 169 return (*(kernel_cmpxchg *)0xffff0fc0)(old_value, new_value, ptr); 173 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 175 return __kernel_cmpxchg(old_value, new_value, ptr); 187 __bionic_swap(int32_t new_value, volatile int32_t* ptr) argument 196 : "=&r" (prev), "=&r" (status), "+m" (*ptr) 197 : "r" (ptr), " 204 __bionic_swap(int32_t new_value, volatile int32_t* ptr) argument 221 __bionic_atomic_inc(volatile int32_t* ptr) argument 239 __bionic_atomic_inc(volatile int32_t* ptr) argument 255 __bionic_atomic_dec(volatile int32_t* ptr) argument 273 __bionic_atomic_dec(volatile int32_t* ptr) argument [all...] |
/bionic/libc/bionic/ |
H A D | dlmalloc.c | 36 static void __bionic_itox(char* hex, void* ptr) argument 38 intptr_t val = (intptr_t) ptr;
|
H A D | malloc_debug_leak.cpp | 331 void* ptr = leak_malloc(size); local 332 if (ptr != NULL) { 333 memset(ptr, 0, size); 335 return ptr; 379 intptr_t ptr = reinterpret_cast<intptr_t>(base); local 380 if ((ptr % alignment) == 0) { 385 ptr += ((-ptr) % alignment); 388 reinterpret_cast<void**>(ptr)[-1] = MEMALIGN_GUARD; 389 reinterpret_cast<void**>(ptr)[ [all...] |
H A D | malloc_debug_check.cpp | 368 extern "C" void chk_free(void *ptr) { argument 371 if (!ptr) /* ignore free(NULL) */ 374 hdr_t* hdr = meta(ptr); 407 extern "C" void *chk_realloc(void *ptr, size_t size) { argument 411 chk_free(ptr); 415 if (!ptr) { 419 hdr_t* hdr = meta(ptr);
|
H A D | malloc_debug_qemu.cpp | 88 void* ptr; member in struct:MallocDesc 95 * stored in in the ptr field of this structure. 140 void* ptr; member in struct:MallocDescQuery 175 void* ptr; member in struct:MallocFree 372 return static_cast<char*>(desc->ptr) + desc->prefix_size; 393 return static_cast<char*>(desc->ptr) + mallocdesc_alloc_size(desc); 448 * ptr - Pointer to the memory block that's being freed. 455 free_desc.ptr = ptr_to_free; 467 * ptr - Pointer to request allocation information for. 476 static inline int query_qemu_malloc_info(void* ptr, MallocDes argument [all...] |
H A D | stubs.cpp | 125 static void stubs_state_free(void* ptr) { argument 126 stubs_state_t* state = static_cast<stubs_state_t*>(ptr);
|
H A D | pthread_debug.c | 339 static void* debug_realloc(void *ptr, size_t size, size_t old_size) { argument 343 if (ptr) { 344 memcpy(addr, ptr, old_size); 345 munmap(ptr, old_size);
|
/bionic/libstdc++/src/ |
H A D | new.cpp | 24 void operator delete(void* ptr) argument 26 free(ptr); 29 void operator delete[](void* ptr) argument 31 free(ptr); 44 void operator delete(void* ptr, const std::nothrow_t&) argument 46 free(ptr); 49 void operator delete[](void* ptr, const std::nothrow_t&) argument 51 free(ptr);
|
/bionic/libc/arch-x86/bionic/ |
H A D | __set_tls.c | 72 int __set_tls(void *ptr) argument 77 _tls_desc.base_addr = (unsigned long)ptr; 79 /* We also need to write the location of the tls to ptr[0] */ 80 ((struct _thread_area_head *)ptr)->self = ptr;
|
/bionic/libc/kernel/common/linux/netfilter_ipv4/ |
H A D | ipt_hashlimit.h | 46 void *ptr; member in union:ipt_hashlimit_info::__anon417
|
/bionic/libc/netbsd/nameser/ |
H A D | ns_parse.c | 79 ns_skiprr(const u_char *ptr, const u_char *eom, ns_sect section, int count) { argument 80 const u_char *optr = ptr; 85 b = dn_skipname(ptr, eom); 88 ptr += b/*Name*/ + NS_INT16SZ/*Type*/ + NS_INT16SZ/*Class*/; 90 if (ptr + NS_INT32SZ + NS_INT16SZ > eom) 92 ptr += NS_INT32SZ/*TTL*/; 93 NS_GET16(rdlength, ptr); 94 ptr += rdlength/*RData*/; 97 if (ptr > eom) 99 return (ptr [all...] |
/bionic/libc/netbsd/resolv/ |
H A D | res_comp.c | 132 dn_skipname(const u_char *ptr, const u_char *eom) { argument 133 const u_char *saveptr = ptr; 135 if (ns_name_skip(&ptr, eom) == -1) 137 return (ptr - saveptr);
|
/bionic/libc/kernel/common/linux/ |
H A D | if_ppp.h | 71 __u8 __user *ptr; member in struct:ppp_option_data
|
H A D | binder.h | 85 void *ptr; member in union:binder_transaction_data::__anon238 101 } ptr; member in union:binder_transaction_data::__anon239 107 void *ptr; member in struct:binder_ptr_cookie 119 void *ptr; member in struct:binder_pri_ptr_cookie
|
/bionic/libc/kernel/common/mtd/ |
H A D | mtd-abi.h | 30 unsigned char __user *ptr; member in struct:mtd_oob_buf
|
/bionic/libc/upstream-netbsd/libc/regex/ |
H A D | regex2.h | 158 uch *ptr; /* -> uch [csetsize] */ member in struct:__anon687 165 #define CHadd(cs, c) ((cs)->ptr[(uch)(c)] |= (cs)->mask, (cs)->hash += (c)) 166 #define CHsub(cs, c) ((cs)->ptr[(uch)(c)] &= ~(cs)->mask, (cs)->hash -= (c)) 167 #define CHIN(cs, c) ((cs)->ptr[(uch)(c)] & (cs)->mask)
|
/bionic/libc/netbsd/ |
H A D | gethnamaddr.c | 163 #define BOUNDS_CHECK(ptr, count) \ 165 if ((ptr) + (count) > eom) { \ 837 char *tmpbuf, *ptr, **cp; local 845 ptr = tmpbuf = NULL; 872 ptr = tmpbuf; 874 while ((*ptr++ = *src++) != '\0'); 877 while ((*ptr++ = *src++) != '\0'); 879 *ptr++ = '\0'; 881 ptr = (char *)(void *)ALIGN(ptr); [all...] |
/bionic/linker/ |
H A D | linker.cpp | 714 ptr = soinfo_alloc(bname ? bname + 1 : name); 717 soinfo_free(ptr); 720 soinfo* result = ptr; 721 ptr = NULL; 724 soinfo* ptr; member in struct:soinfo_ptr 819 if (si.ptr == NULL) { 823 si.ptr->base = (Elf32_Addr) load_start; 824 si.ptr->size = load_size; 825 si.ptr->load_bias = load_bias; 826 si.ptr [all...] |