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

123

/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-mips.h52 android_atomic_acquire_load(volatile const int32_t *ptr) argument
54 int32_t value = *ptr;
60 android_atomic_release_load(volatile const int32_t *ptr) argument
63 return *ptr;
67 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
69 *ptr = value;
74 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
77 *ptr = value;
81 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
86 " ll %[prev], (%[ptr])\
100 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
110 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
120 android_atomic_swap(int32_t new_value, volatile int32_t *ptr) argument
137 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
166 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
183 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-arm.h50 int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
52 int32_t value = *ptr;
58 int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
61 return *ptr;
65 void android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
67 *ptr = value;
72 void android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
75 *ptr = value;
80 volatile int32_t *ptr)
91 : "=&r" (prev), "=&r" (status), "+m"(*ptr)
79 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
99 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
108 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
116 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
143 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
160 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-x86.h52 android_atomic_acquire_load(volatile const int32_t *ptr) argument
54 int32_t value = *ptr;
60 android_atomic_release_load(volatile const int32_t *ptr) argument
63 return *ptr;
67 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
69 *ptr = value;
74 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
77 *ptr = value;
81 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
86 : "q" (new_value), "m" (*ptr), "
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
110 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
132 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
143 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
/system/core/toolbox/
H A Dps.c42 char *ptr, *name, *state; local
78 ptr = statline;
79 nexttok(&ptr); // skip pid
80 ptr++; // skip "("
82 name = ptr;
83 ptr = strrchr(ptr, ')'); // Skip to *last* occurence of ')',
84 *ptr++ = '\0'; // and null-terminate name.
86 ptr++; // skip " "
87 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]), end - ptr);
77 memcpy(ptr, argv[i], len);
78 ptr += len;
79 *ptr++ = ' ';
81 *(ptr - 1) = '\0';
/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/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);
68 sf_count_t sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desired);
69 sf_count_t sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desired);
/system/core/libion/
H A Dion_test.c63 unsigned char *ptr; local
68 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
73 ptr[i] = (unsigned char)i;
76 if (ptr[i] != (unsigned char)i)
78 "memory\n", __func__, i, ptr[i]);
82 munmap(ptr, len);
89 munmap(ptr, len);
95 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
122 char *ptr; local
129 ptr
155 char* ptr; local
[all...]
H A Dion.c84 int flags, off_t offset, unsigned char **ptr, int *map_fd)
98 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
99 if (*ptr == MAP_FAILED) {
83 ion_map(int fd, struct ion_handle *handle, size_t length, int prot, int flags, off_t offset, unsigned char **ptr, int *map_fd) argument
/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
345 sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desiredFrames) argument
389 sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desiredFrames) argument
394 sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desiredFrames) argument
426 sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desiredFrames) argument
[all...]
/system/core/libcorkscrew/
H A Dptrace.c48 bool try_get_word(const memory_t* memory, uintptr_t ptr, uint32_t* out_value) { argument
49 ALOGV("try_get_word: reading word at %p", (void*) ptr);
50 if (ptr & 3) {
51 ALOGV("try_get_word: invalid pointer %p", (void*) ptr);
56 if (!is_readable_map(memory->map_info_list, ptr)) {
57 ALOGV("try_get_word: pointer %p not in a readable map", (void*) ptr);
61 *out_value = *(uint32_t*)ptr;
71 *out_value = ptrace(PTRACE_PEEKTEXT, memory->tid, (void*)ptr, NULL);
74 "ptrace() errno=%d", ptr, memory->tid, errno);
82 bool try_get_word_ptrace(pid_t tid, uintptr_t ptr, uint32_ argument
[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;
H A Dlogo.c35 unsigned short *ptr = _ptr; local
38 *ptr++ = val;
109 unsigned short *data, *bits, *ptr; local
134 ptr = data;
138 unsigned n = ptr[0];
141 android_memset16(bits, ptr[1], n << 1);
144 ptr += 2;
H A Dueventd_parser.c37 state.ptr = s;
/system/core/include/utils/
H A DUniquePtr.h61 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) {
84 void reset(T* ptr = NULL) {
85 if (ptr != mPtr) {
87 mPtr = ptr;
109 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) {
127 void reset(T* ptr = NULL) {
128 if (ptr != mPtr) {
130 mPtr = ptr;
[all...]
H A DLinearAllocator.h58 void rewindIfLastAlloc(void* ptr, size_t allocSize);
/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;
/system/core/fastboot/
H A Dusb_linux.c98 static int filter_usb_device(int fd, char *ptr, int len, int writable, argument
115 if(check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE))
117 dev = (void*) ptr;
119 ptr += dev->bLength;
121 if(check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE))
123 cfg = (void*) ptr;
125 ptr += cfg->bLength;
201 if(check(ptr, len, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE))
203 ifc = (void*) ptr;
205 ptr
[all...]
/system/core/libcorkscrew/arch-x86/
H A Dbacktrace-x86.c118 static bool try_get_byte(const memory_t* memory, uintptr_t ptr, uint8_t* out_value, uint32_t* cursor) { argument
122 ptr += *cursor;
124 if (ptr < lastptr || lastptr + 3 < ptr) {
125 lastptr = (ptr >> 2) << 2;
130 *out_value = (uint8_t)((buf >> ((ptr & 3) * 8)) & 0xff);
136 static bool try_get_xbytes(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint8_t bytes, uint32_t* cursor) { argument
144 if (!try_get_byte(memory, ptr, &buf, cursor)) {
154 static bool try_get_leb128(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint32_t* cursor, bool sign_extend) { argument
159 if (!try_get_byte(memory, ptr,
179 try_get_sleb128(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint32_t* cursor) argument
184 try_get_uleb128(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint32_t* cursor) argument
189 read_dwarf(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint8_t encoding, uint32_t* cursor) argument
319 execute_dwarf(const memory_t* memory, uintptr_t ptr, cie_info_t* cie_info, dwarf_state_t* dstate, uint32_t* cursor, dwarf_state_t* stack, uint8_t* stack_ptr) argument
[all...]
/system/vold/
H A DDevmapper.h34 static void *_align(void *ptr, unsigned int a);
/system/core/include/corkscrew/
H A Dptrace.h97 bool try_get_word(const memory_t* memory, uintptr_t ptr, uint32_t* out_value);
103 bool try_get_word_ptrace(pid_t tid, uintptr_t ptr, uint32_t* out_value);
/system/core/include/netutils/
H A Difc.h29 extern int ifc_get_hwaddr(const char *name, void *ptr);
49 extern int ifc_set_hwaddr(const char *name, const void *ptr);
/system/core/include/ion/
H A Dion.h37 int flags, off_t offset, unsigned char **ptr, int *map_fd);

Completed in 216 milliseconds

123