Lines Matching refs:addr
76 u32 addr; member
153 static struct tipc_peer *get_peer(struct tipc_monitor *mon, u32 addr) in get_peer() argument
156 unsigned int thash = tipc_hashfn(addr); in get_peer()
159 if (peer->addr == addr) in get_peer()
220 u32 addr; in mon_apply_domain() local
230 addr = dom->members[i]; in mon_apply_domain()
231 if (addr != member->addr) in mon_apply_domain()
260 diff |= dom->members[i] != peer->addr; in mon_update_local_domain()
261 dom->members[i] = peer->addr; in mon_update_local_domain()
263 cache->members[i] = htonl(peer->addr); in mon_update_local_domain()
322 void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id) in tipc_mon_remove_peer() argument
329 peer = get_peer(mon, addr); in tipc_mon_remove_peer()
356 static bool tipc_mon_add_peer(struct tipc_monitor *mon, u32 addr, in tipc_mon_add_peer() argument
366 p->addr = addr; in tipc_mon_add_peer()
370 hlist_add_head(&p->hash, &mon->peers[tipc_hashfn(addr)]); in tipc_mon_add_peer()
375 if ((addr > prev->addr) && (addr < cur->addr)) in tipc_mon_add_peer()
377 if (((addr < cur->addr) || (addr > prev->addr)) && in tipc_mon_add_peer()
378 (prev->addr > cur->addr)) in tipc_mon_add_peer()
388 void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id) in tipc_mon_peer_up() argument
395 peer = get_peer(mon, addr); in tipc_mon_peer_up()
396 if (!peer && !tipc_mon_add_peer(mon, addr, &peer)) in tipc_mon_peer_up()
407 void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id) in tipc_mon_peer_down() argument
416 peer = get_peer(mon, addr); in tipc_mon_peer_down()
418 pr_warn("Mon: unknown link %x/%u DOWN\n", addr, bearer_id); in tipc_mon_peer_down()
442 void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr, in tipc_mon_rcv() argument
482 peer = get_peer(mon, addr); in tipc_mon_rcv()
558 void tipc_mon_get_state(struct net *net, u32 addr, in tipc_mon_get_state() argument
578 peer = get_peer(mon, addr); in tipc_mon_get_state()
631 self->addr = tipc_own_addr(net); in tipc_mon_create()
678 mon->self->addr = tipc_own_addr(net); in tipc_mon_reinit_self()
718 if (nla_put_u32(msg->skb, TIPC_NLA_MON_PEER_ADDR, peer->addr)) in __tipc_nl_add_monitor_peer()
769 if (peer->addr == *prev_node) in tipc_nl_add_monitor_peer()
775 *prev_node = peer->addr; in tipc_nl_add_monitor_peer()