Lines Matching refs:state
40 /* Structure for storing local state. */
44 unsigned int state;
777 if (ap->state & (SC_TOSS | SC_ESCAPE))
816 skb->cb[0] = ap->state;
819 ap->state = 0;
824 ap->state = SC_PREV_ERROR;
859 if ((ap->state & SC_ESCAPE) && buf[0] == PPP_ESCAPE)
865 if (flags && (ap->state & SC_TOSS) == 0) {
873 ap->state |= SC_TOSS;
875 } else if (n > 0 && (ap->state & SC_TOSS) == 0) {
896 ap->state |= SC_TOSS;
899 if (ap->state & SC_ESCAPE) {
901 ap->state &= ~SC_ESCAPE;
911 ap->state |= SC_TOSS;
915 ap->state |= SC_ESCAPE;
934 ap->state |= SC_TOSS;