Lines Matching refs:l_ptr
226 void tipc_node_link_up(struct tipc_node *n_ptr, struct tipc_link *l_ptr) in tipc_node_link_up() argument
232 n_ptr->link_id = l_ptr->peer_bearer_id << 16 | l_ptr->bearer_id; in tipc_node_link_up()
235 l_ptr->name, l_ptr->net_plane); in tipc_node_link_up()
238 active[0] = active[1] = l_ptr; in tipc_node_link_up()
242 if (l_ptr->priority < active[0]->priority) { in tipc_node_link_up()
243 pr_debug("New link <%s> becomes standby\n", l_ptr->name); in tipc_node_link_up()
246 tipc_link_dup_queue_xmit(active[0], l_ptr); in tipc_node_link_up()
247 if (l_ptr->priority == active[0]->priority) { in tipc_node_link_up()
248 active[0] = l_ptr; in tipc_node_link_up()
254 active[0] = active[1] = l_ptr; in tipc_node_link_up()
273 struct tipc_link *l_ptr = n_ptr->links[i]; in node_select_active_links() local
275 if (!l_ptr || !tipc_link_is_up(l_ptr) || in node_select_active_links()
276 (l_ptr->priority < highest_prio)) in node_select_active_links()
279 if (l_ptr->priority > highest_prio) { in node_select_active_links()
280 highest_prio = l_ptr->priority; in node_select_active_links()
281 active[0] = active[1] = l_ptr; in node_select_active_links()
283 active[1] = l_ptr; in node_select_active_links()
291 void tipc_node_link_down(struct tipc_node *n_ptr, struct tipc_link *l_ptr) in tipc_node_link_down() argument
298 n_ptr->link_id = l_ptr->peer_bearer_id << 16 | l_ptr->bearer_id; in tipc_node_link_down()
300 if (!tipc_link_is_active(l_ptr)) { in tipc_node_link_down()
302 l_ptr->name, l_ptr->net_plane); in tipc_node_link_down()
306 l_ptr->name, l_ptr->net_plane); in tipc_node_link_down()
309 if (active[0] == l_ptr) in tipc_node_link_down()
311 if (active[1] == l_ptr) in tipc_node_link_down()
313 if (active[0] == l_ptr) in tipc_node_link_down()
316 tipc_link_failover_send_queue(l_ptr); in tipc_node_link_down()
343 void tipc_node_attach_link(struct tipc_node *n_ptr, struct tipc_link *l_ptr) in tipc_node_attach_link() argument
345 n_ptr->links[l_ptr->bearer_id] = l_ptr; in tipc_node_attach_link()
349 void tipc_node_detach_link(struct tipc_node *n_ptr, struct tipc_link *l_ptr) in tipc_node_detach_link() argument
354 if (l_ptr != n_ptr->links[i]) in tipc_node_detach_link()
398 struct tipc_link *l_ptr = n_ptr->links[i]; in node_lost_contact() local
399 if (!l_ptr) in node_lost_contact()
401 l_ptr->flags &= ~LINK_FAILINGOVER; in node_lost_contact()
402 l_ptr->failover_checkpt = 0; in node_lost_contact()
403 l_ptr->failover_pkts = 0; in node_lost_contact()
404 kfree_skb(l_ptr->failover_skb); in node_lost_contact()
405 l_ptr->failover_skb = NULL; in node_lost_contact()
406 tipc_link_reset_fragments(l_ptr); in node_lost_contact()