Lines Matching refs:txn

21 void bio_init_from_txn(struct binder_io *io, struct binder_transaction_data *txn);
42 void binder_dump_txn(struct binder_transaction_data *txn) in binder_dump_txn() argument
45 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets; in binder_dump_txn()
46 size_t count = txn->offsets_size / sizeof(binder_size_t); in binder_dump_txn()
49 (uint64_t)txn->target.ptr, (uint64_t)txn->cookie, txn->code, txn->flags); in binder_dump_txn()
51txn->sender_pid, txn->sender_euid, (uint64_t)txn->data_size, (uint64_t)txn->offsets_size); in binder_dump_txn()
52 hexdump((void *)(uintptr_t)txn->data.ptr.buffer, txn->data_size); in binder_dump_txn()
54 obj = (struct flat_binder_object *) (((char*)(uintptr_t)txn->data.ptr.buffer) + *offs++); in binder_dump_txn()
80 #define binder_dump_txn(txn) do{} while (0) argument
176 struct binder_transaction_data txn; in binder_send_reply() member
182 data.txn.target.ptr = 0; in binder_send_reply()
183 data.txn.cookie = 0; in binder_send_reply()
184 data.txn.code = 0; in binder_send_reply()
186 data.txn.flags = TF_STATUS_CODE; in binder_send_reply()
187 data.txn.data_size = sizeof(int); in binder_send_reply()
188 data.txn.offsets_size = 0; in binder_send_reply()
189 data.txn.data.ptr.buffer = (uintptr_t)&status; in binder_send_reply()
190 data.txn.data.ptr.offsets = 0; in binder_send_reply()
192 data.txn.flags = 0; in binder_send_reply()
193 data.txn.data_size = reply->data - reply->data0; in binder_send_reply()
194 data.txn.offsets_size = ((char*) reply->offs) - ((char*) reply->offs0); in binder_send_reply()
195 data.txn.data.ptr.buffer = (uintptr_t)reply->data0; in binder_send_reply()
196 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0; in binder_send_reply()
228 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr; in binder_parse() local
229 if ((end - ptr) < sizeof(*txn)) { in binder_parse()
233 binder_dump_txn(txn); in binder_parse()
241 bio_init_from_txn(&msg, txn); in binder_parse()
242 res = func(bs, txn, &msg, &reply); in binder_parse()
243 binder_send_reply(bs, &reply, txn->data.ptr.buffer, res); in binder_parse()
245 ptr += sizeof(*txn); in binder_parse()
249 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr; in binder_parse() local
250 if ((end - ptr) < sizeof(*txn)) { in binder_parse()
254 binder_dump_txn(txn); in binder_parse()
256 bio_init_from_txn(bio, txn); in binder_parse()
261 ptr += sizeof(*txn); in binder_parse()
323 struct binder_transaction_data txn; in binder_call() member
333 writebuf.txn.target.handle = target; in binder_call()
334 writebuf.txn.code = code; in binder_call()
335 writebuf.txn.flags = 0; in binder_call()
336 writebuf.txn.data_size = msg->data - msg->data0; in binder_call()
337 writebuf.txn.offsets_size = ((char*) msg->offs) - ((char*) msg->offs0); in binder_call()
338 writebuf.txn.data.ptr.buffer = (uintptr_t)msg->data0; in binder_call()
339 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0; in binder_call()
406 void bio_init_from_txn(struct binder_io *bio, struct binder_transaction_data *txn) in bio_init_from_txn() argument
408 bio->data = bio->data0 = (char *)(intptr_t)txn->data.ptr.buffer; in bio_init_from_txn()
409 bio->offs = bio->offs0 = (binder_size_t *)(intptr_t)txn->data.ptr.offsets; in bio_init_from_txn()
410 bio->data_avail = txn->data_size; in bio_init_from_txn()
411 bio->offs_avail = txn->offsets_size / sizeof(size_t); in bio_init_from_txn()