• Home
  • Raw
  • Download

Lines Matching refs:nr

36 	struct nr_sock *nr = nr_sk(sk);  in nr_clear_queues()  local
39 skb_queue_purge(&nr->ack_queue); in nr_clear_queues()
40 skb_queue_purge(&nr->reseq_queue); in nr_clear_queues()
41 skb_queue_purge(&nr->frag_queue); in nr_clear_queues()
49 void nr_frames_acked(struct sock *sk, unsigned short nr) in nr_frames_acked() argument
57 if (nrom->va != nr) { in nr_frames_acked()
58 while (skb_peek(&nrom->ack_queue) != NULL && nrom->va != nr) { in nr_frames_acked()
88 int nr_validate_nr(struct sock *sk, unsigned short nr) in nr_validate_nr() argument
94 if (nr == vc) return 1; in nr_validate_nr()
98 return nr == nrom->vs; in nr_validate_nr()
106 struct nr_sock *nr = nr_sk(sk); in nr_in_rx_window() local
107 unsigned short vc = nr->vr; in nr_in_rx_window()
108 unsigned short vt = (nr->vl + nr->window) % NR_MODULUS; in nr_in_rx_window()
124 struct nr_sock *nr = nr_sk(sk); in nr_write_internal() local
136 len += (nr->bpqext) ? 2 : 1; in nr_write_internal()
159 timeout = nr->t1 / HZ; in nr_write_internal()
160 *dptr++ = nr->my_index; in nr_write_internal()
161 *dptr++ = nr->my_id; in nr_write_internal()
165 *dptr++ = nr->window; in nr_write_internal()
166 memcpy(dptr, &nr->user_addr, AX25_ADDR_LEN); in nr_write_internal()
171 memcpy(dptr, &nr->source_addr, AX25_ADDR_LEN); in nr_write_internal()
181 *dptr++ = nr->your_index; in nr_write_internal()
182 *dptr++ = nr->your_id; in nr_write_internal()
183 *dptr++ = nr->my_index; in nr_write_internal()
184 *dptr++ = nr->my_id; in nr_write_internal()
186 *dptr++ = nr->window; in nr_write_internal()
187 if (nr->bpqext) *dptr++ = sysctl_netrom_network_ttl_initialiser; in nr_write_internal()
192 *dptr++ = nr->your_index; in nr_write_internal()
193 *dptr++ = nr->your_id; in nr_write_internal()
200 *dptr++ = nr->your_index; in nr_write_internal()
201 *dptr++ = nr->your_id; in nr_write_internal()
203 *dptr++ = nr->vr; in nr_write_internal()