Lines Matching refs:x25

35 	struct x25_sock *x25 = x25_sk(sk);  in x25_queue_rx_frame()  local
38 x25->fraglen += skb->len; in x25_queue_rx_frame()
39 skb_queue_tail(&x25->fragment_queue, skb); in x25_queue_rx_frame()
44 if (x25->fraglen > 0) { /* End of fragment */ in x25_queue_rx_frame()
45 int len = x25->fraglen + skb->len; in x25_queue_rx_frame()
52 skb_queue_tail(&x25->fragment_queue, skb); in x25_queue_rx_frame()
56 skbo = skb_dequeue(&x25->fragment_queue); in x25_queue_rx_frame()
62 skb_dequeue(&x25->fragment_queue)) != NULL) { in x25_queue_rx_frame()
63 skb_pull(skbo, (x25->neighbour->extended) ? in x25_queue_rx_frame()
71 x25->fraglen = 0; in x25_queue_rx_frame()
91 struct x25_sock *x25 = x25_sk(sk); in x25_state1_machine() local
97 x25->condition = 0x00; in x25_state1_machine()
98 x25->vs = 0; in x25_state1_machine()
99 x25->va = 0; in x25_state1_machine()
100 x25->vr = 0; in x25_state1_machine()
101 x25->vl = 0; in x25_state1_machine()
102 x25->state = X25_STATE_3; in x25_state1_machine()
118 len = x25_parse_facilities(skb, &x25->facilities, in x25_state1_machine()
119 &x25->dte_facilities, in x25_state1_machine()
120 &x25->vc_facil_mask); in x25_state1_machine()
132 skb_copy_bits(skb, 0, x25->calluserdata.cuddata, in x25_state1_machine()
134 x25->calluserdata.cudlength = skb->len; in x25_state1_machine()
142 x25->causediag.cause = 0x01; in x25_state1_machine()
143 x25->causediag.diagnostic = 0x48; in x25_state1_machine()
165 x25->state = X25_STATE_2; in x25_state1_machine()
212 struct x25_sock *x25 = x25_sk(sk); in x25_state3_machine() local
214 modulus = (x25->neighbour->extended) ? X25_EMODULUS : X25_SMODULUS; in x25_state3_machine()
221 x25->condition = 0x00; in x25_state3_machine()
222 x25->vs = 0; in x25_state3_machine()
223 x25->vr = 0; in x25_state3_machine()
224 x25->va = 0; in x25_state3_machine()
225 x25->vl = 0; in x25_state3_machine()
243 x25->condition = 0x00; in x25_state3_machine()
244 x25->vs = 0; in x25_state3_machine()
245 x25->vr = 0; in x25_state3_machine()
246 x25->va = 0; in x25_state3_machine()
247 x25->vl = 0; in x25_state3_machine()
248 x25->state = X25_STATE_4; in x25_state3_machine()
252 x25->condition |= X25_COND_PEER_RX_BUSY; in x25_state3_machine()
254 x25->condition &= ~X25_COND_PEER_RX_BUSY; in x25_state3_machine()
260 x25->condition &= ~X25_COND_PEER_RX_BUSY; in x25_state3_machine()
261 if ((ns != x25->vr) || !x25_validate_nr(sk, nr)) { in x25_state3_machine()
265 x25->condition = 0x00; in x25_state3_machine()
266 x25->vs = 0; in x25_state3_machine()
267 x25->vr = 0; in x25_state3_machine()
268 x25->va = 0; in x25_state3_machine()
269 x25->vl = 0; in x25_state3_machine()
270 x25->state = X25_STATE_4; in x25_state3_machine()
274 if (ns == x25->vr) { in x25_state3_machine()
276 x25->vr = (x25->vr + 1) % modulus; in x25_state3_machine()
283 x25->condition = 0x00; in x25_state3_machine()
284 x25->vs = 0; in x25_state3_machine()
285 x25->vr = 0; in x25_state3_machine()
286 x25->va = 0; in x25_state3_machine()
287 x25->vl = 0; in x25_state3_machine()
288 x25->state = X25_STATE_4; in x25_state3_machine()
293 x25->condition |= X25_COND_OWN_RX_BUSY; in x25_state3_machine()
299 if (((x25->vl + x25->facilities.winsize_in) % modulus) == x25->vr) { in x25_state3_machine()
300 x25->condition &= ~X25_COND_ACK_PENDING; in x25_state3_machine()
304 x25->condition |= X25_COND_ACK_PENDING; in x25_state3_machine()
310 clear_bit(X25_INTERRUPT_FLAG, &x25->flags); in x25_state3_machine()
318 skb_queue_tail(&x25->interrupt_in_queue, skb); in x25_state3_machine()
334 x25->state = X25_STATE_2; in x25_state3_machine()
346 struct x25_sock *x25 = x25_sk(sk); in x25_state4_machine() local
355 x25->condition = 0x00; in x25_state4_machine()
356 x25->va = 0; in x25_state4_machine()
357 x25->vr = 0; in x25_state4_machine()
358 x25->vs = 0; in x25_state4_machine()
359 x25->vl = 0; in x25_state4_machine()
360 x25->state = X25_STATE_3; in x25_state4_machine()
380 x25->state = X25_STATE_2; in x25_state4_machine()
392 struct x25_sock *x25 = x25_sk(sk); in x25_state5_machine() local
398 x25->state = X25_STATE_2; in x25_state5_machine()
417 struct x25_sock *x25 = x25_sk(sk); in x25_process_rx_frame() local
420 if (x25->state == X25_STATE_0) in x25_process_rx_frame()
425 switch (x25->state) { in x25_process_rx_frame()