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