Lines Matching refs:strong
806 static int binder_inc_node_nilocked(struct binder_node *node, int strong, in binder_inc_node_nilocked() argument
815 if (strong) { in binder_inc_node_nilocked()
855 static int binder_inc_node(struct binder_node *node, int strong, int internal, in binder_inc_node() argument
861 ret = binder_inc_node_nilocked(node, strong, internal, target_list); in binder_inc_node()
868 int strong, int internal) in binder_dec_node_nilocked() argument
875 if (strong) { in binder_dec_node_nilocked()
927 static void binder_dec_node(struct binder_node *node, int strong, int internal) in binder_dec_node() argument
932 free_node = binder_dec_node_nilocked(node, strong, internal); in binder_dec_node()
1027 } else if (need_strong_ref && !ref->data.strong) { in binder_get_ref_olocked()
1134 if (ref->data.strong) in binder_cleanup_ref_olocked()
1173 static int binder_inc_ref_olocked(struct binder_ref *ref, int strong, in binder_inc_ref_olocked() argument
1178 if (strong) { in binder_inc_ref_olocked()
1179 if (ref->data.strong == 0) { in binder_inc_ref_olocked()
1184 ref->data.strong++; in binder_inc_ref_olocked()
1205 static bool binder_dec_ref_olocked(struct binder_ref *ref, int strong) in binder_dec_ref_olocked() argument
1207 if (strong) { in binder_dec_ref_olocked()
1208 if (ref->data.strong == 0) { in binder_dec_ref_olocked()
1211 ref->data.desc, ref->data.strong, in binder_dec_ref_olocked()
1215 ref->data.strong--; in binder_dec_ref_olocked()
1216 if (ref->data.strong == 0) in binder_dec_ref_olocked()
1217 binder_dec_node(ref->node, strong, 1); in binder_dec_ref_olocked()
1222 ref->data.desc, ref->data.strong, in binder_dec_ref_olocked()
1228 if (ref->data.strong == 0 && ref->data.weak == 0) { in binder_dec_ref_olocked()
1304 uint32_t desc, bool increment, bool strong, in binder_update_ref_for_handle() argument
1312 ref = binder_get_ref_olocked(proc, desc, strong); in binder_update_ref_for_handle()
1318 ret = binder_inc_ref_olocked(ref, strong, NULL); in binder_update_ref_for_handle()
1320 delete_ref = binder_dec_ref_olocked(ref, strong); in binder_update_ref_for_handle()
1347 uint32_t desc, bool strong, struct binder_ref_data *rdata) in binder_dec_ref_for_handle() argument
1349 return binder_update_ref_for_handle(proc, desc, false, strong, rdata); in binder_dec_ref_for_handle()
1368 bool strong, in binder_inc_ref_for_node() argument
1386 ret = binder_inc_ref_olocked(ref, strong, target_list); in binder_inc_ref_for_node()
3812 bool strong = cmd == BC_ACQUIRE || cmd == BC_RELEASE; in binder_thread_write() local
3835 strong, NULL, &rdata); in binder_thread_write()
3841 proc, target, increment, strong, in binder_thread_write()
3866 strong, target, ret); in binder_thread_write()
3872 rdata.debug_id, rdata.desc, rdata.strong, in binder_thread_write()
4099 ref->data.desc, ref->data.strong, in binder_thread_write()
4482 int strong, weak; in binder_thread_read() local
4491 strong = node->internal_strong_refs || in binder_thread_read()
4495 node->tmp_refs || strong; in binder_thread_read()
4504 if (strong && !has_strong_ref) { in binder_thread_read()
4509 if (!strong && has_strong_ref) in binder_thread_read()
4513 if (!weak && !strong) { in binder_thread_read()
4542 if (!ret && strong && !has_strong_ref) in binder_thread_read()
4547 if (!ret && !strong && has_strong_ref) in binder_thread_read()
6086 ref->node->debug_id, ref->data.strong, in print_binder_ref_olocked()
6263 int count, strong, weak, ready_threads; in print_binder_proc_stats() local
6291 strong = 0; in print_binder_proc_stats()
6298 strong += ref->data.strong; in print_binder_proc_stats()
6302 seq_printf(m, " refs: %d s %d w %d\n", count, strong, weak); in print_binder_proc_stats()