Searched refs:ptr (Results 1 - 25 of 83) sorted by relevance

1234

/system/core/adb/
H A Dtransport.h24 int readx(int fd, void *ptr, size_t len);
25 int writex(int fd, const void *ptr, size_t len);
/system/core/include/cutils/
H A Datomic-x86.h44 android_atomic_acquire_load(volatile const int32_t *ptr) argument
46 int32_t value = *ptr;
52 android_atomic_release_load(volatile const int32_t *ptr) argument
55 return *ptr;
59 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
61 *ptr = value;
66 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
69 *ptr = value;
73 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
78 : "q" (new_value), "m" (*ptr), "
84 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
93 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
102 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
124 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
135 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-x86_64.h51 int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
53 int32_t value = *ptr;
59 int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
62 return *ptr;
66 void android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
68 *ptr = value;
73 void android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
76 *ptr = value;
81 volatile int32_t *ptr)
86 : "q" (new_value), "m" (*ptr), "
80 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
92 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
100 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
108 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
130 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
141 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-arm.h41 int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
43 int32_t value = *ptr;
49 int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
52 return *ptr;
56 void android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
58 *ptr = value;
63 void android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
66 *ptr = value;
71 volatile int32_t *ptr)
82 : "=&r" (prev), "=&r" (status), "+m"(*ptr)
70 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
90 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
99 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
107 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
134 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
151 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-mips.h44 android_atomic_acquire_load(volatile const int32_t *ptr) argument
46 int32_t value = *ptr;
52 android_atomic_release_load(volatile const int32_t *ptr) argument
55 return *ptr;
59 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
61 *ptr = value;
66 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
69 *ptr = value;
73 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
78 " ll %[prev], (%[ptr])\
92 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
102 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
112 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
141 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
158 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-mips64.h37 int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
39 int32_t value = *ptr;
45 int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
48 return *ptr;
52 void android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
54 *ptr = value;
59 void android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
62 *ptr = value;
66 int android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
71 " ll %[prev], (%[ptr])\
85 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
95 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
104 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
133 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
150 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-arm64.h56 int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
58 int32_t value = *ptr;
64 int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
67 return *ptr;
71 void android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
73 *ptr = value;
78 void android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
81 *ptr = value;
86 volatile int32_t *ptr)
88 return __sync_val_compare_and_swap(ptr, old_valu
85 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
92 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
101 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
109 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
133 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
145 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
/system/core/toolbox/
H A Dps.c46 char *ptr, *name, *state; local
82 ptr = statline;
83 nexttok(&ptr); // skip pid
84 ptr++; // skip "("
86 name = ptr;
87 ptr = strrchr(ptr, ')'); // Skip to *last* occurence of ')',
88 *ptr++ = '\0'; // and null-terminate name.
90 ptr++; // skip " "
91 state = nexttok(&ptr);
[all...]
H A Dinsmod.c73 char *ptr = opts; local
75 for (i = 2; (i < argc) && (ptr < end); i++) {
76 len = MIN(strlen(argv[i]), (size_t)(end - ptr));
77 memcpy(ptr, argv[i], len);
78 ptr += len;
79 *ptr++ = ' ';
81 *(ptr - 1) = '\0';
/system/core/libion/tests/
H A Dmap_test.cpp41 unsigned char *ptr = NULL; local
42 ASSERT_EQ(0, ion_map(m_ionFd, handle, size, PROT_READ | PROT_WRITE, MAP_SHARED, 0, &ptr, &map_fd));
43 ASSERT_TRUE(ptr != NULL);
50 memset(ptr, 0xaa, size);
52 ASSERT_EQ(0, munmap(ptr, size));
69 void *ptr; local
70 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
71 ASSERT_TRUE(ptr != NULL);
75 memset(ptr, 0xaa, size);
77 ASSERT_EQ(0, munmap(ptr, siz
91 unsigned char *ptr; local
125 void *ptr; local
151 void *ptr; local
[all...]
H A Ddevice_test.cpp42 void dirtyCache(void *ptr, size_t size);
62 .ptr = (uint64_t)buf,
76 .ptr = (uint64_t)buf,
90 .ptr = (uint64_t)buf,
104 .ptr = (uint64_t)buf,
125 void Device::dirtyCache(void *ptr, size_t size) argument
129 ((volatile char *)ptr)[i];
130 ((char *)ptr)[i] = i;
147 void *ptr; local
148 ptr
184 void *ptr; local
215 void *ptr; local
250 void *ptr; local
281 void *ptr; local
318 void *ptr; local
349 void *ptr; local
386 void *ptr; local
418 void *ptr; local
455 void *ptr; local
486 void *ptr; local
521 void *ptr; local
551 void *ptr; local
[all...]
H A Dexit_test.cpp101 void *ptr;
102 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
103 ASSERT_TRUE(ptr != NULL);
124 void *ptr;
125 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
126 ASSERT_TRUE(ptr != NULL);
128 ASSERT_EQ(0, munmap(ptr, size / 2));
148 void *ptr;
149 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
150 ASSERT_TRUE(ptr !
[all...]
H A Dallocate_test.cpp104 void *ptr = NULL; local
105 ptr = mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, map_fd, 0);
106 ASSERT_TRUE(ptr != NULL);
108 memset(ptr, 0xaa, 4096);
110 ASSERT_EQ(0, munmap(ptr, 4096));
124 void *ptr = NULL; local
125 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, map_fd, 0);
126 ASSERT_TRUE(ptr != NULL);
128 ASSERT_EQ(0, memcmp(ptr, zeroes, 4096));
130 ASSERT_EQ(0, munmap(ptr, 409
[all...]
H A Dformerly_valid_handle_test.cpp53 unsigned char *ptr; local
55 ASSERT_EQ(-EINVAL, ion_map(m_ionFd, m_handle, 4096, PROT_READ, 0, 0, &ptr, &map_fd));
/system/media/audio_utils/include/audio_utils/
H A Dsndfile.h64 sf_count_t sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desired);
65 sf_count_t sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desired);
66 sf_count_t sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desired);
69 sf_count_t sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desired);
70 sf_count_t sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desired);
/system/security/keystore-engine/
H A Dkeyhandle.cpp38 void keyhandle_free(void *, void *ptr, CRYPTO_EX_DATA*, int, long, void*) { argument
39 char* keyhandle = reinterpret_cast<char*>(ptr);
50 void** ptr = reinterpret_cast<void**>(ptrRef); local
51 char* keyhandle = reinterpret_cast<char*>(*ptr);
54 *ptr = keyhandle_copy;
/system/media/audio_utils/
H A Dtinysndfile.c36 static unsigned little2u(unsigned char *ptr) argument
38 return (ptr[1] << 8) + ptr[0];
41 static unsigned little4u(unsigned char *ptr) argument
43 return (ptr[3] << 24) + (ptr[2] << 16) + (ptr[1] << 8) + ptr[0];
53 static void my_swab(short *ptr, size_t numToSwap) argument
56 *ptr
234 write4u(unsigned char *ptr, unsigned u) argument
351 sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desiredFrames) argument
396 sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desiredFrames) argument
443 sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desiredFrames) argument
490 sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desiredFrames) argument
527 sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desiredFrames) argument
[all...]
/system/core/libion/
H A Dion_test.c78 unsigned char *ptr; local
83 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
88 ptr[i] = (unsigned char)i;
91 if (ptr[i] != (unsigned char)i)
93 "memory\n", __func__, i, ptr[i]);
97 munmap(ptr, len);
104 munmap(ptr, len);
110 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
137 char *ptr; local
144 ptr
170 char* ptr; local
[all...]
/system/core/libbacktrace/
H A DBacktraceImpl.cpp84 bool Backtrace::VerifyReadWordArgs(uintptr_t ptr, word_t* out_value) { argument
85 if (ptr & (sizeof(word_t)-1)) {
86 BACK_LOGW("invalid pointer %p", (void*)ptr);
145 bool BacktraceCurrent::ReadWord(uintptr_t ptr, word_t* out_value) { argument
146 if (!VerifyReadWordArgs(ptr, out_value)) {
150 const backtrace_map_t* map = FindMap(ptr);
152 *out_value = *reinterpret_cast<word_t*>(ptr);
155 BACK_LOGW("pointer %p not in a readable map", reinterpret_cast<void*>(ptr));
173 bool BacktracePtrace::ReadWord(uintptr_t ptr, word_t* out_value) { argument
174 if (!VerifyReadWordArgs(ptr, out_valu
[all...]
/system/core/init/
H A Dparser.h26 char *ptr; member in struct:parse_state
H A Dparser.c70 char *x = state->ptr;
82 state->ptr = x;
86 state->ptr = x;
96 state->ptr = x+1;
99 state->ptr = x;
108 state->ptr = x;
133 state->ptr = x;
/system/core/libion/kernel-headers/linux/
H A Dion_test.h25 __u64 ptr; member in struct:ion_test_rw_data
/system/core/libion/original-kernel-headers/linux/
H A Dion_test.h25 * @ptr: a pointer to an area at least as large as size
31 __u64 ptr; member in struct:ion_test_rw_data
/system/core/fastboot/
H A Dusb_linux.c114 char *ptr, int len, int writable,
128 if (check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE))
130 dev = (struct usb_device_descriptor *)ptr;
132 ptr += dev->bLength;
134 if (check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE))
136 cfg = (struct usb_config_descriptor *)ptr;
138 ptr += cfg->bLength;
182 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
186 ptr += hdr->bLength;
192 ifc = (struct usb_interface_descriptor *)ptr;
113 filter_usb_device(char* sysfs_name, char *ptr, int len, int writable, ifc_match_func callback, int *ept_in_id, int *ept_out_id, int *ifc_id) argument
[all...]
/system/core/libutils/
H A DLinearAllocator.cpp177 void* ptr = mNext; local
180 return ptr;
183 void LinearAllocator::rewindIfLastAlloc(void* ptr, size_t allocSize) { argument
186 if (ptr >= start(mCurrentPage) && ptr < end(mCurrentPage)
187 && ptr == ((char*)mNext - allocSize)) {
190 mNext = ptr;

Completed in 448 milliseconds

1234