Lines Matching refs:strong
365 int strong; member
1161 static int binder_inc_node_nilocked(struct binder_node *node, int strong, in binder_inc_node_nilocked() argument
1170 if (strong) { in binder_inc_node_nilocked()
1210 static int binder_inc_node(struct binder_node *node, int strong, int internal, in binder_inc_node() argument
1216 ret = binder_inc_node_nilocked(node, strong, internal, target_list); in binder_inc_node()
1223 int strong, int internal) in binder_dec_node_nilocked() argument
1230 if (strong) { in binder_dec_node_nilocked()
1282 static void binder_dec_node(struct binder_node *node, int strong, int internal) in binder_dec_node() argument
1287 free_node = binder_dec_node_nilocked(node, strong, internal); in binder_dec_node()
1382 } else if (need_strong_ref && !ref->data.strong) { in binder_get_ref_olocked()
1489 if (ref->data.strong) in binder_cleanup_ref_olocked()
1528 static int binder_inc_ref_olocked(struct binder_ref *ref, int strong, in binder_inc_ref_olocked() argument
1533 if (strong) { in binder_inc_ref_olocked()
1534 if (ref->data.strong == 0) { in binder_inc_ref_olocked()
1539 ref->data.strong++; in binder_inc_ref_olocked()
1560 static bool binder_dec_ref_olocked(struct binder_ref *ref, int strong) in binder_dec_ref_olocked() argument
1562 if (strong) { in binder_dec_ref_olocked()
1563 if (ref->data.strong == 0) { in binder_dec_ref_olocked()
1566 ref->data.desc, ref->data.strong, in binder_dec_ref_olocked()
1570 ref->data.strong--; in binder_dec_ref_olocked()
1571 if (ref->data.strong == 0) in binder_dec_ref_olocked()
1572 binder_dec_node(ref->node, strong, 1); in binder_dec_ref_olocked()
1577 ref->data.desc, ref->data.strong, in binder_dec_ref_olocked()
1583 if (ref->data.strong == 0 && ref->data.weak == 0) { in binder_dec_ref_olocked()
1659 uint32_t desc, bool increment, bool strong, in binder_update_ref_for_handle() argument
1667 ref = binder_get_ref_olocked(proc, desc, strong); in binder_update_ref_for_handle()
1673 ret = binder_inc_ref_olocked(ref, strong, NULL); in binder_update_ref_for_handle()
1675 delete_ref = binder_dec_ref_olocked(ref, strong); in binder_update_ref_for_handle()
1702 uint32_t desc, bool strong, struct binder_ref_data *rdata) in binder_dec_ref_for_handle() argument
1704 return binder_update_ref_for_handle(proc, desc, false, strong, rdata); in binder_dec_ref_for_handle()
1723 bool strong, in binder_inc_ref_for_node() argument
1741 ret = binder_inc_ref_olocked(ref, strong, target_list); in binder_inc_ref_for_node()
3606 bool strong = cmd == BC_ACQUIRE || cmd == BC_RELEASE; in binder_thread_write() local
3628 strong, NULL, &rdata); in binder_thread_write()
3634 proc, target, increment, strong, in binder_thread_write()
3659 strong, target, ret); in binder_thread_write()
3665 rdata.debug_id, rdata.desc, rdata.strong, in binder_thread_write()
3892 ref->data.desc, ref->data.strong, in binder_thread_write()
4280 int strong, weak; in binder_thread_read() local
4289 strong = node->internal_strong_refs || in binder_thread_read()
4293 node->tmp_refs || strong; in binder_thread_read()
4302 if (strong && !has_strong_ref) { in binder_thread_read()
4307 if (!strong && has_strong_ref) in binder_thread_read()
4311 if (!weak && !strong) { in binder_thread_read()
4340 if (!ret && strong && !has_strong_ref) in binder_thread_read()
4345 if (!ret && !strong && has_strong_ref) in binder_thread_read()
5683 ref->node->debug_id, ref->data.strong, in print_binder_ref_olocked()
5857 int count, strong, weak, ready_threads; in print_binder_proc_stats() local
5885 strong = 0; in print_binder_proc_stats()
5892 strong += ref->data.strong; in print_binder_proc_stats()
5896 seq_printf(m, " refs: %d s %d w %d\n", count, strong, weak); in print_binder_proc_stats()