Lines Matching refs:ccount
107 unsigned ccount; /* 12-bit coherency count (seqno) */ member
323 state->ccount = MPPE_CCOUNT_SPACE - 1; in mppe_init()
401 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress()
404 state->ccount); in mppe_compress()
405 put_unaligned_be16(state->ccount, obuf); in mppe_compress()
408 ((state->ccount & 0xff) == 0xff) || /* "flag" packet */ in mppe_compress()
479 unsigned ccount; in mppe_decompress() local
505 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress()
508 state->unit, ccount); in mppe_decompress()
524 if (state->stateful && ((ccount & 0xff) == 0xff) && !flushed) { in mppe_decompress()
537 if ((ccount - state->ccount) % MPPE_CCOUNT_SPACE in mppe_decompress()
544 while (state->ccount != ccount) { in mppe_decompress()
546 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
552 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
553 if (ccount != state->ccount) { in mppe_decompress()
569 while ((ccount & ~0xff) != in mppe_decompress()
570 (state->ccount & ~0xff)) { in mppe_decompress()
572 state->ccount = in mppe_decompress()
573 (state->ccount + in mppe_decompress()
579 state->ccount = ccount; in mppe_decompress()