Lines Matching refs:target_thread
1170 static void binder_pop_transaction(struct binder_thread *target_thread, in binder_pop_transaction() argument
1173 if (target_thread) { in binder_pop_transaction()
1174 BUG_ON(target_thread->transaction_stack != t); in binder_pop_transaction()
1175 BUG_ON(target_thread->transaction_stack->from != target_thread); in binder_pop_transaction()
1176 target_thread->transaction_stack = in binder_pop_transaction()
1177 target_thread->transaction_stack->from_parent; in binder_pop_transaction()
1190 struct binder_thread *target_thread; in binder_send_failed_reply() local
1195 target_thread = t->from; in binder_send_failed_reply()
1196 if (target_thread) { in binder_send_failed_reply()
1197 if (target_thread->return_error != BR_OK && in binder_send_failed_reply()
1198 target_thread->return_error2 == BR_OK) { in binder_send_failed_reply()
1199 target_thread->return_error2 = in binder_send_failed_reply()
1200 target_thread->return_error; in binder_send_failed_reply()
1201 target_thread->return_error = BR_OK; in binder_send_failed_reply()
1203 if (target_thread->return_error == BR_OK) { in binder_send_failed_reply()
1207 target_thread->proc->pid, in binder_send_failed_reply()
1208 target_thread->pid); in binder_send_failed_reply()
1210 binder_pop_transaction(target_thread, t); in binder_send_failed_reply()
1211 target_thread->return_error = error_code; in binder_send_failed_reply()
1212 wake_up_interruptible(&target_thread->wait); in binder_send_failed_reply()
1215 target_thread->proc->pid, in binder_send_failed_reply()
1216 target_thread->pid, in binder_send_failed_reply()
1217 target_thread->return_error); in binder_send_failed_reply()
1227 binder_pop_transaction(target_thread, t); in binder_send_failed_reply()
1325 struct binder_thread *target_thread = NULL; in binder_transaction() local
1362 target_thread = in_reply_to->from; in binder_transaction()
1363 if (target_thread == NULL) { in binder_transaction()
1367 if (target_thread->transaction_stack != in_reply_to) { in binder_transaction()
1370 target_thread->transaction_stack ? in binder_transaction()
1371 target_thread->transaction_stack->debug_id : 0, in binder_transaction()
1375 target_thread = NULL; in binder_transaction()
1378 target_proc = target_thread->proc; in binder_transaction()
1424 target_thread = tmp->from; in binder_transaction()
1429 if (target_thread) { in binder_transaction()
1430 e->to_thread = target_thread->pid; in binder_transaction()
1431 target_list = &target_thread->todo; in binder_transaction()
1432 target_wait = &target_thread->wait; in binder_transaction()
1461 target_proc->pid, target_thread->pid, in binder_transaction()
1480 t->to_thread = target_thread; in binder_transaction()
1687 binder_pop_transaction(target_thread, in_reply_to); in binder_transaction()