Lines Matching defs:txn

20 void bio_init_from_txn(struct binder_io *io, struct binder_txn *txn);
41 void binder_dump_txn(struct binder_txn *txn)
44 unsigned *offs = txn->offs;
45 unsigned count = txn->offs_size / 4;
48 txn->target, txn->cookie, txn->code, txn->flags);
50 txn->sender_pid, txn->sender_euid, txn->data_size, txn->offs_size);
51 hexdump(txn->data, txn->data_size);
53 obj = (void*) (((char*) txn->data) + *offs++);
79 #define binder_dump_txn(txn) do{} while (0)
169 struct binder_txn txn;
175 data.txn.target = 0;
176 data.txn.cookie = 0;
177 data.txn.code = 0;
179 data.txn.flags = TF_STATUS_CODE;
180 data.txn.data_size = sizeof(int);
181 data.txn.offs_size = 0;
182 data.txn.data = &status;
183 data.txn.offs = 0;
185 data.txn.flags = 0;
186 data.txn.data_size = reply->data - reply->data0;
187 data.txn.offs_size = ((char*) reply->offs) - ((char*) reply->offs0);
188 data.txn.data = reply->data0;
189 data.txn.offs = reply->offs0;
220 struct binder_txn *txn = (void *) ptr;
222 ALOGE("parse: txn too small!\n");
225 binder_dump_txn(txn);
233 bio_init_from_txn(&msg, txn);
234 res = func(bs, txn, &msg, &reply);
235 binder_send_reply(bs, &reply, txn->data, res);
237 ptr += sizeof(*txn) / sizeof(uint32_t);
241 struct binder_txn *txn = (void*) ptr;
246 binder_dump_txn(txn);
248 bio_init_from_txn(bio, txn);
253 ptr += (sizeof(*txn) / sizeof(uint32_t));
311 struct binder_txn txn;
316 fprintf(stderr,"binder: txn buffer overflow\n");
321 writebuf.txn.target = target;
322 writebuf.txn.code = code;
323 writebuf.txn.flags = 0;
324 writebuf.txn.data_size = msg->data - msg->data0;
325 writebuf.txn.offs_size = ((char*) msg->offs) - ((char*) msg->offs0);
326 writebuf.txn.data = msg->data0;
327 writebuf.txn.offs = msg->offs0;
394 void bio_init_from_txn(struct binder_io *bio, struct binder_txn *txn)
396 bio->data = bio->data0 = txn->data;
397 bio->offs = bio->offs0 = txn->offs;
398 bio->data_avail = txn->data_size;
399 bio->offs_avail = txn->offs_size / 4;