Lines Matching refs:strong

819 static int binder_inc_node_nilocked(struct binder_node *node, int strong,  in binder_inc_node_nilocked()  argument
828 if (strong) { in binder_inc_node_nilocked()
868 static int binder_inc_node(struct binder_node *node, int strong, int internal, in binder_inc_node() argument
874 ret = binder_inc_node_nilocked(node, strong, internal, target_list); in binder_inc_node()
881 int strong, int internal) in binder_dec_node_nilocked() argument
888 if (strong) { in binder_dec_node_nilocked()
940 static void binder_dec_node(struct binder_node *node, int strong, int internal) in binder_dec_node() argument
945 free_node = binder_dec_node_nilocked(node, strong, internal); in binder_dec_node()
1040 } else if (need_strong_ref && !ref->data.strong) { in binder_get_ref_olocked()
1206 if (ref->data.strong) in binder_cleanup_ref_olocked()
1251 static int binder_inc_ref_olocked(struct binder_ref *ref, int strong, in binder_inc_ref_olocked() argument
1256 if (strong) { in binder_inc_ref_olocked()
1257 if (ref->data.strong == 0) { in binder_inc_ref_olocked()
1262 ref->data.strong++; in binder_inc_ref_olocked()
1283 static bool binder_dec_ref_olocked(struct binder_ref *ref, int strong) in binder_dec_ref_olocked() argument
1285 if (strong) { in binder_dec_ref_olocked()
1286 if (ref->data.strong == 0) { in binder_dec_ref_olocked()
1289 ref->data.desc, ref->data.strong, in binder_dec_ref_olocked()
1293 ref->data.strong--; in binder_dec_ref_olocked()
1294 if (ref->data.strong == 0) in binder_dec_ref_olocked()
1295 binder_dec_node(ref->node, strong, 1); in binder_dec_ref_olocked()
1300 ref->data.desc, ref->data.strong, in binder_dec_ref_olocked()
1306 if (ref->data.strong == 0 && ref->data.weak == 0) { in binder_dec_ref_olocked()
1402 uint32_t desc, bool increment, bool strong, in binder_update_ref_for_handle() argument
1410 ref = binder_get_ref_olocked(proc, desc, strong); in binder_update_ref_for_handle()
1416 ret = binder_inc_ref_olocked(ref, strong, NULL); in binder_update_ref_for_handle()
1418 delete_ref = binder_dec_ref_olocked(ref, strong); in binder_update_ref_for_handle()
1447 uint32_t desc, bool strong, struct binder_ref_data *rdata) in binder_dec_ref_for_handle() argument
1449 return binder_update_ref_for_handle(proc, desc, false, strong, rdata); in binder_dec_ref_for_handle()
1468 bool strong, in binder_inc_ref_for_node() argument
1486 ret = binder_inc_ref_olocked(ref, strong, target_list); in binder_inc_ref_for_node()
4071 bool strong = cmd == BC_ACQUIRE || cmd == BC_RELEASE; in binder_thread_write() local
4094 strong, NULL, &rdata); in binder_thread_write()
4100 proc, target, increment, strong, in binder_thread_write()
4125 strong, target, ret); in binder_thread_write()
4131 rdata.debug_id, rdata.desc, rdata.strong, in binder_thread_write()
4359 ref->data.desc, ref->data.strong, in binder_thread_write()
4780 int strong, weak; in binder_thread_read() local
4789 strong = node->internal_strong_refs || in binder_thread_read()
4793 node->tmp_refs || strong; in binder_thread_read()
4802 if (strong && !has_strong_ref) { in binder_thread_read()
4807 if (!strong && has_strong_ref) in binder_thread_read()
4811 if (!weak && !strong) { in binder_thread_read()
4840 if (!ret && strong && !has_strong_ref) in binder_thread_read()
4845 if (!ret && !strong && has_strong_ref) in binder_thread_read()
6495 ref->node->debug_id, ref->data.strong, in print_binder_ref_olocked()
6715 int count, strong, weak, ready_threads; in print_binder_proc_stats() local
6743 strong = 0; in print_binder_proc_stats()
6750 strong += ref->data.strong; in print_binder_proc_stats()
6754 seq_printf(m, " refs: %d s %d w %d\n", count, strong, weak); in print_binder_proc_stats()