Home
last modified time | relevance | path

Searched refs:n_ptr (Results 1 – 9 of 9) sorted by relevance

/linux-2.6.39/net/tipc/
Dnode.c42 static void node_lost_contact(struct tipc_node *n_ptr);
43 static void node_established_contact(struct tipc_node *n_ptr);
85 struct tipc_node *n_ptr, *temp_node; in tipc_node_create() local
89 n_ptr = tipc_node_find(addr); in tipc_node_create()
90 if (n_ptr) { in tipc_node_create()
92 return n_ptr; in tipc_node_create()
95 n_ptr = kzalloc(sizeof(*n_ptr), GFP_ATOMIC); in tipc_node_create()
96 if (!n_ptr) { in tipc_node_create()
102 n_ptr->addr = addr; in tipc_node_create()
103 spin_lock_init(&n_ptr->lock); in tipc_node_create()
[all …]
Dnode.h113 void tipc_node_delete(struct tipc_node *n_ptr);
114 void tipc_node_attach_link(struct tipc_node *n_ptr, struct link *l_ptr);
115 void tipc_node_detach_link(struct tipc_node *n_ptr, struct link *l_ptr);
116 void tipc_node_link_down(struct tipc_node *n_ptr, struct link *l_ptr);
117 void tipc_node_link_up(struct tipc_node *n_ptr, struct link *l_ptr);
118 int tipc_node_active_links(struct tipc_node *n_ptr);
119 int tipc_node_redundant_links(struct tipc_node *n_ptr);
120 int tipc_node_is_up(struct tipc_node *n_ptr);
124 static inline void tipc_node_lock(struct tipc_node *n_ptr) in tipc_node_lock() argument
126 spin_lock_bh(&n_ptr->lock); in tipc_node_lock()
[all …]
Dbcast.c162 static void bclink_set_gap(struct tipc_node *n_ptr) in bclink_set_gap() argument
164 struct sk_buff *buf = n_ptr->bclink.deferred_head; in bclink_set_gap()
166 n_ptr->bclink.gap_after = n_ptr->bclink.gap_to = in bclink_set_gap()
167 mod(n_ptr->bclink.last_in); in bclink_set_gap()
169 n_ptr->bclink.gap_to = mod(buf_seqno(buf) - 1); in bclink_set_gap()
225 void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked) in tipc_bclink_acknowledge() argument
231 if (less_eq(acked, n_ptr->bclink.acked)) in tipc_bclink_acknowledge()
239 while (crs && less_eq(buf_seqno(crs), n_ptr->bclink.acked)) in tipc_bclink_acknowledge()
255 n_ptr->bclink.acked = acked; in tipc_bclink_acknowledge()
274 static void bclink_send_ack(struct tipc_node *n_ptr) in bclink_send_ack() argument
[all …]
Ddiscover.c122 struct tipc_node *n_ptr; in tipc_disc_recv_msg() local
154 n_ptr = tipc_node_find(orig); in tipc_disc_recv_msg()
155 if (!n_ptr) { in tipc_disc_recv_msg()
156 n_ptr = tipc_node_create(orig); in tipc_disc_recv_msg()
157 if (!n_ptr) in tipc_disc_recv_msg()
160 tipc_node_lock(n_ptr); in tipc_disc_recv_msg()
163 if (n_ptr->cleanup_required) { in tipc_disc_recv_msg()
164 tipc_node_unlock(n_ptr); in tipc_disc_recv_msg()
168 link = n_ptr->links[b_ptr->identity]; in tipc_disc_recv_msg()
172 link = tipc_link_create(n_ptr, b_ptr, &media_addr); in tipc_disc_recv_msg()
[all …]
Dlink.c303 struct link *tipc_link_create(struct tipc_node *n_ptr, in tipc_link_create() argument
311 u32 peer = n_ptr->addr; in tipc_link_create()
313 if (n_ptr->link_cnt >= 2) { in tipc_link_create()
314 tipc_addr_string_fill(addr_string, n_ptr->addr); in tipc_link_create()
319 if (n_ptr->links[b_ptr->identity]) { in tipc_link_create()
320 tipc_addr_string_fill(addr_string, n_ptr->addr); in tipc_link_create()
341 l_ptr->owner = n_ptr; in tipc_link_create()
365 tipc_node_attach_link(n_ptr, l_ptr); in tipc_link_create()
946 struct tipc_node *n_ptr; in tipc_link_send() local
950 n_ptr = tipc_node_find(dest); in tipc_link_send()
[all …]
Dbcast.h94 void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked);
98 u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr);
99 void tipc_bclink_check_gap(struct tipc_node *n_ptr, u32 seqno);
Dname_distr.c111 struct tipc_node *n_ptr; in named_cluster_distribute() local
113 list_for_each_entry(n_ptr, &tipc_node_list, list) { in named_cluster_distribute()
114 if (tipc_node_active_links(n_ptr)) { in named_cluster_distribute()
118 msg_set_destnode(buf_msg(buf_copy), n_ptr->addr); in named_cluster_distribute()
119 tipc_link_send(buf_copy, n_ptr->addr, n_ptr->addr); in named_cluster_distribute()
Dbearer.c600 struct tipc_node *n_ptr = l_ptr->owner; in tipc_block_bearer() local
602 spin_lock_bh(&n_ptr->lock); in tipc_block_bearer()
604 spin_unlock_bh(&n_ptr->lock); in tipc_block_bearer()
Dlink.h210 struct link *tipc_link_create(struct tipc_node *n_ptr,