Lines Matching +full:0 +full:x25
26 #include <net/x25.h>
35 while (pacsize-- > 0) in x25_pacsize_to_bytes()
52 int sent=0, noblock = X25_SKB_CB(skb)->flags & MSG_DONTWAIT; in x25_output()
53 struct x25_sock *x25 = x25_sk(sk); in x25_output() local
54 int header_len = x25->neighbour->extended ? X25_EXT_MIN_LEN : in x25_output()
56 int max_len = x25_pacsize_to_bytes(x25->facilities.pacsize_out); in x25_output()
65 while (skb->len > 0) { in x25_output()
93 if (skb->len > 0) { in x25_output()
94 if (x25->neighbour->extended) in x25_output()
118 struct x25_sock *x25 = x25_sk(sk); in x25_send_iframe() local
123 if (x25->neighbour->extended) { in x25_send_iframe()
124 skb->data[2] = (x25->vs << 1) & 0xFE; in x25_send_iframe()
126 skb->data[3] |= (x25->vr << 1) & 0xFE; in x25_send_iframe()
129 skb->data[2] |= (x25->vs << 1) & 0x0E; in x25_send_iframe()
130 skb->data[2] |= (x25->vr << 5) & 0xE0; in x25_send_iframe()
133 x25_transmit_link(skb, x25->neighbour); in x25_send_iframe()
141 struct x25_sock *x25 = x25_sk(sk); in x25_kick() local
143 if (x25->state != X25_STATE_3) in x25_kick()
149 if (skb_peek(&x25->interrupt_out_queue) != NULL && in x25_kick()
150 !test_and_set_bit(X25_INTERRUPT_FLAG, &x25->flags)) { in x25_kick()
152 skb = skb_dequeue(&x25->interrupt_out_queue); in x25_kick()
153 x25_transmit_link(skb, x25->neighbour); in x25_kick()
156 if (x25->condition & X25_COND_PEER_RX_BUSY) in x25_kick()
162 modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS; in x25_kick()
164 start = skb_peek(&x25->ack_queue) ? x25->vs : x25->va; in x25_kick()
165 end = (x25->va + x25->facilities.winsize_out) % modulus; in x25_kick()
170 x25->vs = start; in x25_kick()
192 x25->vs = (x25->vs + 1) % modulus; in x25_kick()
197 skb_queue_tail(&x25->ack_queue, skb); in x25_kick()
199 } while (x25->vs != end && in x25_kick()
202 x25->vl = x25->vr; in x25_kick()
203 x25->condition &= ~X25_COND_ACK_PENDING; in x25_kick()
215 struct x25_sock *x25 = x25_sk(sk); in x25_enquiry_response() local
217 if (x25->condition & X25_COND_OWN_RX_BUSY) in x25_enquiry_response()
222 x25->vl = x25->vr; in x25_enquiry_response()
223 x25->condition &= ~X25_COND_ACK_PENDING; in x25_enquiry_response()