Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 30) sorted by relevance

12

/bionic/libc/kernel/arch-x86/asm/
Dcmpxchg_32.h17 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) argument
24 #define set_64bit(ptr,value) (__builtin_constant_p(value) ? __set_64bit_constant(ptr, value) : … argument
25 …t_64bit(ptr,value) (__builtin_constant_p(value) ? __set_64bit(ptr, (unsigned int)(value), (unsi… argument
27ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg(… argument
28ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg_… argument
29 #define cmpxchg64(ptr,o,n) ((__typeof__(*(ptr)))__cmpxchg64((ptr),(unsigned long long)(o), (unsig… argument
30 #define cmpxchg64_local(ptr,o,n) ((__typeof__(*(ptr)))__cmpxchg64_local((ptr),(unsigned long long)… argument
Duaccess_32.h46 #define __get_user_x(size,ret,x,ptr) __asm__ __volatile__("call __get_user_" #size :"=a" (ret),… argument
48ptr) ({ int __ret_gu; unsigned long __val_gu; __chk_user_ptr(ptr); switch(sizeof (*(ptr))) … argument
50 #define __put_user_1(x, ptr) __asm__ __volatile__("call __put_user_1":"=a" (__ret_pu):"0" ((typeof(… argument
51 #define __put_user_2(x, ptr) __asm__ __volatile__("call __put_user_2":"=a" (__ret_pu):"0" ((typeof(… argument
52 #define __put_user_4(x, ptr) __asm__ __volatile__("call __put_user_4":"=a" (__ret_pu):"0" ((typeof(… argument
53 #define __put_user_8(x, ptr) __asm__ __volatile__("call __put_user_8":"=a" (__ret_pu):"A" ((typeof(… argument
54 #define __put_user_X(x, ptr) __asm__ __volatile__("call __put_user_X":"=a" (__ret_pu):"c" (ptr)) argument
56 …user(x,ptr) ({ int __ret_pu; __typeof__(*(ptr)) __pus_tmp = x; __ret_pu=0; if(unlikely(__… argument
58 #define __get_user(x,ptr) __get_user_nocheck((x),(ptr),sizeof(*(ptr))) argument
60 #define __put_user(x,ptr) __put_user_nocheck((__typeof__(*(ptr)))(x),(ptr),sizeof(*(ptr))) argument
[all …]
Dunaligned.h15 #define get_unaligned(ptr) (*(ptr)) argument
17 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) )) argument
/bionic/libc/kernel/arch-arm/asm/
Dlocks.h17ptr,fail) ({ __asm__ __volatile__( "@ down_op\n" "1: ldrex lr, [%0]\n" " sub lr, lr, %1\n"… argument
19ptr,fail) ({ unsigned int ret; __asm__ __volatile__( "@ down_op_ret\n" "1: ldrex lr, [%1]… argument
21ptr,wake) ({ smp_mb(); __asm__ __volatile__( "@ up_op\n" "1: ldrex lr, [%0]\n" " add lr,… argument
26ptr,fail) ({ __asm__ __volatile__( "@ down_op_write\n" "1: ldrex lr, [%0]\n" " sub lr, lr,… argument
28ptr,wake) ({ smp_mb(); __asm__ __volatile__( "@ up_op_write\n" "1: ldrex lr, [%0]\n" " a… argument
30 #define __down_op_read(ptr,fail) __down_op(ptr, fail) argument
32ptr,wake) ({ smp_mb(); __asm__ __volatile__( "@ up_op_read\n" "1: ldrex lr, [%0]\n" " ad… argument
36ptr,fail) ({ __asm__ __volatile__( "@ down_op\n" " mrs ip, cpsr\n" " orr lr, ip, #128\n" … argument
38ptr,fail) ({ unsigned int ret; __asm__ __volatile__( "@ down_op_ret\n" " mrs ip, cpsr\n" … argument
40ptr,wake) ({ smp_mb(); __asm__ __volatile__( "@ up_op\n" " mrs ip, cpsr\n" " orr lr, ip,… argument
[all …]
Dunaligned.h25 …__get_unaligned_le(ptr) ({ __typeof__(*(ptr)) __v; __u8 *__p = (__u8 *)(ptr); switch (size… argument
27 …__get_unaligned_be(ptr) ({ __typeof__(*(ptr)) __v; __u8 *__p = (__u8 *)(ptr); switch (size… argument
29ptr) ({ switch (sizeof(*(ptr))) { case 1: *(ptr) = (val); break; case 2: __put_unalign… argument
30ptr) ({ switch (sizeof(*(ptr))) { case 1: *(ptr) = (val); break; case 2: __put_unalign… argument
Duaccess.h42 #define __get_user(x,ptr) ({ long __gu_err = 0; __get_user_err((x),(ptr),__gu_err); __gu_err… argument
43 #define __get_user_error(x,ptr,err) ({ __get_user_err((x),(ptr),err); (void) 0; }) argument
44ptr,err) do { unsigned long __gu_addr = (unsigned long)(ptr); unsigned long __gu_val; __chk… argument
52 #define __put_user(x,ptr) ({ long __pu_err = 0; __put_user_err((x),(ptr),__pu_err); __pu_err… argument
53 #define __put_user_error(x,ptr,err) ({ __put_user_err((x),(ptr),err); (void) 0; }) argument
54 …(x,ptr,err) do { unsigned long __pu_addr = (unsigned long)(ptr); __typeof__(*(ptr)) __pu_val … argument
/bionic/libstdc++/src/
Dnew.cpp24 void operator delete(void* ptr) in operator delete() argument
26 if (ptr) { in operator delete()
27 free(ptr); in operator delete()
31 void operator delete[](void* ptr) in operator delete[]() argument
33 if (ptr) { in operator delete[]()
34 free(ptr); in operator delete[]()
48 void operator delete(void* ptr, const std::nothrow_t&) in operator delete() argument
50 if (ptr) { in operator delete()
51 free(ptr); in operator delete()
55 void operator delete[](void* ptr, const std::nothrow_t&) in operator delete[]() argument
[all …]
/bionic/libc/include/sys/
Datomics.h36 extern int __atomic_cmpxchg(int old, int _new, volatile int *ptr);
37 extern int __atomic_swap(int _new, volatile int *ptr);
38 extern int __atomic_dec(volatile int *ptr);
39 extern int __atomic_inc(volatile int *ptr);
Depoll.h49 void *ptr; member
/bionic/libc/arch-x86/bionic/
D__set_tls.c70 int __set_tls(void *ptr) in __set_tls() argument
74 _tls_desc.base_addr = (unsigned long)ptr; in __set_tls()
77 ((struct _thread_area_head *)ptr)->self = ptr; in __set_tls()
/bionic/libc/kernel/common/linux/
Dcompiler-gcc.h14 #define RELOC_HIDE(ptr, off) ({ unsigned long __ptr; __asm__ ("" : "=r"(__ptr) : "0"(ptr)); (… argument
Dpercpu.h27 #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); (ptr); }) argument
Dhighmem.h28 #define kmap_atomic_to_page(ptr) virt_to_page(ptr) argument
Drbtree.h40 #define rb_entry(ptr, type, member) container_of(ptr, type, member) argument
Dbinder.h81 void *ptr; member
98 } ptr; member
104 void *ptr; member
115 void *ptr; member
Dif_ppp.h60 __u8 __user *ptr; member
Dblkdev.h421 #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) argument
/bionic/libc/netbsd/nameser/
Dns_parse.c79 ns_skiprr(const u_char *ptr, const u_char *eom, ns_sect section, int count) { in ns_skiprr() argument
80 const u_char *optr = ptr; in ns_skiprr()
85 b = dn_skipname(ptr, eom); in ns_skiprr()
88 ptr += b/*Name*/ + NS_INT16SZ/*Type*/ + NS_INT16SZ/*Class*/; in ns_skiprr()
90 if (ptr + NS_INT32SZ + NS_INT16SZ > eom) in ns_skiprr()
92 ptr += NS_INT32SZ/*TTL*/; in ns_skiprr()
93 NS_GET16(rdlength, ptr); in ns_skiprr()
94 ptr += rdlength/*RData*/; in ns_skiprr()
97 if (ptr > eom) in ns_skiprr()
99 return (ptr - optr); in ns_skiprr()
/bionic/libc/netbsd/resolv/
Dres_comp.c132 dn_skipname(const u_char *ptr, const u_char *eom) { in dn_skipname() argument
133 const u_char *saveptr = ptr; in dn_skipname()
135 if (ns_name_skip(&ptr, eom) == -1) in dn_skipname()
137 return (ptr - saveptr); in dn_skipname()
/bionic/libc/private/
Dbionic_tls.h87 extern int __set_tls(void *ptr);
/bionic/libc/kernel/common/linux/netfilter_ipv4/
Dipt_hashlimit.h41 void *ptr; member
/bionic/libc/bionic/
Dmalloc_leak.c636 void* ptr; in chk_calloc() local
644 ptr = chk_malloc(size); in chk_calloc()
645 if (ptr != NULL) { in chk_calloc()
646 memset(ptr, 0, size); in chk_calloc()
648 return ptr; in chk_calloc()
800 void* ptr; in leak_calloc() local
808 ptr = leak_malloc(size); in leak_calloc()
809 if (ptr != NULL) { in leak_calloc()
810 memset(ptr, 0, size); in leak_calloc()
812 return ptr; in leak_calloc()
[all …]
/bionic/libc/netbsd/
Dgethnamaddr.c162 #define BOUNDS_CHECK(ptr, count) \ argument
164 if ((ptr) + (count) > eom) { \
836 char *tmpbuf, *ptr, **cp; in _gethtbyname2() local
844 ptr = tmpbuf = NULL; in _gethtbyname2()
871 ptr = tmpbuf; in _gethtbyname2()
873 while ((*ptr++ = *src++) != '\0'); in _gethtbyname2()
876 while ((*ptr++ = *src++) != '\0'); in _gethtbyname2()
878 *ptr++ = '\0'; in _gethtbyname2()
880 ptr = (char *)(void *)ALIGN(ptr); in _gethtbyname2()
883 (void)memcpy(ptr, p->h_addr_list[0], (size_t)p->h_length); in _gethtbyname2()
[all …]
/bionic/libc/kernel/common/mtd/
Dmtd-abi.h23 unsigned char __user *ptr; member
/bionic/libc/stdlib/
Dwchar.c357 wchar_t *wcstok(wchar_t *ws1, const wchar_t *ws2, wchar_t **ptr) in wcstok() argument
359 return (wchar_t*) strtok_r( (char*)ws1, (const char*)ws2, (char**)ptr ); in wcstok()

12