Lines Matching refs:ccount
163 state->ccount = MPPE_CCOUNT_SPACE - 1; in mppe_init()
223 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress()
224 PPPDEBUG(LOG_DEBUG, ("mppe_compress[%d]: ccount %d\n", pcb->netif->num, state->ccount)); in mppe_compress()
226 pl[0] = state->ccount>>8; in mppe_compress()
227 pl[1] = state->ccount; in mppe_compress()
230 ((state->ccount & 0xff) == 0xff) || /* "flag" packet */ in mppe_compress()
283 u16_t ccount; in mppe_decompress() local
297 ccount = MPPE_CCOUNT(pl); in mppe_decompress()
299 pcb->netif->num, ccount)); in mppe_decompress()
315 if (state->stateful && ((ccount & 0xff) == 0xff) && !flushed) { in mppe_decompress()
328 if ((ccount - state->ccount) % MPPE_CCOUNT_SPACE > MPPE_CCOUNT_SPACE / 2) { in mppe_decompress()
334 while (state->ccount != ccount) { in mppe_decompress()
336 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
342 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress()
343 if (ccount != state->ccount) { in mppe_decompress()
360 while ((ccount & ~0xff) != in mppe_decompress()
361 (state->ccount & ~0xff)) { in mppe_decompress()
363 state->ccount = in mppe_decompress()
364 (state->ccount + in mppe_decompress()
370 state->ccount = ccount; in mppe_decompress()