Lines Matching refs:ccount
102 unsigned ccount; /* 12-bit coherency count (seqno) */ member
293 state->ccount = MPPE_CCOUNT_SPACE - 1; in mppe_init()
369 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress()
372 state->ccount); in mppe_compress()
373 put_unaligned_be16(state->ccount, obuf); in mppe_compress()
376 ((state->ccount & 0xff) == 0xff) || /* "flag" packet */ in mppe_compress()
438 unsigned ccount; in mppe_decompress() local
463 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress()
466 state->unit, ccount); in mppe_decompress()
482 if (state->stateful && ((ccount & 0xff) == 0xff) && !flushed) { in mppe_decompress()
495 if ((ccount - state->ccount) % MPPE_CCOUNT_SPACE in mppe_decompress()
502 while (state->ccount != ccount) { in mppe_decompress()
504 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
510 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
511 if (ccount != state->ccount) { in mppe_decompress()
527 while ((ccount & ~0xff) != in mppe_decompress()
528 (state->ccount & ~0xff)) { in mppe_decompress()
530 state->ccount = in mppe_decompress()
531 (state->ccount + in mppe_decompress()
537 state->ccount = ccount; in mppe_decompress()