Home
last modified time | relevance | path

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

12

/development/ndk/platforms/android-9/arch-x86/include/asm/
Dcmpxchg_32.h22 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) argument
29 #define set_64bit(ptr,value) (__builtin_constant_p(value) ? __set_64bit_constant(ptr, value) : … argument
30 …t_64bit(ptr,value) (__builtin_constant_p(value) ? __set_64bit(ptr, (unsigned int)(value), (unsi… argument
31ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg(… argument
32ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg_… argument
34 #define cmpxchg64(ptr,o,n) ((__typeof__(*(ptr)))__cmpxchg64((ptr),(unsigned long long)(o), (unsig… argument
35 #define cmpxchg64_local(ptr,o,n) ((__typeof__(*(ptr)))__cmpxchg64_local((ptr),(unsigned long long)… argument
Duaccess_32.h47 #define __get_user_x(size,ret,x,ptr) __asm__ __volatile__("call __get_user_" #size :"=a" (ret),… argument
49ptr) ({ 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
54 #define __put_user_8(x, ptr) __asm__ __volatile__("call __put_user_8":"=a" (__ret_pu):"A" ((typeof(… argument
55 #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
57 #define __get_user(x,ptr) __get_user_nocheck((x),(ptr),sizeof(*(ptr))) argument
59 #define __put_user(x,ptr) __put_user_nocheck((__typeof__(*(ptr)))(x),(ptr),sizeof(*(ptr))) argument
[all …]
Dunaligned.h21 #define get_unaligned(ptr) (*(ptr)) argument
22 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) )) argument
/development/ndk/platforms/android-3/arch-arm/include/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
/development/ndk/platforms/android-9/arch-mips/include/asm/
Dcmpxchg.h25 …(ptr, old, new, barrier) ({ __typeof__(ptr) __ptr = (ptr); __typeof__(*(ptr)) __old = (old); … argument
26 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_llsc_mb()) argument
27 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, ) argument
29 #define cmpxchg64(ptr, o, n) ({ BUILD_BUG_ON(sizeof(*(ptr)) != 8); cmpxchg((ptr), (o), (n)); … argument
31 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
Duaccess.h49 #define put_user(x,ptr) __put_user_check((x), (ptr), sizeof(*(ptr))) argument
50 #define get_user(x,ptr) __get_user_check((x), (ptr), sizeof(*(ptr))) argument
51 #define __put_user(x,ptr) __put_user_nocheck((x), (ptr), sizeof(*(ptr))) argument
52 #define __get_user(x,ptr) __get_user_nocheck((x), (ptr), sizeof(*(ptr))) argument
56 #define __GET_USER_DW(val, ptr) __get_user_asm_ll32(val, ptr) argument
57ptr) do { switch (size) { case 1: __get_user_asm(val, "lb", ptr); break; case 2: __get_user… argument
59 #define __get_user_nocheck(x, ptr, size) ({ long __gu_err; __get_user_common((x), size, ptr)… argument
60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __… argument
64 #define __PUT_USER_DW(ptr) __put_user_asm_ll32(ptr) argument
65ptr, size) ({ __typeof__(*(ptr)) __pu_val; long __pu_err = 0; __pu_val = (x); switch (s… argument
[all …]
Dsystem.h37 #define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) argument
/development/ndk/platforms/android-3/include/sys/
Datomics.h50 __atomic_cmpxchg(int old, int _new, volatile int *ptr) in __atomic_cmpxchg() argument
53 return __sync_val_compare_and_swap(ptr, old, _new) != old; in __atomic_cmpxchg()
57 __atomic_swap(int _new, volatile int *ptr) in __atomic_swap() argument
61 prev = *ptr; in __atomic_swap()
62 } while (__sync_val_compare_and_swap(ptr, prev, _new) != prev); in __atomic_swap()
67 __atomic_dec(volatile int *ptr) in __atomic_dec() argument
69 return __sync_fetch_and_sub (ptr, 1); in __atomic_dec()
73 __atomic_inc(volatile int *ptr) in __atomic_inc() argument
75 return __sync_fetch_and_add (ptr, 1); in __atomic_inc()
/development/tutorials/MoarRam/jni/
Dbaz.c40 char **ptr; in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative() local
48 ptr = malloc(size); in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
49 *ptr = *gPtr; in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
50 *gPtr = (char *) ptr; in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
53 size, ptr); in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative()
63 char **ptr; in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative() local
76 ptr = (char **) *gPtr; in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
77 *gPtr = *ptr; in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
78 free(ptr); in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
81 size, ptr); in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative()
Dfoo.c35 char **ptr = malloc(32); in Java_com_android_benchmark_moarram_MainActivity_add32ByteBlocksNative() local
36 *ptr = gPtr; in Java_com_android_benchmark_moarram_MainActivity_add32ByteBlocksNative()
37 gPtr = (char *) ptr; in Java_com_android_benchmark_moarram_MainActivity_add32ByteBlocksNative()
53 char **ptr = (char **) gPtr; in Java_com_android_benchmark_moarram_MainActivity_free32ByteBlocksNative() local
54 gPtr = *ptr; in Java_com_android_benchmark_moarram_MainActivity_free32ByteBlocksNative()
55 free(ptr); in Java_com_android_benchmark_moarram_MainActivity_free32ByteBlocksNative()
58 num32ByteBlocks, ptr); in Java_com_android_benchmark_moarram_MainActivity_free32ByteBlocksNative()
Dbar.c35 char **ptr = malloc(2*1024*1024); in Java_com_android_benchmark_moarram_MainActivity_add2MByteBlocksNative() local
36 *ptr = gPtr2; in Java_com_android_benchmark_moarram_MainActivity_add2MByteBlocksNative()
37 gPtr2 = (char *) ptr; in Java_com_android_benchmark_moarram_MainActivity_add2MByteBlocksNative()
53 char **ptr = (char **) gPtr2; in Java_com_android_benchmark_moarram_MainActivity_free2MByteBlocksNative() local
54 gPtr2 = *ptr; in Java_com_android_benchmark_moarram_MainActivity_free2MByteBlocksNative()
55 free(ptr); in Java_com_android_benchmark_moarram_MainActivity_free2MByteBlocksNative()
58 num2MByteBlocks, ptr); in Java_com_android_benchmark_moarram_MainActivity_free2MByteBlocksNative()
Ddf.c32 char *ptr = (char *) malloc(4); in Java_com_android_benchmark_moarram_MainActivity_forceDoubleFreeNative() local
33 *ptr = 0; in Java_com_android_benchmark_moarram_MainActivity_forceDoubleFreeNative()
34 ALOGW("About to double free %p", ptr); in Java_com_android_benchmark_moarram_MainActivity_forceDoubleFreeNative()
35 free(ptr); in Java_com_android_benchmark_moarram_MainActivity_forceDoubleFreeNative()
36 free(ptr); in Java_com_android_benchmark_moarram_MainActivity_forceDoubleFreeNative()
/development/tools/yuv420sp2rgb/
Ddebug.h59 static inline void *REALLOC(void *ptr, unsigned int size) { in REALLOC() argument
60 void *m = realloc(ptr, size); in REALLOC()
61 FAILIF(NULL == m, "realloc(%p, %d) failed!\n", ptr, size); in REALLOC()
65 static inline void FREE(void *ptr) { in FREE() argument
66 free(ptr); in FREE()
69 static inline void FREEIF(void *ptr) { in FREEIF() argument
70 if (ptr) FREE(ptr); in FREEIF()
/development/perftests/panorama/feature_mos/src/mosaic/
DPyramid.cpp46 curr->ptr = y + border; in allocatePyramidPacked()
76 img->ptr = y + border; in allocateImage()
123 base = pyr->ptr[-h] - off; in BorderSpread()
136 base = pyr->ptr[top - pyr->border] - pyr->border; in BorderSpread()
141 base = pyr->ptr[pyr->height + pyr->border - bot] - pyr->border; in BorderSpread()
159 int t1 = in->ptr[j][i]; in BorderExpandOdd()
160 int t2 = in->ptr[j+1][i]; in BorderExpandOdd()
161 scr->ptr[j2][i] = (short) in BorderExpandOdd()
162 ((6 * t1 + (in->ptr[j-1][i] + t2) + 4) >> 3); in BorderExpandOdd()
163 scr->ptr[j2+1][i] = (short)((t1 + t2 + 1) >> 1); in BorderExpandOdd()
[all …]
DBlend.cpp246 memset(imgMos->Y.ptr[0], 255, (imgMos->Y.width * imgMos->Y.height)); in runBlend()
248 memset(imgMos->V.ptr[0], 128, (imgMos->V.width * imgMos->V.height) << 1); in runBlend()
280 imageMosaicYVU = imgMos->Y.ptr[0]; in runBlend()
330 ImageTypeShort yptr = m_pFrameYPyr->ptr[h]; in FillFramePyramid()
331 ImageTypeShort uptr = m_pFrameUPyr->ptr[h]; in FillFramePyramid()
332 ImageTypeShort vptr = m_pFrameVPyr->ptr[h]; in FillFramePyramid()
448 if (imgMos.Y.ptr[y][x] != imgMos.Y.ptr[y][x+1] && in DoMergeAndBlend()
449 imgMos.Y.ptr[y][x] != 255 && in DoMergeAndBlend()
450 imgMos.Y.ptr[y][x+1] != 255) in DoMergeAndBlend()
453 unsigned char idx1 = imgMos.Y.ptr[y][x]; in DoMergeAndBlend()
[all …]
/development/ndk/platforms/android-3/include/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
Dbinder.h81 void *ptr; member
98 } ptr; member
104 void *ptr; member
115 void *ptr; member
Drbtree.h40 #define rb_entry(ptr, type, member) container_of(ptr, type, member) argument
/development/ndk/platforms/android-21/include/linux/mmc/
Dioctl.h42 #define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr argument
/development/ndk/platforms/android-21/include/linux/
Dbinder.h99 binder_uintptr_t ptr; member
115 } ptr; member
121 binder_uintptr_t ptr; member
137 binder_uintptr_t ptr; member
Dbcache.h27 __u64 ptr[]; member
31ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_##name(struct bkey *k, unsigned …

12