Searched refs:ptr (Results 1 - 25 of 57) 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-x86.h47 extern inline int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
49 int32_t value = *ptr;
54 extern inline int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
57 return *ptr;
61 volatile int32_t *ptr)
63 *ptr = value;
68 volatile int32_t *ptr)
71 *ptr = value;
75 volatile int32_t *ptr)
80 : "q" (new_value), "m" (*ptr), "
60 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
67 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
74 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
85 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
101 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
121 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
132 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-arm.h67 extern inline int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
69 int32_t value = *ptr;
74 extern inline int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
77 return *ptr;
81 volatile int32_t *ptr)
83 *ptr = value;
88 volatile int32_t *ptr)
91 *ptr = value;
96 volatile int32_t *ptr);
99 volatile int32_t *ptr)
80 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
87 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
98 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
114 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
130 android_atomic_acquire_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
139 android_atomic_release_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
152 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
169 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
195 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
211 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
226 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
242 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-mips.h47 extern inline int32_t android_atomic_acquire_load(volatile const int32_t *ptr) argument
49 int32_t value = *ptr;
54 extern inline int32_t android_atomic_release_load(volatile const int32_t *ptr) argument
57 return *ptr;
61 volatile int32_t *ptr)
63 *ptr = value;
68 volatile int32_t *ptr)
71 *ptr = value;
75 volatile int32_t *ptr)
80 " ll %[prev], (%[ptr])\
60 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
67 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
74 android_atomic_cas(int32_t old_value, int32_t new_value, volatile int32_t *ptr) argument
93 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
111 android_atomic_swap(int32_t new_value, volatile int32_t *ptr) argument
128 android_atomic_add(int32_t increment, volatile int32_t *ptr) argument
155 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
171 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/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/bluetooth/bluez-clean-headers/bluetooth/
H A Dbluetooth.h104 #define bt_get_unaligned(ptr) ({ struct __attribute__((packed)) { typeof(*(ptr)) __v; } *__p = (void *) (ptr); __p->__v; })
105 #define bt_put_unaligned(val, ptr) do { struct __attribute__((packed)) { typeof(*(ptr)) __v; } *__p = (void *) (ptr); __p->__v = (val); } while(0)
/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 0x%08x", ptr);
50 if (ptr & 3) {
51 ALOGV("try_get_word: invalid pointer 0x%08x", ptr);
56 if (!is_readable_map(memory->map_info_list, ptr)) {
57 ALOGV("try_get_word: pointer 0x%08x not in a readable map", ptr);
61 *out_value = *(uint32_t*)ptr;
67 *out_value = ptrace(PTRACE_PEEKTEXT, memory->tid, (void*)ptr, NULL);
70 "ptrace() errno=%d", ptr, memory->tid, errno);
77 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/extras/tests/framebuffer/
H A Dmdp_test.c142 char *ptr; local
146 if (!(ptr = strchr(geom, 'x')))
148 *ptr = '\0';
150 geom = ptr + 1;
152 ptr = strchr(geom, '+');
153 if (ptr)
154 *ptr = '\0';
156 if (!ptr)
159 geom = ptr + 1;
161 if (!x || !y || !(ptr
234 void *ptr; local
[all...]
/system/bluetooth/tools/
H A Dbttest.c50 int (*ptr)(); member in struct:__anon263
77 return (*function_table[i].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...]
H A Dprotocol.c231 const char *ptr = data; local
236 memcpy(usb_buf + usb_buf_len, ptr, to_write);
238 ptr += to_write;
256 r = _command_data(usb, ptr, to_write);
260 ptr += to_write;
269 memcpy(usb_buf, ptr, len);
/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);
/system/core/include/sysutils/
H A DList.h58 inline void setPrev(_Node* ptr) { mpPrev = ptr; } argument
59 inline void setNext(_Node* ptr) { mpNext = ptr; } argument
93 explicit _ListIterator(_NodePtr ptr) : mpNode(ptr) {} argument
/system/core/libcutils/
H A Dsched_policy.c99 char *ptr = end; local
100 *ptr = '\0';
102 *--ptr = '0' + (tid % 10);
106 if (write(fd, ptr, end - ptr) < 0) {
114 ptr, strerror(errno), policy);
/system/netd/
H A DList.h58 inline void setPrev(_Node* ptr) { mpPrev = ptr; } argument
59 inline void setNext(_Node* ptr) { mpNext = ptr; } argument
93 explicit _ListIterator(_NodePtr ptr) : mpNode(ptr) {} argument

Completed in 1194 milliseconds

123