Lines Matching refs:ccount
108 unsigned ccount; /* 12-bit coherency count (seqno) */ member
324 state->ccount = MPPE_CCOUNT_SPACE - 1; in mppe_init()
402 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress()
405 state->ccount); in mppe_compress()
406 put_unaligned_be16(state->ccount, obuf); in mppe_compress()
409 ((state->ccount & 0xff) == 0xff) || /* "flag" packet */ in mppe_compress()
480 unsigned ccount; in mppe_decompress() local
507 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress()
510 state->unit, ccount); in mppe_decompress()
526 if (state->stateful && ((ccount & 0xff) == 0xff) && !flushed) { in mppe_decompress()
551 while (state->ccount != ccount) { in mppe_decompress()
553 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
559 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
560 if (ccount != state->ccount) { in mppe_decompress()
576 while ((ccount & ~0xff) != in mppe_decompress()
577 (state->ccount & ~0xff)) { in mppe_decompress()
579 state->ccount = in mppe_decompress()
580 (state->ccount + in mppe_decompress()
586 state->ccount = ccount; in mppe_decompress()