• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/tipc/

Lines Matching refs:n_ptr

152 static void bclink_set_gap(struct tipc_node *n_ptr)
154 struct sk_buff *buf = n_ptr->bclink.deferred_head;
156 n_ptr->bclink.gap_after = n_ptr->bclink.gap_to =
157 mod(n_ptr->bclink.last_in);
159 n_ptr->bclink.gap_to = mod(buf_seqno(buf) - 1);
199 * @n_ptr: node that sent acknowledgement info
205 void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked)
211 if (less_eq(acked, n_ptr->bclink.acked))
219 while (crs && less_eq(buf_seqno(crs), n_ptr->bclink.acked)) {
236 n_ptr->bclink.acked = acked;
253 static void bclink_send_ack(struct tipc_node *n_ptr)
255 struct link *l_ptr = n_ptr->active_links[n_ptr->addr & 1];
267 static void bclink_send_nack(struct tipc_node *n_ptr)
272 if (!less(n_ptr->bclink.gap_after, n_ptr->bclink.gap_to))
279 INT_H_SIZE, n_ptr->addr);
281 msg_set_bcast_ack(msg, mod(n_ptr->bclink.last_in));
282 msg_set_bcgap_after(msg, n_ptr->bclink.gap_after);
283 msg_set_bcgap_to(msg, n_ptr->bclink.gap_to);
301 n_ptr->bclink.nack_sync = tipc_own_tag;
311 void tipc_bclink_check_gap(struct tipc_node *n_ptr, u32 last_sent)
313 if (!n_ptr->bclink.supported ||
314 less_eq(last_sent, mod(n_ptr->bclink.last_in)))
317 bclink_set_gap(n_ptr);
318 if (n_ptr->bclink.gap_after == n_ptr->bclink.gap_to)
319 n_ptr->bclink.gap_to = last_sent;
320 bclink_send_nack(n_ptr);
331 struct tipc_node *n_ptr = tipc_node_find(dest);
334 if (unlikely(!n_ptr || !tipc_node_is_up(n_ptr)))
336 tipc_node_lock(n_ptr);
340 my_after = n_ptr->bclink.gap_after;
341 my_to = n_ptr->bclink.gap_to;
345 n_ptr->bclink.gap_after = gap_to;
347 n_ptr->bclink.gap_to = n_ptr->bclink.gap_after;
350 n_ptr->bclink.gap_to = gap_after;
355 struct sk_buff *buf = n_ptr->bclink.deferred_head;
356 u32 prev = n_ptr->bclink.gap_to;
370 n_ptr->bclink.gap_to = gap_after;
376 if (n_ptr->bclink.gap_to != n_ptr->bclink.gap_after) {
377 bclink_send_nack(n_ptr);
378 bclink_set_gap(n_ptr);
381 tipc_node_unlock(n_ptr);
541 u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr)
543 return (n_ptr->bclink.supported &&
544 (tipc_bclink_get_last_sent() != n_ptr->bclink.acked));