Lines Matching refs:state
40 /* Structure for storing local state. */
44 unsigned int state;
766 if (ap->state & (SC_TOSS | SC_ESCAPE))
805 skb->cb[0] = ap->state;
808 ap->state = 0;
813 ap->state = SC_PREV_ERROR;
847 if ((ap->state & SC_ESCAPE) && buf[0] == PPP_ESCAPE)
853 if (flags && (ap->state & SC_TOSS) == 0) {
861 ap->state |= SC_TOSS;
863 } else if (n > 0 && (ap->state & SC_TOSS) == 0) {
884 ap->state |= SC_TOSS;
887 if (ap->state & SC_ESCAPE) {
889 ap->state &= ~SC_ESCAPE;
899 ap->state |= SC_TOSS;
903 ap->state |= SC_ESCAPE;
922 ap->state |= SC_TOSS;