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)
45 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets;
46 size_t count = txn->offsets_size / sizeof(binder_size_t);
49 (uint64_t)txn->target.ptr, (uint64_t)txn->cookie, txn->code, txn->flags);
51 txn->sender_pid, txn->sender_euid, (uint64_t)txn->data_size, (uint64_t)txn->offsets_size);
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++);
80 #define binder_dump_txn(txn) do{} while (0)
176 struct binder_transaction_data txn;
182 data.txn.target.ptr = 0;
183 data.txn.cookie = 0;
184 data.txn.code = 0;
186 data.txn.flags = TF_STATUS_CODE;
187 data.txn.data_size = sizeof(int);
188 data.txn.offsets_size = 0;
189 data.txn.data.ptr.buffer = (uintptr_t)&status;
190 data.txn.data.ptr.offsets = 0;
192 data.txn.flags = 0;
193 data.txn.data_size = reply->data - reply->data0;
194 data.txn.offsets_size = ((char*) reply->offs) - ((char*) reply->offs0);
195 data.txn.data.ptr.buffer = (uintptr_t)reply->data0;
196 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0;
228 struct binder_transaction_data *txn = (struct binder_transaction_data *) ptr;
229 if ((end - ptr) < sizeof(*txn)) {
230 ALOGE("parse: txn too small!\n");
233 binder_dump_txn(txn);
241 bio_init_from_txn(&msg, txn);
242 res = func(bs, txn, &msg, &reply);
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)) {
254 binder_dump_txn(txn);
256 bio_init_from_txn(bio, txn);
261 ptr += sizeof(*txn);
323 struct binder_transaction_data txn;
328 fprintf(stderr,"binder: txn buffer overflow\n");
333 writebuf.txn.target.handle = target;
334 writebuf.txn.code = code;
335 writebuf.txn.flags = 0;
336 writebuf.txn.data_size = msg->data - msg->data0;
337 writebuf.txn.offsets_size = ((char*) msg->offs) - ((char*) msg->offs0);
338 writebuf.txn.data.ptr.buffer = (uintptr_t)msg->data0;
339 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0;
406 void bio_init_from_txn(struct binder_io *bio, struct binder_transaction_data *txn)
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;
410 bio->data_avail = txn->data_size;
411 bio->offs_avail = txn->offsets_size / sizeof(size_t);