Lines Matching refs:txn

23 void bio_init_from_txn(struct binder_io *io, struct binder_transaction_data *txn);
44 void binder_dump_txn(struct binder_transaction_data *txn) in binder_dump_txn() argument
47 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets; in binder_dump_txn()
48 size_t count = txn->offsets_size / sizeof(binder_size_t); in binder_dump_txn()
51 (uint64_t)txn->target.ptr, (uint64_t)txn->cookie, txn->code, txn->flags); in binder_dump_txn()
53txn->sender_pid, txn->sender_euid, (uint64_t)txn->data_size, (uint64_t)txn->offsets_size); 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()
82 #define binder_dump_txn(txn) do{} while (0) argument
192 struct binder_transaction_data txn; in binder_send_reply() member
198 data.txn.target.ptr = 0; in binder_send_reply()
199 data.txn.cookie = 0; in binder_send_reply()
200 data.txn.code = 0; in binder_send_reply()
202 data.txn.flags = TF_STATUS_CODE; in binder_send_reply()
203 data.txn.data_size = sizeof(int); in binder_send_reply()
204 data.txn.offsets_size = 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()
208 data.txn.flags = 0; in binder_send_reply()
209 data.txn.data_size = reply->data - reply->data0; in binder_send_reply()
210 data.txn.offsets_size = ((char*) reply->offs) - ((char*) reply->offs0); 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()
244 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr; in binder_parse() local
245 if ((end - ptr) < sizeof(*txn)) { in binder_parse()
249 binder_dump_txn(txn); in binder_parse()
257 bio_init_from_txn(&msg, txn); in binder_parse()
258 res = func(bs, txn, &msg, &reply); in binder_parse()
259 if (txn->flags & TF_ONE_WAY) { 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() local
270 if ((end - ptr) < sizeof(*txn)) { in binder_parse()
274 binder_dump_txn(txn); in binder_parse()
276 bio_init_from_txn(bio, txn); in binder_parse()
281 ptr += sizeof(*txn); in binder_parse()
343 struct binder_transaction_data txn; in binder_call() member
353 writebuf.txn.target.handle = target; in binder_call()
354 writebuf.txn.code = code; in binder_call()
355 writebuf.txn.flags = 0; in binder_call()
356 writebuf.txn.data_size = msg->data - msg->data0; in binder_call()
357 writebuf.txn.offsets_size = ((char*) msg->offs) - ((char*) msg->offs0); in binder_call()
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()
426 void bio_init_from_txn(struct binder_io *bio, struct binder_transaction_data *txn) in bio_init_from_txn() argument
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()
430 bio->data_avail = txn->data_size; in bio_init_from_txn()
431 bio->offs_avail = txn->offsets_size / sizeof(size_t); in bio_init_from_txn()