Lines Matching refs:ptr

46     binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets;
50 (uint64_t)txn->target.ptr, (uint64_t)txn->cookie, txn->code, txn->flags);
53 hexdump((void *)(uintptr_t)txn->data.ptr.buffer, txn->data_size);
55 obj = (struct flat_binder_object *) (((char*)(uintptr_t)txn->data.ptr.buffer) + *offs++);
56 fprintf(stderr," - type %08x flags %08x ptr %016"PRIx64" cookie %016"PRIx64"\n",
197 data.txn.target.ptr = 0;
204 data.txn.data.ptr.buffer = (uintptr_t)&status;
205 data.txn.data.ptr.offsets = 0;
210 data.txn.data.ptr.buffer = (uintptr_t)reply->data0;
211 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0;
217 uintptr_t ptr, size_t size, binder_handler func)
220 uintptr_t end = ptr + (uintptr_t) size;
222 while (ptr < end) {
223 uint32_t cmd = *(uint32_t *) ptr;
224 ptr += sizeof(uint32_t);
238 fprintf(stderr," %p, %p\n", (void *)ptr, (void *)(ptr + sizeof(void *)));
240 ptr += sizeof(struct binder_ptr_cookie);
243 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr;
244 if ((end - ptr) < sizeof(*txn)) {
259 binder_free_buffer(bs, txn->data.ptr.buffer);
261 binder_send_reply(bs, &reply, txn->data.ptr.buffer, res);
264 ptr += sizeof(*txn);
268 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr;
269 if ((end - ptr) < sizeof(*txn)) {
280 ptr += sizeof(*txn);
285 struct binder_death *death = (struct binder_death *)(uintptr_t) *(binder_uintptr_t *)ptr;
286 ptr += sizeof(binder_uintptr_t);
287 death->func(bs, death->ptr);
357 writebuf.txn.data.ptr.buffer = (uintptr_t)msg->data0;
358 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0;
427 bio->data = bio->data0 = (char *)(intptr_t)txn->data.ptr.buffer;
428 bio->offs = bio->offs0 = (binder_size_t *)(intptr_t)txn->data.ptr.offsets;
460 void *ptr = bio->data;
463 return ptr;
502 uint32_t *ptr = bio_alloc(bio, sizeof(n));
503 if (ptr)
504 *ptr = n;
507 void bio_put_obj(struct binder_io *bio, void *ptr)
517 obj->binder = (uintptr_t)ptr;
542 uint16_t *ptr;
560 ptr = bio_alloc(bio, len);
561 if (ptr)
562 memcpy(ptr, str, len);
569 uint16_t *ptr;
585 ptr = bio_alloc(bio, (len + 1) * sizeof(uint16_t));
586 if (!ptr)
590 *ptr++ = *str++;
591 *ptr++ = 0;
603 void *ptr = bio->data;
606 return ptr;
612 uint32_t *ptr = bio_get(bio, sizeof(*ptr));
613 return ptr ? *ptr : 0;