Lines Matching refs:nl
731 void tipc_nlist_init(struct tipc_nlist *nl, u32 self)
733 memset(nl, 0, sizeof(*nl));
734 INIT_LIST_HEAD(&nl->list);
735 nl->self = self;
738 void tipc_nlist_add(struct tipc_nlist *nl, u32 node)
740 if (node == nl->self)
741 nl->local = true;
742 else if (tipc_dest_push(&nl->list, node, 0))
743 nl->remote++;
746 void tipc_nlist_del(struct tipc_nlist *nl, u32 node)
748 if (node == nl->self)
749 nl->local = false;
750 else if (tipc_dest_del(&nl->list, node, 0))
751 nl->remote--;
754 void tipc_nlist_purge(struct tipc_nlist *nl)
756 tipc_dest_list_purge(&nl->list);
757 nl->remote = 0;
758 nl->local = false;