tag | line | file | source code |
comp | 86 | drivers/net/slhc.c | struct slcompress *comp; |
comp | 88 | drivers/net/slhc.c | comp = (struct slcompress *)kmalloc(sizeof(struct slcompress), |
comp | 90 | drivers/net/slhc.c | if (! comp) |
comp | 93 | drivers/net/slhc.c | memset(comp, 0, sizeof(struct slcompress)); |
comp | 96 | drivers/net/slhc.c | comp->rstate = |
comp | 99 | drivers/net/slhc.c | if (! comp->rstate) |
comp | 101 | drivers/net/slhc.c | memset(comp->rstate, 0, rslots * sizeof(struct cstate)); |
comp | 102 | drivers/net/slhc.c | comp->rslot_limit = rslots - 1; |
comp | 106 | drivers/net/slhc.c | comp->tstate = |
comp | 109 | drivers/net/slhc.c | if (! comp->tstate) |
comp | 111 | drivers/net/slhc.c | memset(comp->tstate, 0, rslots * sizeof(struct cstate)); |
comp | 112 | drivers/net/slhc.c | comp->tslot_limit = tslots - 1; |
comp | 115 | drivers/net/slhc.c | comp->xmit_oldest = 0; |
comp | 116 | drivers/net/slhc.c | comp->xmit_current = 255; |
comp | 117 | drivers/net/slhc.c | comp->recv_current = 255; |
comp | 124 | drivers/net/slhc.c | comp->flags |= SLF_TOSS; |
comp | 127 | drivers/net/slhc.c | ts = comp->tstate; |
comp | 128 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
comp | 132 | drivers/net/slhc.c | ts[0].next = &(ts[comp->tslot_limit]); |
comp | 135 | drivers/net/slhc.c | return comp; |
comp | 141 | drivers/net/slhc.c | slhc_free(struct slcompress *comp) |
comp | 143 | drivers/net/slhc.c | if ( comp == NULLSLCOMPR ) |
comp | 146 | drivers/net/slhc.c | if ( comp->rstate != NULLSLSTATE ) |
comp | 147 | drivers/net/slhc.c | kfree( comp->rstate ); |
comp | 149 | drivers/net/slhc.c | if ( comp->tstate != NULLSLSTATE ) |
comp | 150 | drivers/net/slhc.c | kfree( comp->tstate ); |
comp | 152 | drivers/net/slhc.c | kfree( comp ); |
comp | 214 | drivers/net/slhc.c | slhc_compress(struct slcompress *comp, unsigned char *icp, int isize, |
comp | 217 | drivers/net/slhc.c | register struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); |
comp | 237 | drivers/net/slhc.c | comp->sls_o_nontcp++; |
comp | 239 | drivers/net/slhc.c | comp->sls_o_tcp++; |
comp | 255 | drivers/net/slhc.c | comp->sls_o_tcp++; |
comp | 284 | drivers/net/slhc.c | comp->sls_o_searches++; |
comp | 295 | drivers/net/slhc.c | comp->sls_o_misses++; |
comp | 296 | drivers/net/slhc.c | comp->xmit_oldest = lcs->cs_this; |
comp | 308 | drivers/net/slhc.c | comp->xmit_oldest = lcs->cs_this; |
comp | 434 | drivers/net/slhc.c | if(compress_cid == 0 || comp->xmit_current != cs->cs_this){ |
comp | 439 | drivers/net/slhc.c | comp->xmit_current = cs->cs_this; |
comp | 450 | drivers/net/slhc.c | comp->sls_o_compressed++; |
comp | 465 | drivers/net/slhc.c | comp->xmit_current = cs->cs_this; |
comp | 466 | drivers/net/slhc.c | comp->sls_o_uncompressed++; |
comp | 476 | drivers/net/slhc.c | slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize) |
comp | 487 | drivers/net/slhc.c | comp->sls_i_compressed++; |
comp | 489 | drivers/net/slhc.c | comp->sls_i_error++; |
comp | 499 | drivers/net/slhc.c | if(x < 0 || x > comp->rslot_limit) |
comp | 502 | drivers/net/slhc.c | comp->flags &=~ SLF_TOSS; |
comp | 503 | drivers/net/slhc.c | comp->recv_current = x; |
comp | 508 | drivers/net/slhc.c | if(comp->flags & SLF_TOSS){ |
comp | 509 | drivers/net/slhc.c | comp->sls_i_tossed++; |
comp | 514 | drivers/net/slhc.c | cs = &comp->rstate[comp->recv_current]; |
comp | 629 | drivers/net/slhc.c | comp->sls_i_error++; |
comp | 630 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 635 | drivers/net/slhc.c | slhc_remember(struct slcompress *comp, unsigned char *icp, int isize) |
comp | 646 | drivers/net/slhc.c | comp->sls_i_runt++; |
comp | 647 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 653 | drivers/net/slhc.c | comp->sls_i_runt++; |
comp | 654 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 662 | drivers/net/slhc.c | comp->sls_i_badcheck++; |
comp | 663 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 666 | drivers/net/slhc.c | if(index > comp->rslot_limit) { |
comp | 667 | drivers/net/slhc.c | comp->sls_i_error++; |
comp | 668 | drivers/net/slhc.c | return slhc_toss(comp); |
comp | 672 | drivers/net/slhc.c | cs = &comp->rstate[comp->recv_current = index]; |
comp | 673 | drivers/net/slhc.c | comp->flags &=~ SLF_TOSS; |
comp | 684 | drivers/net/slhc.c | comp->sls_i_uncompressed++; |
comp | 690 | drivers/net/slhc.c | slhc_toss(struct slcompress *comp) |
comp | 692 | drivers/net/slhc.c | if ( comp == NULLSLCOMPR ) |
comp | 695 | drivers/net/slhc.c | comp->flags |= SLF_TOSS; |
comp | 700 | drivers/net/slhc.c | void slhc_i_status(struct slcompress *comp) |
comp | 702 | drivers/net/slhc.c | if (comp != NULLSLCOMPR) { |
comp | 704 | drivers/net/slhc.c | comp->sls_i_compressed, |
comp | 705 | drivers/net/slhc.c | comp->sls_i_uncompressed, |
comp | 706 | drivers/net/slhc.c | comp->sls_i_error, |
comp | 707 | drivers/net/slhc.c | comp->sls_i_tossed); |
comp | 712 | drivers/net/slhc.c | void slhc_o_status(struct slcompress *comp) |
comp | 714 | drivers/net/slhc.c | if (comp != NULLSLCOMPR) { |
comp | 716 | drivers/net/slhc.c | comp->sls_o_compressed, |
comp | 717 | drivers/net/slhc.c | comp->sls_o_uncompressed, |
comp | 718 | drivers/net/slhc.c | comp->sls_o_tcp, |
comp | 719 | drivers/net/slhc.c | comp->sls_o_nontcp); |
comp | 721 | drivers/net/slhc.c | comp->sls_o_searches, |
comp | 722 | drivers/net/slhc.c | comp->sls_o_misses); |
comp | 173 | drivers/net/slhc.h | void slhc_free __ARGS((struct slcompress *comp)); |
comp | 175 | drivers/net/slhc.h | int slhc_compress __ARGS((struct slcompress *comp, unsigned char *icp, |
comp | 178 | drivers/net/slhc.h | int slhc_uncompress __ARGS((struct slcompress *comp, unsigned char *icp, |
comp | 180 | drivers/net/slhc.h | int slhc_remember __ARGS((struct slcompress *comp, unsigned char *icp, |
comp | 182 | drivers/net/slhc.h | int slhc_toss __ARGS((struct slcompress *comp)); |
comp | 184 | drivers/net/slhc.h | void slhc_i_status __ARGS((struct slcompress *comp)); |
comp | 185 | drivers/net/slhc.h | void slhc_o_status __ARGS((struct slcompress *comp)); |