Lines Matching refs:nl
550 void tipc_nlist_init(struct tipc_nlist *nl, u32 self) in tipc_nlist_init() argument
552 memset(nl, 0, sizeof(*nl)); in tipc_nlist_init()
553 INIT_LIST_HEAD(&nl->list); in tipc_nlist_init()
554 nl->self = self; in tipc_nlist_init()
557 void tipc_nlist_add(struct tipc_nlist *nl, u32 node) in tipc_nlist_add() argument
559 if (node == nl->self) in tipc_nlist_add()
560 nl->local = true; in tipc_nlist_add()
561 else if (tipc_dest_push(&nl->list, node, 0)) in tipc_nlist_add()
562 nl->remote++; in tipc_nlist_add()
565 void tipc_nlist_del(struct tipc_nlist *nl, u32 node) in tipc_nlist_del() argument
567 if (node == nl->self) in tipc_nlist_del()
568 nl->local = false; in tipc_nlist_del()
569 else if (tipc_dest_del(&nl->list, node, 0)) in tipc_nlist_del()
570 nl->remote--; in tipc_nlist_del()
573 void tipc_nlist_purge(struct tipc_nlist *nl) in tipc_nlist_purge() argument
575 tipc_dest_list_purge(&nl->list); in tipc_nlist_purge()
576 nl->remote = 0; in tipc_nlist_purge()
577 nl->local = false; in tipc_nlist_purge()