Lines Matching refs:x25

29 #include <net/x25.h>
36 struct x25_sock *x25 = x25_sk(sk);
39 skb_queue_purge(&x25->ack_queue);
40 skb_queue_purge(&x25->interrupt_in_queue);
41 skb_queue_purge(&x25->interrupt_out_queue);
42 skb_queue_purge(&x25->fragment_queue);
54 struct x25_sock *x25 = x25_sk(sk);
55 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS;
60 if (x25->va != nr)
61 while (skb_peek(&x25->ack_queue) && x25->va != nr) {
62 skb = skb_dequeue(&x25->ack_queue);
64 x25->va = (x25->va + 1) % modulus;
92 struct x25_sock *x25 = x25_sk(sk);
93 unsigned short vc = x25->va;
94 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS;
96 while (vc != x25->vs) {
102 return nr == x25->vs ? 1 : 0;
111 struct x25_sock *x25 = x25_sk(sk);
130 if (x25->facilities.reverse & 0x80) {
165 lci1 = (x25->lci >> 8) & 0x0F;
166 lci2 = (x25->lci >> 0) & 0xFF;
168 if (x25->neighbour->extended) {
184 len = x25_addr_aton(addresses, &x25->dest_addr,
185 &x25->source_addr);
188 &x25->facilities,
189 &x25->dte_facilities,
190 x25->neighbour->global_facil_mask);
192 skb_put_data(skb, x25->calluserdata.cuddata,
193 x25->calluserdata.cudlength);
194 x25->calluserdata.cudlength = 0;
202 &x25->facilities,
203 &x25->dte_facilities,
204 x25->vc_facil_mask);
210 if(x25->facilities.reverse & 0x80) {
212 x25->calluserdata.cuddata,
213 x25->calluserdata.cudlength);
215 x25->calluserdata.cudlength = 0;
221 *dptr++ = x25->causediag.cause;
222 *dptr++ = x25->causediag.diagnostic;
235 if (x25->neighbour->extended) {
238 *dptr++ = (x25->vr << 1) & 0xFE;
242 *dptr++ |= (x25->vr << 5) & 0xE0;
254 x25_transmit_link(skb, x25->neighbour);
263 struct x25_sock *x25 = x25_sk(sk);
289 if (x25->neighbour->extended) {
309 if (x25->neighbour->extended) {
341 struct x25_sock *x25 = x25_sk(sk);
346 x25->lci = 0;
347 x25->state = X25_STATE_0;
349 x25->causediag.cause = cause;
350 x25->causediag.diagnostic = diagnostic;
360 if (x25->neighbour) {
362 x25_neigh_put(x25->neighbour);
363 x25->neighbour = NULL;
374 struct x25_sock *x25 = x25_sk(sk);
377 (x25->condition & X25_COND_OWN_RX_BUSY)) {
378 x25->condition &= ~X25_COND_OWN_RX_BUSY;
379 x25->condition &= ~X25_COND_ACK_PENDING;
380 x25->vl = x25->vr;