Searched refs:n_ptr (Results 1 – 3 of 3) sorted by relevance
147 struct tipc_node *n_ptr, *temp_node; in tipc_node_create() local150 n_ptr = tipc_node_find(net, addr); in tipc_node_create()151 if (n_ptr) in tipc_node_create()153 n_ptr = kzalloc(sizeof(*n_ptr), GFP_ATOMIC); in tipc_node_create()154 if (!n_ptr) { in tipc_node_create()158 n_ptr->addr = addr; in tipc_node_create()159 n_ptr->net = net; in tipc_node_create()160 n_ptr->capabilities = capabilities; in tipc_node_create()161 kref_init(&n_ptr->kref); in tipc_node_create()162 spin_lock_init(&n_ptr->lock); in tipc_node_create()[all …]
142 void tipc_node_attach_link(struct tipc_node *n_ptr, struct tipc_link *l_ptr);143 void tipc_node_detach_link(struct tipc_node *n_ptr, struct tipc_link *l_ptr);
1543 struct tipc_node *n_ptr; in tipc_link_find_owner() local1549 list_for_each_entry_rcu(n_ptr, &tn->node_list, list) { in tipc_link_find_owner()1550 tipc_node_lock(n_ptr); in tipc_link_find_owner()1552 l_ptr = n_ptr->links[i].link; in tipc_link_find_owner()1555 found_node = n_ptr; in tipc_link_find_owner()1559 tipc_node_unlock(n_ptr); in tipc_link_find_owner()