Lines Matching defs:target_proc

1662 	struct binder_proc *target_proc;
1665 target_proc = t->to_proc;
1668 * Pin target_thread to keep target_proc alive. Undelivered
1669 * transactions with !target_thread are safe, as target_proc
1676 if (target_proc) {
1677 binder_inner_proc_lock(target_proc);
1678 target_proc->outstanding_txns--;
1679 if (target_proc->outstanding_txns < 0)
1681 __func__, target_proc->outstanding_txns);
1682 if (!target_proc->outstanding_txns && target_proc->is_frozen)
1683 wake_up_interruptible_all(&target_proc->freeze_wait);
1686 binder_inner_proc_unlock(target_proc);
1695 * If the transaction has no target_proc, then
2243 struct binder_proc *target_proc = t->to_proc;
2261 if (security_binder_transfer_binder(proc->cred, target_proc->cred)) {
2266 ret = binder_inc_ref_for_node(target_proc, node,
2295 struct binder_proc *target_proc = t->to_proc;
2307 if (security_binder_transfer_binder(proc->cred, target_proc->cred)) {
2313 if (node->proc == target_proc) {
2341 ret = binder_inc_ref_for_node(target_proc, node,
2369 struct binder_proc *target_proc = t->to_proc;
2395 ret = security_binder_transfer_file(proc->cred, target_proc->cred, file);
2750 struct binder_proc *target_proc = t->to_proc;
2758 parent = binder_validate_ptr(target_proc, b, &object, bp->parent,
2767 if (!binder_validate_fixup(target_proc, b, off_start_offset,
3087 struct binder_proc *target_proc = NULL;
3202 target_proc = target_thread->proc;
3203 target_proc->tmp_ref++;
3221 ref->node, &target_proc,
3234 target_node, &target_proc,
3239 if (target_node && target_proc->pid == proc->pid) {
3257 if (WARN_ON(proc == target_proc)) {
3266 target_proc->cred) < 0) {
3321 if (from && from->proc == target_proc) {
3334 t->to_proc = target_proc;
3338 e->to_proc = target_proc->pid;
3355 target_proc->pid, target_thread->pid,
3362 target_proc->pid, target_node->debug_id,
3393 t->buffer = binder_alloc_new_buf(&target_proc->alloc, tr->data_size,
3421 err = binder_alloc_copy_to_buffer(&target_proc->alloc,
3438 &target_proc->alloc,
3483 if (binder_alloc_copy_from_buffer(&target_proc->alloc,
3504 &target_proc->alloc,
3515 object_size = binder_get_object(target_proc, user_buffer,
3545 binder_alloc_copy_to_buffer(&target_proc->alloc,
3564 binder_alloc_copy_to_buffer(&target_proc->alloc,
3586 binder_alloc_copy_to_buffer(&target_proc->alloc,
3608 binder_validate_ptr(target_proc, t->buffer,
3621 if (!binder_validate_fixup(target_proc, t->buffer,
3656 ret = binder_alloc_copy_to_buffer(&target_proc->alloc,
3710 binder_alloc_copy_to_buffer(&target_proc->alloc,
3735 &target_proc->alloc,
3747 ret = binder_do_deferred_txn_copies(&target_proc->alloc, t->buffer,
3767 binder_inner_proc_lock(target_proc);
3770 binder_inner_proc_unlock(target_proc);
3776 target_proc->outstanding_txns++;
3777 binder_inner_proc_unlock(target_proc);
3795 target_proc, target_thread);
3813 return_error = binder_proc_transaction(t, target_proc, NULL);
3831 binder_proc_dec_tmpref(target_proc);
3856 binder_transaction_buffer_release(target_proc, NULL, t->buffer,
3862 binder_alloc_free_buf(&target_proc->alloc, t->buffer);
3892 target_proc ? target_proc->pid : 0,
3900 if (target_proc)
3901 binder_proc_dec_tmpref(target_proc);
5693 struct binder_proc *target_proc)
5698 binder_inner_proc_lock(target_proc);
5699 target_proc->sync_recv = false;
5700 target_proc->async_recv = false;
5701 target_proc->is_frozen = false;
5702 binder_inner_proc_unlock(target_proc);
5703 binder_add_freeze_work(target_proc, false);
5712 binder_inner_proc_lock(target_proc);
5713 target_proc->sync_recv = false;
5714 target_proc->async_recv = false;
5715 target_proc->is_frozen = true;
5716 binder_inner_proc_unlock(target_proc);
5720 target_proc->freeze_wait,
5721 (!target_proc->outstanding_txns),
5726 binder_inner_proc_lock(target_proc);
5727 if (binder_txns_pending_ilocked(target_proc))
5729 binder_inner_proc_unlock(target_proc);
5733 binder_inner_proc_lock(target_proc);
5734 target_proc->is_frozen = false;
5735 binder_inner_proc_unlock(target_proc);
5737 binder_add_freeze_work(target_proc, true);
5746 struct binder_proc *target_proc;
5754 hlist_for_each_entry(target_proc, &binder_procs, proc_node) {
5755 if (target_proc->pid == info->pid) {
5757 binder_inner_proc_lock(target_proc);
5758 txns_pending = binder_txns_pending_ilocked(target_proc);
5759 info->sync_recv |= target_proc->sync_recv |
5761 info->async_recv |= target_proc->async_recv;
5762 binder_inner_proc_unlock(target_proc);
5899 struct binder_proc **target_procs = NULL, *target_proc;
5910 hlist_for_each_entry(target_proc, &binder_procs, proc_node) {
5911 if (target_proc->pid == info.pid)
5930 hlist_for_each_entry(target_proc, &binder_procs, proc_node) {
5931 if (target_proc->pid != info.pid)
5934 binder_inner_proc_lock(target_proc);
5935 target_proc->tmp_ref++;
5936 binder_inner_proc_unlock(target_proc);
5938 target_procs[i++] = target_proc;