Lines Matching refs:new_ref

1007 					struct binder_ref *new_ref)  in binder_get_ref_for_node_olocked()  argument
1026 if (!new_ref) in binder_get_ref_for_node_olocked()
1030 new_ref->data.debug_id = atomic_inc_return(&binder_last_id); in binder_get_ref_for_node_olocked()
1031 new_ref->proc = proc; in binder_get_ref_for_node_olocked()
1032 new_ref->node = node; in binder_get_ref_for_node_olocked()
1033 rb_link_node(&new_ref->rb_node_node, parent, p); in binder_get_ref_for_node_olocked()
1034 rb_insert_color(&new_ref->rb_node_node, &proc->refs_by_node); in binder_get_ref_for_node_olocked()
1036 new_ref->data.desc = (node == context->binder_context_mgr_node) ? 0 : 1; in binder_get_ref_for_node_olocked()
1039 if (ref->data.desc > new_ref->data.desc) in binder_get_ref_for_node_olocked()
1041 new_ref->data.desc = ref->data.desc + 1; in binder_get_ref_for_node_olocked()
1049 if (new_ref->data.desc < ref->data.desc) in binder_get_ref_for_node_olocked()
1051 else if (new_ref->data.desc > ref->data.desc) in binder_get_ref_for_node_olocked()
1056 rb_link_node(&new_ref->rb_node_desc, parent, p); in binder_get_ref_for_node_olocked()
1057 rb_insert_color(&new_ref->rb_node_desc, &proc->refs_by_desc); in binder_get_ref_for_node_olocked()
1060 hlist_add_head(&new_ref->node_entry, &node->refs); in binder_get_ref_for_node_olocked()
1064 proc->pid, new_ref->data.debug_id, new_ref->data.desc, in binder_get_ref_for_node_olocked()
1067 return new_ref; in binder_get_ref_for_node_olocked()
1322 struct binder_ref *new_ref = NULL; in binder_inc_ref_for_node() local
1329 new_ref = kzalloc(sizeof(*ref), GFP_KERNEL); in binder_inc_ref_for_node()
1330 if (!new_ref) in binder_inc_ref_for_node()
1333 ref = binder_get_ref_for_node_olocked(proc, node, new_ref); in binder_inc_ref_for_node()
1338 if (new_ref && ref != new_ref) in binder_inc_ref_for_node()
1343 kfree(new_ref); in binder_inc_ref_for_node()