Lines Matching refs:l

201 static void tipc_node_calculate_timer(struct tipc_node *n, struct tipc_link *l)  in tipc_node_calculate_timer()  argument
203 unsigned long tol = l->tolerance; in tipc_node_calculate_timer()
212 l->abort_limit = l->tolerance / jiffies_to_msecs(n->keepalive_intv); in tipc_node_calculate_timer()
406 struct tipc_link *l, *_l, *tnl; in __tipc_node_link_down() local
408 l = n->links[*bearer_id].link; in __tipc_node_link_down()
409 if (!l || tipc_link_is_reset(l)) in __tipc_node_link_down()
414 n->link_id = l->peer_bearer_id << 16 | *bearer_id; in __tipc_node_link_down()
419 l->name, l->net_plane); in __tipc_node_link_down()
428 if (_l == l) in __tipc_node_link_down()
442 if (tipc_link_peer_is_down(l)) in __tipc_node_link_down()
445 tipc_link_fsm_evt(l, LINK_RESET_EVT); in __tipc_node_link_down()
446 tipc_link_reset(l); in __tipc_node_link_down()
447 tipc_link_build_reset_msg(l, xmitq); in __tipc_node_link_down()
460 tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); in __tipc_node_link_down()
461 tipc_link_reset(l); in __tipc_node_link_down()
462 tipc_link_fsm_evt(l, LINK_RESET_EVT); in __tipc_node_link_down()
463 tipc_link_fsm_evt(l, LINK_FAILOVER_BEGIN_EVT); in __tipc_node_link_down()
472 struct tipc_link *l = le->link; in tipc_node_link_down() local
476 if (!l) in tipc_node_link_down()
482 if (!tipc_link_is_establishing(l)) { in tipc_node_link_down()
485 kfree(l); in tipc_node_link_down()
491 tipc_link_fsm_evt(l, LINK_RESET_EVT); in tipc_node_link_down()
510 struct tipc_link *l; in tipc_node_check_dest() local
531 l = le->link; in tipc_node_check_dest()
532 link_up = l && tipc_link_is_up(l); in tipc_node_check_dest()
533 addr_match = l && !memcmp(&le->maddr, maddr, sizeof(*maddr)); in tipc_node_check_dest()
599 if (!l) { in tipc_node_check_dest()
612 &n->bc_entry.namedq, &l)) { in tipc_node_check_dest()
616 tipc_link_reset(l); in tipc_node_check_dest()
617 tipc_link_fsm_evt(l, LINK_RESET_EVT); in tipc_node_check_dest()
619 tipc_link_fsm_evt(l, LINK_FAILOVER_BEGIN_EVT); in tipc_node_check_dest()
620 le->link = l; in tipc_node_check_dest()
622 tipc_node_calculate_timer(n, l); in tipc_node_check_dest()
630 if (reset && !tipc_link_is_reset(l)) in tipc_node_check_dest()
860 struct tipc_link *l; in node_lost_contact() local
873 l = n->links[i].link; in node_lost_contact()
874 if (l) in node_lost_contact()
875 tipc_link_fsm_evt(l, LINK_FAILOVER_END_EVT); in node_lost_contact()
1026 struct tipc_link *l = NULL; in tipc_node_xmit() local
1037 l = tipc_node_select_link(n, selector, &bearer_id, &maddr); in tipc_node_xmit()
1038 if (likely(l)) in tipc_node_xmit()
1039 rc = tipc_link_xmit(l, list, &xmitq); in tipc_node_xmit()
1156 struct tipc_link *l, *tnl, *pl = NULL; in tipc_node_check_state() local
1160 l = n->links[bearer_id].link; in tipc_node_check_state()
1161 if (!l) in tipc_node_check_state()
1163 rcv_nxt = l->rcv_nxt; in tipc_node_check_state()
1179 if (!tipc_link_is_up(l)) in tipc_node_check_state()
1202 tipc_skb_queue_splice_tail_init(pl->inputq, l->inputq); in tipc_node_check_state()
1210 if ((n->state == NODE_FAILINGOVER) && tipc_link_is_up(l)) { in tipc_node_check_state()
1226 if (!tipc_link_is_up(l)) { in tipc_node_check_state()
1227 tipc_link_fsm_evt(l, LINK_ESTABLISH_EVT); in tipc_node_check_state()
1232 tipc_link_fsm_evt(l, LINK_SYNCH_BEGIN_EVT); in tipc_node_check_state()
1240 if ((n->state == NODE_SYNCHING) && tipc_link_is_synching(l)) { in tipc_node_check_state()
1241 if (tipc_link_is_synching(l)) { in tipc_node_check_state()
1242 tnl = l; in tipc_node_check_state()
1245 pl = l; in tipc_node_check_state()
1253 if (l == pl) in tipc_node_check_state()