Lines Matching refs:ptr
47 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets; in binder_dump_txn()
51 (uint64_t)txn->target.ptr, (uint64_t)txn->cookie, txn->code, txn->flags); in binder_dump_txn()
54 hexdump((void *)(uintptr_t)txn->data.ptr.buffer, txn->data_size); in binder_dump_txn()
56 obj = (struct flat_binder_object *) (((char*)(uintptr_t)txn->data.ptr.buffer) + *offs++); in binder_dump_txn()
198 data.txn.target.ptr = 0; in binder_send_reply()
205 data.txn.data.ptr.buffer = (uintptr_t)&status; in binder_send_reply()
206 data.txn.data.ptr.offsets = 0; in binder_send_reply()
211 data.txn.data.ptr.buffer = (uintptr_t)reply->data0; in binder_send_reply()
212 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0; in binder_send_reply()
218 uintptr_t ptr, size_t size, binder_handler func) in binder_parse() argument
221 uintptr_t end = ptr + (uintptr_t) size; in binder_parse()
223 while (ptr < end) { in binder_parse()
224 uint32_t cmd = *(uint32_t *) ptr; in binder_parse()
225 ptr += sizeof(uint32_t); in binder_parse()
239 fprintf(stderr," %p, %p\n", (void *)ptr, (void *)(ptr + sizeof(void *))); in binder_parse()
241 ptr += sizeof(struct binder_ptr_cookie); in binder_parse()
244 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr; in binder_parse()
245 if ((end - ptr) < sizeof(*txn)) { in binder_parse()
260 binder_free_buffer(bs, txn->data.ptr.buffer); in binder_parse()
262 binder_send_reply(bs, &reply, txn->data.ptr.buffer, res); in binder_parse()
265 ptr += sizeof(*txn); in binder_parse()
269 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr; in binder_parse()
270 if ((end - ptr) < sizeof(*txn)) { in binder_parse()
281 ptr += sizeof(*txn); in binder_parse()
286 … struct binder_death *death = (struct binder_death *)(uintptr_t) *(binder_uintptr_t *)ptr; in binder_parse()
287 ptr += sizeof(binder_uintptr_t); in binder_parse()
288 death->func(bs, death->ptr); in binder_parse()
358 writebuf.txn.data.ptr.buffer = (uintptr_t)msg->data0; in binder_call()
359 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0; in binder_call()
428 bio->data = bio->data0 = (char *)(intptr_t)txn->data.ptr.buffer; in bio_init_from_txn()
429 bio->offs = bio->offs0 = (binder_size_t *)(intptr_t)txn->data.ptr.offsets; in bio_init_from_txn()
461 void *ptr = bio->data; in bio_alloc() local
464 return ptr; in bio_alloc()
503 uint32_t *ptr = bio_alloc(bio, sizeof(n)); in bio_put_uint32() local
504 if (ptr) in bio_put_uint32()
505 *ptr = n; in bio_put_uint32()
508 void bio_put_obj(struct binder_io *bio, void *ptr) in bio_put_obj() argument
518 obj->binder = (uintptr_t)ptr; in bio_put_obj()
543 uint16_t *ptr; in bio_put_string16() local
561 ptr = bio_alloc(bio, len); in bio_put_string16()
562 if (ptr) in bio_put_string16()
563 memcpy(ptr, str, len); in bio_put_string16()
570 uint16_t *ptr; in bio_put_string16_x() local
586 ptr = bio_alloc(bio, (len + 1) * sizeof(uint16_t)); in bio_put_string16_x()
587 if (!ptr) in bio_put_string16_x()
591 *ptr++ = *str++; in bio_put_string16_x()
592 *ptr++ = 0; in bio_put_string16_x()
604 void *ptr = bio->data; in bio_get() local
607 return ptr; in bio_get()
613 uint32_t *ptr = bio_get(bio, sizeof(*ptr)); in bio_get_uint32() local
614 return ptr ? *ptr : 0; in bio_get_uint32()