Lines Matching refs:self
90 struct tipc_peer *self; member
199 return mon->self; in get_self()
272 struct tipc_peer *self = mon->self; in mon_update_local_domain() local
274 struct tipc_mon_domain *dom = self->domain; in mon_update_local_domain()
275 struct tipc_peer *peer = self; in mon_update_local_domain()
282 self->applied = member_cnt; in mon_update_local_domain()
303 mon_apply_domain(mon, self); in mon_update_local_domain()
327 struct tipc_peer *self = mon->self; in mon_assign_roles() local
330 for (; peer != self; peer = peer_nxt(peer)) { in mon_assign_roles()
336 if (head == self) in mon_assign_roles()
355 struct tipc_peer *self; in tipc_mon_remove_peer() local
361 self = get_self(net, bearer_id); in tipc_mon_remove_peer()
373 if (head == self) in tipc_mon_remove_peer()
379 list_for_each_entry(peer, &self->list, list) { in tipc_mon_remove_peer()
393 struct tipc_peer *self = mon->self; in tipc_mon_add_peer() local
407 prev = self; in tipc_mon_add_peer()
408 list_for_each_entry(cur, &self->list, list) { in tipc_mon_add_peer()
425 struct tipc_peer *self = get_self(net, bearer_id); in tipc_mon_peer_up() local
434 if (head == self) in tipc_mon_peer_up()
444 struct tipc_peer *self; in tipc_mon_peer_down() local
452 self = get_self(net, bearer_id); in tipc_mon_peer_down()
471 if (head == self) in tipc_mon_peer_down()
634 struct tipc_peer *self; in mon_timeout() local
638 self = mon->self; in mon_timeout()
639 if (self && (best_member_cnt != self->applied)) { in mon_timeout()
641 mon_assign_roles(mon, self); in mon_timeout()
651 struct tipc_peer *self; in tipc_mon_create() local
658 self = kzalloc(sizeof(*self), GFP_ATOMIC); in tipc_mon_create()
660 if (!mon || !self || !dom) { in tipc_mon_create()
662 kfree(self); in tipc_mon_create()
670 mon->self = self; in tipc_mon_create()
671 self->domain = dom; in tipc_mon_create()
672 self->addr = tipc_own_addr(net); in tipc_mon_create()
673 self->is_up = true; in tipc_mon_create()
674 self->is_head = true; in tipc_mon_create()
675 INIT_LIST_HEAD(&self->list); in tipc_mon_create()
686 struct tipc_peer *self; in tipc_mon_delete() local
692 self = get_self(net, bearer_id); in tipc_mon_delete()
695 list_for_each_entry_safe(peer, tmp, &self->list, list) { in tipc_mon_delete()
701 mon->self = NULL; in tipc_mon_delete()
704 kfree(self->domain); in tipc_mon_delete()
705 kfree(self); in tipc_mon_delete()
719 mon->self->addr = tipc_own_addr(net); in tipc_mon_reinit_self()
807 peer = mon->self; in tipc_nl_add_monitor_peer()
820 } while ((peer = peer_nxt(peer)) != mon->self); in tipc_nl_add_monitor_peer()