Lines Matching refs:from

544  * binder_dequeue_work() - Removes an item from the work list
546 * @work: struct binder_work to remove from list
548 * Removes the specified work item from whatever list it is on.
634 * @proc: process to select a thread from
999 * Take reference on node to prevent the node from being freed
1283 * binder_get_node_from_ref() - get the node from the given proc/desc
1463 BUG_ON(target_thread->transaction_stack->from != target_thread);
1466 t->from = NULL;
1475 * extract t->from from a binder_transaction and keep the thread
1476 * indicated by t->from from being freed. When done with that
1523 * binder_get_txn_from() - safely extract the "from" thread in transaction
1524 * @t: binder transaction for t->from
1526 * Atomically return the "from" thread and increment the tmp_ref
1530 * Return: the value of t->from
1535 struct binder_thread *from;
1538 from = t->from;
1539 if (from)
1540 atomic_inc(&from->tmp_ref);
1542 return from;
1546 * binder_get_txn_from_and_acq_inner() - get t->from and acquire inner lock
1547 * @t: binder transaction for t->from
1554 * Return: the value of t->from
1558 __acquires(&t->from->proc->inner_lock)
1560 struct binder_thread *from;
1562 from = binder_get_txn_from(t);
1563 if (!from) {
1564 __acquire(&from->proc->inner_lock);
1567 binder_inner_proc_lock(from->proc);
1568 if (t->from) {
1569 BUG_ON(from != t->from);
1570 return from;
1572 binder_inner_proc_unlock(from->proc);
1573 __acquire(&from->proc->inner_lock);
1574 binder_thread_dec_tmpref(from);
1580 * @t: binder transaction for t->from
1606 from_proc = t->from ? t->from->proc->pid : 0;
1607 from_thread = t->from ? t->from->pid : 0;
1729 * provided then the copy is from the sender's buffer. If not, then
1730 * it is copied from the target's @buffer.
1794 * @object_offsetp: offset of @object read from @b
1804 * from @start were previously verified to have valid offsets.
1926 * returning from binder_ioctl() via task_work_add().
1942 * returned from binder_ioctl(). This function is a callback
1960 * a file-descriptor to be closed after returning from binder_ioctl().
2341 * of the fd in the target needs to be done from a
2412 * Processes all elements of @sgc_head, applying fixups from @pf_head
2413 * and copying the scatter-gather data from the source process' user
2526 * from the source are never visible in the target buffer.
2565 * data from the source buffer. For BINDER_TYPE_FDA fixups, the fixup
2572 * we insert the new element by searching backward from the tail of
2927 struct binder_thread *from = binder_get_txn_from_and_acq_inner(t);
2929 if (!from) {
2931 __release(&from->proc->inner_lock);
2936 if (from->ee.command == BR_OK)
2937 binder_set_extended_error(&from->ee, id, command, param);
2938 binder_inner_proc_unlock(from->proc);
2939 binder_thread_dec_tmpref(from);
3085 binder_user_error("%d:%d got transaction to context manager from process owning it\n",
3128 * Do not allow new outgoing transaction from a
3132 * thread from proc->waiting_threads to enqueue
3164 struct binder_thread *from;
3167 from = tmp->from;
3168 if (from && from->proc == target_proc) {
3169 atomic_inc(&from->tmp_ref);
3170 target_thread = from;
3232 t->from = thread;
3238 t->from = NULL;
3379 binder_txn_error("%d:%d copy offset from buffer failed\n",
3829 * transaction from the node.
5028 * after we remove this thread from proc->threads.
5067 } else if (t->from == thread) {
5068 t->from = NULL;
5086 * If this thread used poll, make sure we remove the waitqueue from any
5096 * someone else removing the last entry from the queue for other reasons
6128 "%s %d: %pK from %d:%d to %d:%d code %x flags %x pri %ld r%d elapsed %lldms",
6220 if (t->from == thread) {
6309 * survives and isn't removed from the tree
6527 * survives and isn't removed from the list
6608 "%d: %s from %d:%d to %d:%d context %s node %d handle %d size %d:%d ret %d/%d l=%d",
6710 from_pid = t->from ? (t->from->proc ? t->from->proc->pid : 0) : t->from_pid;
6711 from_tid = t->from ? t->from->pid : t->from_tid;
6759 if (t->from == thread) {
6775 * survives and isn't removed from the tree