Lines Matching refs:bearer_id
100 static struct tipc_monitor *tipc_monitor(struct net *net, int bearer_id) in tipc_monitor() argument
102 return tipc_net(net)->monitors[bearer_id]; in tipc_monitor()
195 static struct tipc_peer *get_self(struct net *net, int bearer_id) in get_self() argument
197 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in get_self()
352 void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id) in tipc_mon_remove_peer() argument
354 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_mon_remove_peer()
361 self = get_self(net, bearer_id); in tipc_mon_remove_peer()
422 void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id) in tipc_mon_peer_up() argument
424 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_mon_peer_up()
425 struct tipc_peer *self = get_self(net, bearer_id); in tipc_mon_peer_up()
441 void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id) in tipc_mon_peer_down() argument
443 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_mon_peer_down()
452 self = get_self(net, bearer_id); in tipc_mon_peer_down()
456 pr_warn("Mon: unknown link %x/%u DOWN\n", addr, bearer_id); in tipc_mon_peer_down()
481 struct tipc_mon_state *state, int bearer_id) in tipc_mon_rcv() argument
483 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_mon_rcv()
567 struct tipc_mon_state *state, int bearer_id) in tipc_mon_prep() argument
569 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_mon_prep()
601 int bearer_id) in tipc_mon_get_state() argument
603 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_mon_get_state()
647 int tipc_mon_create(struct net *net, int bearer_id) in tipc_mon_create() argument
654 if (tn->monitors[bearer_id]) in tipc_mon_create()
666 tn->monitors[bearer_id] = mon; in tipc_mon_create()
682 void tipc_mon_delete(struct net *net, int bearer_id) in tipc_mon_delete() argument
685 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_mon_delete()
692 self = get_self(net, bearer_id); in tipc_mon_delete()
694 tn->monitors[bearer_id] = NULL; in tipc_mon_delete()
712 int bearer_id; in tipc_mon_reinit_self() local
714 for (bearer_id = 0; bearer_id < MAX_BEARERS; bearer_id++) { in tipc_mon_reinit_self()
715 mon = tipc_monitor(net, bearer_id); in tipc_mon_reinit_self()
798 u32 bearer_id, u32 *prev_node) in tipc_nl_add_monitor_peer() argument
800 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in tipc_nl_add_monitor_peer()
827 u32 bearer_id) in __tipc_nl_add_monitor() argument
829 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in __tipc_nl_add_monitor()
835 ret = tipc_bearer_get_name(net, bearer_name, bearer_id); in __tipc_nl_add_monitor()
849 if (nla_put_u32(msg->skb, TIPC_NLA_MON_REF, bearer_id)) in __tipc_nl_add_monitor()