Lines Matching refs:comp
54 #define INCR(counter) ++comp->counter;
63 sl_compress_init(comp, max_state)
64 struct slcompress *comp;
68 register struct cstate *tstate = comp->tstate;
72 bzero((char *)comp, sizeof(*comp));
75 bzero((char *)comp->tstate, sizeof(comp->tstate));
76 bzero((char *)comp->rstate, sizeof(comp->rstate));
84 comp->last_cs = &tstate[0];
85 comp->last_recv = 255;
86 comp->last_xmit = 255;
87 comp->flags = SLF_TOSS;
147 * and "ip" must be == mtod(m, struct ip *). "comp" supplies the
155 sl_compress_tcp(m, ip, comp, compress_cid)
158 struct slcompress *comp;
161 register struct cstate *cs = comp->last_cs->cs_next;
206 register struct cstate *lastcs = comp->last_cs;
227 comp->last_cs = lcs;
239 comp->last_cs = lcs;
382 if (compress_cid == 0 || comp->last_xmit != cs->cs_id) {
383 comp->last_xmit = cs->cs_id;
409 comp->last_xmit = cs->cs_id;
415 sl_uncompress_tcp(bufp, len, type, comp)
419 struct slcompress *comp;
425 vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen);
463 sl_uncompress_tcp_core(buf, buflen, total_len, type, comp, hdrp, hlenp)
467 struct slcompress *comp;
485 cs = &comp->rstate[comp->last_recv = ip->ip_p];
486 comp->flags &=~ SLF_TOSS;
521 comp->flags &=~ SLF_TOSS;
522 comp->last_recv = *cp++;
527 if (comp->flags & SLF_TOSS) {
532 cs = &comp->rstate[comp->last_recv];
604 comp->flags |= SLF_TOSS;