Lines Matching refs:nl
712 void tipc_nlist_init(struct tipc_nlist *nl, u32 self) in tipc_nlist_init() argument
714 memset(nl, 0, sizeof(*nl)); in tipc_nlist_init()
715 INIT_LIST_HEAD(&nl->list); in tipc_nlist_init()
716 nl->self = self; in tipc_nlist_init()
719 void tipc_nlist_add(struct tipc_nlist *nl, u32 node) in tipc_nlist_add() argument
721 if (node == nl->self) in tipc_nlist_add()
722 nl->local = true; in tipc_nlist_add()
723 else if (tipc_dest_push(&nl->list, node, 0)) in tipc_nlist_add()
724 nl->remote++; in tipc_nlist_add()
727 void tipc_nlist_del(struct tipc_nlist *nl, u32 node) in tipc_nlist_del() argument
729 if (node == nl->self) in tipc_nlist_del()
730 nl->local = false; in tipc_nlist_del()
731 else if (tipc_dest_del(&nl->list, node, 0)) in tipc_nlist_del()
732 nl->remote--; in tipc_nlist_del()
735 void tipc_nlist_purge(struct tipc_nlist *nl) in tipc_nlist_purge() argument
737 tipc_dest_list_purge(&nl->list); in tipc_nlist_purge()
738 nl->remote = 0; in tipc_nlist_purge()
739 nl->local = false; in tipc_nlist_purge()