Lines Matching refs:tr
2998 struct binder_transaction_data *tr, int reply, in binder_transaction() argument
3027 (uintptr_t)tr->data.ptr.buffer; in binder_transaction()
3033 e->call_type = reply ? 2 : !!(tr->flags & TF_ONE_WAY); in binder_transaction()
3036 e->target_handle = tr->target.handle; in binder_transaction()
3037 e->data_size = tr->data_size; in binder_transaction()
3038 e->offsets_size = tr->offsets_size; in binder_transaction()
3104 if (tr->target.handle) { in binder_transaction()
3115 ref = binder_get_ref_olocked(proc, tr->target.handle, in binder_transaction()
3123 proc->pid, thread->pid, tr->target.handle); in binder_transaction()
3176 if (!(tr->flags & TF_ONE_WAY) && w && in binder_transaction()
3196 if (!(tr->flags & TF_ONE_WAY) && thread->transaction_stack) { in binder_transaction()
3268 (u64)tr->data_size, (u64)tr->offsets_size, in binder_transaction()
3275 (u64)tr->data_size, (u64)tr->offsets_size, in binder_transaction()
3278 if (!reply && !(tr->flags & TF_ONE_WAY)) in binder_transaction()
3287 t->code = tr->code; in binder_transaction()
3288 t->flags = tr->flags; in binder_transaction()
3319 t->buffer = binder_alloc_new_buf(&target_proc->alloc, tr->data_size, in binder_transaction()
3320 tr->offsets_size, extra_buffers_size, in binder_transaction()
3341 size_t buf_offset = ALIGN(tr->data_size, sizeof(void *)) + in binder_transaction()
3342 ALIGN(tr->offsets_size, sizeof(void *)) + in binder_transaction()
3366 ALIGN(tr->data_size, sizeof(void *)), in binder_transaction()
3368 (uintptr_t)tr->data.ptr.offsets, in binder_transaction()
3369 tr->offsets_size)) { in binder_transaction()
3377 if (!IS_ALIGNED(tr->offsets_size, sizeof(binder_size_t))) { in binder_transaction()
3379 proc->pid, thread->pid, (u64)tr->offsets_size); in binder_transaction()
3394 off_start_offset = ALIGN(tr->data_size, sizeof(void *)); in binder_transaction()
3396 off_end_offset = off_start_offset + tr->offsets_size; in binder_transaction()
3428 object_offset > tr->data_size || in binder_transaction()
3664 tr->data_size - user_offset)) { in binder_transaction()
3802 (tr->flags & TF_ONE_WAY ? "async" : "call"), in binder_transaction()
3806 tr->code, (u64)tr->data_size, (u64)tr->offsets_size, in binder_transaction()
4246 struct binder_transaction_data_sg tr; in binder_thread_write() local
4248 if (copy_from_user(&tr, ptr, sizeof(tr))) in binder_thread_write()
4250 ptr += sizeof(tr); in binder_thread_write()
4251 binder_transaction(proc, thread, &tr.transaction_data, in binder_thread_write()
4252 cmd == BC_REPLY_SG, tr.buffers_size); in binder_thread_write()
4257 struct binder_transaction_data tr; in binder_thread_write() local
4259 if (copy_from_user(&tr, ptr, sizeof(tr))) in binder_thread_write()
4261 ptr += sizeof(tr); in binder_thread_write()
4262 binder_transaction(proc, thread, &tr, in binder_thread_write()
4706 struct binder_transaction_data_secctx tr; in binder_thread_read() local
4707 struct binder_transaction_data *trd = &tr.transaction_data; in binder_thread_read()
4729 if (end - ptr < sizeof(tr) + 4) { in binder_thread_read()
5025 tr.secctx = t->security_ctx; in binder_thread_read()
5028 trsize = sizeof(tr); in binder_thread_read()
5040 if (copy_to_user(ptr, &tr, trsize)) { in binder_thread_read()