Lines Matching +full:fail +full:- +full:fast
5 * randomly fail to work with new releases, misbehave and/or generally
22 * apr/04/15 Shaun Pereira Fast select with no
41 skb_queue_purge(&sk->sk_write_queue); in x25_clear_queues()
42 skb_queue_purge(&x25->ack_queue); in x25_clear_queues()
43 skb_queue_purge(&x25->interrupt_in_queue); in x25_clear_queues()
44 skb_queue_purge(&x25->interrupt_out_queue); in x25_clear_queues()
45 skb_queue_purge(&x25->fragment_queue); in x25_clear_queues()
51 * acknowledged. This replaces the boxes labelled "V(a) <- N(r)" on the
58 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS; in x25_frames_acked()
61 * Remove all the ack-ed frames from the ack queue. in x25_frames_acked()
63 if (x25->va != nr) in x25_frames_acked()
64 while (skb_peek(&x25->ack_queue) && x25->va != nr) { in x25_frames_acked()
65 skb = skb_dequeue(&x25->ack_queue); in x25_frames_acked()
67 x25->va = (x25->va + 1) % modulus; in x25_frames_acked()
76 * Requeue all the un-ack-ed frames on the output queue to be picked in x25_requeue_frames()
80 while ((skb = skb_dequeue(&x25_sk(sk)->ack_queue)) != NULL) { in x25_requeue_frames()
82 skb_queue_head(&sk->sk_write_queue, skb); in x25_requeue_frames()
84 skb_append(skb_prev, skb, &sk->sk_write_queue); in x25_requeue_frames()
96 unsigned short vc = x25->va; in x25_validate_nr()
97 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS; in x25_validate_nr()
99 while (vc != x25->vs) { in x25_validate_nr()
105 return nr == x25->vs ? 1 : 0; in x25_validate_nr()
132 case X25_CALL_ACCEPTED: /* fast sel with no restr on resp */ in x25_write_internal()
133 if (x25->facilities.reverse & 0x80) { in x25_write_internal()
168 lci1 = (x25->lci >> 8) & 0x0F; in x25_write_internal()
169 lci2 = (x25->lci >> 0) & 0xFF; in x25_write_internal()
171 if (x25->neighbour->extended) { in x25_write_internal()
187 len = x25_addr_aton(addresses, &x25->dest_addr, in x25_write_internal()
188 &x25->source_addr); in x25_write_internal()
192 &x25->facilities, in x25_write_internal()
193 &x25->dte_facilities, in x25_write_internal()
194 x25->neighbour->global_facil_mask); in x25_write_internal()
197 dptr = skb_put(skb, x25->calluserdata.cudlength); in x25_write_internal()
198 memcpy(dptr, x25->calluserdata.cuddata, in x25_write_internal()
199 x25->calluserdata.cudlength); in x25_write_internal()
200 x25->calluserdata.cudlength = 0; in x25_write_internal()
208 &x25->facilities, in x25_write_internal()
209 &x25->dte_facilities, in x25_write_internal()
210 x25->vc_facil_mask); in x25_write_internal()
214 /* fast select with no restriction on response in x25_write_internal()
217 if(x25->facilities.reverse & 0x80) { in x25_write_internal()
219 x25->calluserdata.cudlength); in x25_write_internal()
220 memcpy(dptr, x25->calluserdata.cuddata, in x25_write_internal()
221 x25->calluserdata.cudlength); in x25_write_internal()
223 x25->calluserdata.cudlength = 0; in x25_write_internal()
229 *dptr++ = x25->causediag.cause; in x25_write_internal()
230 *dptr++ = x25->causediag.diagnostic; in x25_write_internal()
243 if (x25->neighbour->extended) { in x25_write_internal()
246 *dptr++ = (x25->vr << 1) & 0xFE; in x25_write_internal()
250 *dptr++ |= (x25->vr << 5) & 0xE0; in x25_write_internal()
262 x25_transmit_link(skb, x25->neighbour); in x25_write_internal()
276 frame = skb->data; in x25_decode()
297 if (x25->neighbour->extended) { in x25_decode()
303 frame = skb->data; in x25_decode()
317 if (x25->neighbour->extended) { in x25_decode()
321 frame = skb->data; in x25_decode()
355 x25->lci = 0; in x25_disconnect()
356 x25->state = X25_STATE_0; in x25_disconnect()
358 x25->causediag.cause = cause; in x25_disconnect()
359 x25->causediag.diagnostic = diagnostic; in x25_disconnect()
361 sk->sk_state = TCP_CLOSE; in x25_disconnect()
362 sk->sk_err = reason; in x25_disconnect()
363 sk->sk_shutdown |= SEND_SHUTDOWN; in x25_disconnect()
366 sk->sk_state_change(sk); in x25_disconnect()
372 * Clear an own-rx-busy condition and tell the peer about this, provided
379 if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf >> 1) && in x25_check_rbuf()
380 (x25->condition & X25_COND_OWN_RX_BUSY)) { in x25_check_rbuf()
381 x25->condition &= ~X25_COND_OWN_RX_BUSY; in x25_check_rbuf()
382 x25->condition &= ~X25_COND_ACK_PENDING; in x25_check_rbuf()
383 x25->vl = x25->vr; in x25_check_rbuf()