Lines Matching defs:comp
64 #define INCR(counter) ++comp->counter;
71 sl_compress_init(struct slcompress *comp)
74 struct cstate *tstate = comp->tstate;
76 memset(comp, 0, sizeof(*comp));
83 comp->last_cs = &tstate[0];
84 comp->last_recv = 255;
85 comp->last_xmit = 255;
86 comp->flags = SLF_TOSS;
95 sl_compress_setup(struct slcompress *comp, int max_state)
98 struct cstate *tstate = comp->tstate;
102 memset(comp, 0, sizeof(*comp));
105 memset(comp->tstate, 0, sizeof(comp->tstate));
106 memset(comp->rstate, 0, sizeof(comp->rstate));
114 comp->last_cs = &tstate[0];
115 comp->last_recv = 255;
116 comp->last_xmit = 255;
117 comp->flags = SLF_TOSS;
174 sl_compress_tcp(struct mbuf *m, struct ip *ip, struct slcompress *comp,
177 struct cstate *cs = comp->last_cs->cs_next;
221 struct cstate *lastcs = comp->last_cs;
242 comp->last_cs = lcs;
252 comp->last_cs = lcs;
394 if (compress_cid == 0 || comp->last_xmit != cs->cs_id) {
395 comp->last_xmit = cs->cs_id;
422 comp->last_xmit = cs->cs_id;
428 sl_uncompress_tcp(u_char **bufp, int len, u_int type, struct slcompress *comp)
435 vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen);
473 struct slcompress *comp, u_char **hdrp, u_int *hlenp)
491 cs = &comp->rstate[comp->last_recv = ip->ip_p];
492 comp->flags &=~ SLF_TOSS;
531 comp->flags &=~ SLF_TOSS;
532 comp->last_recv = *cp++;
539 if (comp->flags & SLF_TOSS) {
544 cs = &comp->rstate[comp->last_recv];
617 comp->flags |= SLF_TOSS;