Lines Matching refs:ptr

45     binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets;
49 (uint64_t)txn->target.ptr, (uint64_t)txn->cookie, txn->code, txn->flags);
52 hexdump((void *)(uintptr_t)txn->data.ptr.buffer, txn->data_size);
54 obj = (struct flat_binder_object *) (((char*)(uintptr_t)txn->data.ptr.buffer) + *offs++);
55 fprintf(stderr," - type %08x flags %08x ptr %016"PRIx64" cookie %016"PRIx64"\n",
182 data.txn.target.ptr = 0;
189 data.txn.data.ptr.buffer = (uintptr_t)&status;
190 data.txn.data.ptr.offsets = 0;
195 data.txn.data.ptr.buffer = (uintptr_t)reply->data0;
196 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0;
202 uintptr_t ptr, size_t size, binder_handler func)
205 uintptr_t end = ptr + (uintptr_t) size;
207 while (ptr < end) {
208 uint32_t cmd = *(uint32_t *) ptr;
209 ptr += sizeof(uint32_t);
223 fprintf(stderr," %p, %p\n", (void *)ptr, (void *)(ptr + sizeof(void *)));
225 ptr += sizeof(struct binder_ptr_cookie);
228 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr;
229 if ((end - ptr) < sizeof(*txn)) {
243 binder_send_reply(bs, &reply, txn->data.ptr.buffer, res);
245 ptr += sizeof(*txn);
249 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr;
250 if ((end - ptr) < sizeof(*txn)) {
261 ptr += sizeof(*txn);
266 struct binder_death *death = (struct binder_death *)(uintptr_t) *(binder_uintptr_t *)ptr;
267 ptr += sizeof(binder_uintptr_t);
268 death->func(bs, death->ptr);
338 writebuf.txn.data.ptr.buffer = (uintptr_t)msg->data0;
339 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0;
408 bio->data = bio->data0 = (char *)(intptr_t)txn->data.ptr.buffer;
409 bio->offs = bio->offs0 = (binder_size_t *)(intptr_t)txn->data.ptr.offsets;
441 void *ptr = bio->data;
444 return ptr;
483 uint32_t *ptr = bio_alloc(bio, sizeof(n));
484 if (ptr)
485 *ptr = n;
488 void bio_put_obj(struct binder_io *bio, void *ptr)
498 obj->binder = (uintptr_t)ptr;
523 uint16_t *ptr;
541 ptr = bio_alloc(bio, len);
542 if (ptr)
543 memcpy(ptr, str, len);
550 uint16_t *ptr;
566 ptr = bio_alloc(bio, (len + 1) * sizeof(uint16_t));
567 if (!ptr)
571 *ptr++ = *str++;
572 *ptr++ = 0;
584 void *ptr = bio->data;
587 return ptr;
593 uint32_t *ptr = bio_get(bio, sizeof(*ptr));
594 return ptr ? *ptr : 0;