tag | line | file | source code |
comp | 119 | arch/alpha/boot/tools/build.c | qsort(shdr, fhdr.f_nscns, sizeof(shdr[1]), comp); |
comp | 98 | drivers/net/slhc.c | struct slcompress *comp; |
comp | 100 | drivers/net/slhc.c | comp = (struct slcompress *)kmalloc(sizeof(struct slcompress), |
comp | 102 | drivers/net/slhc.c | if (! comp) |
comp | 105 | drivers/net/slhc.c | memset(comp, 0, sizeof(struct slcompress)); |
comp | 108 | drivers/net/slhc.c | comp->rstate = |
comp | 111 | drivers/net/slhc.c | if (! comp->rstate) |
comp | 113 | drivers/net/slhc.c | kfree((unsigned char *)comp); |
comp | 116 | drivers/net/slhc.c | memset(comp->rstate, 0, rslots * sizeof(struct cstate)); |
comp | 117 | drivers/net/slhc.c | comp->rslot_limit = rslots - 1; |
comp | 121 | drivers/net/slhc.c | comp->tstate = |
comp | 124 | drivers/net/slhc.c | if (! comp->tstate) |
comp | 126 | drivers/net/slhc.c | kfree((unsigned char *)comp->rstate); |
comp | 127 | drivers/net/slhc.c | kfree((unsigned char *)comp); |
comp | 130 | drivers/net/slhc.c | memset(comp->tstate, 0, rslots * sizeof(struct cstate)); |
comp | 131 | drivers/net/slhc.c | comp->tslot_limit = tslots - 1; |
comp | 134 | drivers/net/slhc.c | comp->xmit_oldest = 0; |
comp | 135 | drivers/net/slhc.c | comp->xmit_current = 255; |
comp | 136 | drivers/net/slhc.c | comp->recv_current = 255; |
comp | 143 | drivers/net/slhc.c | comp->flags |= SLF_TOSS; |
comp | 146 | drivers/net/slhc.c | ts = comp->tstate; |
comp | 147 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
comp | 151 | drivers/net/slhc.c | ts[0].next = &(ts[comp->tslot_limit]); |
comp | 157 | drivers/net/slhc.c | return comp; |
comp | 163 | drivers/net/slhc.c | slhc_free(struct slcompress *comp) |
comp | 165 | drivers/net/slhc.c | if ( comp == NULLSLCOMPR ) |
comp | 168 | drivers/net/slhc.c | if ( comp->rstate != NULLSLSTATE ) |
comp | 169 | drivers/net/slhc.c | kfree( comp->rstate ); |
comp | 171 | drivers/net/slhc.c | if ( comp->tstate != NULLSLSTATE ) |
comp | 172 | drivers/net/slhc.c | kfree( comp->tstate ); |
comp | 177 | drivers/net/slhc.c | kfree( comp ); |
comp | 239 | drivers/net/slhc.c | slhc_compress(struct slcompress *comp, unsigned char *icp, int isize, |
comp | 242 | drivers/net/slhc.c | register struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); |
comp | 260 | drivers/net/slhc.c | comp->sls_o_nontcp++; |
comp | 262 | drivers/net/slhc.c | comp->sls_o_tcp++; |
comp | 276 | drivers/net/slhc.c | comp->sls_o_tcp++; |
comp | 305 | drivers/net/slhc.c | comp->sls_o_searches++; |
comp | 316 | drivers/net/slhc.c | comp->sls_o_misses++; |
comp | 317 | drivers/net/slhc.c | comp->xmit_oldest = lcs->cs_this; |
comp | 328 | drivers/net/slhc.c | comp->xmit_oldest = lcs->cs_this; |
comp | 450 | drivers/net/slhc.c | if(compress_cid == 0 || comp->xmit_current != cs->cs_this){ |
comp | 455 | drivers/net/slhc.c | comp->xmit_current = cs->cs_this; |
comp | 465 | drivers/net/slhc.c | comp->sls_o_compressed++; |
comp | 480 | drivers/net/slhc.c | comp->xmit_current = cs->cs_this; |
comp | 481 | drivers/net/slhc.c | comp->sls_o_uncompressed++; |
comp | 491 | drivers/net/slhc.c | slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize) |
comp | 502 | drivers/net/slhc.c | comp->sls_i_compressed++; |
comp | 504 | drivers/net/slhc.c | comp->sls_i_error++; |
comp | 513 | drivers/net/slhc.c | if(x < 0 || x > comp->rslot_limit) |
comp | 516 | drivers/net/slhc.c | comp->flags &=~ SLF_TOSS; |
comp | 517 | drivers/net/slhc.c | comp->recv_current = x; |
comp | 522 | drivers/net/slhc.c | if(comp->flags & SLF_TOSS){ |
comp | 523 | drivers/net/slhc.c | comp->sls_i_tossed++; |
comp | 527 | drivers/net/slhc.c | cs = &comp->rstate[comp->recv_current]; |
comp | 633 | drivers/net/slhc.c | comp->sls_i_error++; |
comp | 634 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 639 | drivers/net/slhc.c | slhc_remember(struct slcompress *comp, unsigned char *icp, int isize) |
comp | 650 | drivers/net/slhc.c | comp->sls_i_runt++; |
comp | 651 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 657 | drivers/net/slhc.c | comp->sls_i_runt++; |
comp | 658 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 666 | drivers/net/slhc.c | comp->sls_i_badcheck++; |
comp | 667 | drivers/net/slhc.c | return slhc_toss( comp ); |
comp | 670 | drivers/net/slhc.c | if(index > comp->rslot_limit) { |
comp | 671 | drivers/net/slhc.c | comp->sls_i_error++; |
comp | 672 | drivers/net/slhc.c | return slhc_toss(comp); |
comp | 676 | drivers/net/slhc.c | cs = &comp->rstate[comp->recv_current = index]; |
comp | 677 | drivers/net/slhc.c | comp->flags &=~ SLF_TOSS; |
comp | 688 | drivers/net/slhc.c | comp->sls_i_uncompressed++; |
comp | 694 | drivers/net/slhc.c | slhc_toss(struct slcompress *comp) |
comp | 696 | drivers/net/slhc.c | if ( comp == NULLSLCOMPR ) |
comp | 699 | drivers/net/slhc.c | comp->flags |= SLF_TOSS; |
comp | 704 | drivers/net/slhc.c | void slhc_i_status(struct slcompress *comp) |
comp | 706 | drivers/net/slhc.c | if (comp != NULLSLCOMPR) { |
comp | 708 | drivers/net/slhc.c | comp->sls_i_compressed, |
comp | 709 | drivers/net/slhc.c | comp->sls_i_uncompressed, |
comp | 710 | drivers/net/slhc.c | comp->sls_i_error, |
comp | 711 | drivers/net/slhc.c | comp->sls_i_tossed); |
comp | 716 | drivers/net/slhc.c | void slhc_o_status(struct slcompress *comp) |
comp | 718 | drivers/net/slhc.c | if (comp != NULLSLCOMPR) { |
comp | 720 | drivers/net/slhc.c | comp->sls_o_compressed, |
comp | 721 | drivers/net/slhc.c | comp->sls_o_uncompressed, |
comp | 722 | drivers/net/slhc.c | comp->sls_o_tcp, |
comp | 723 | drivers/net/slhc.c | comp->sls_o_nontcp); |
comp | 725 | drivers/net/slhc.c | comp->sls_o_searches, |
comp | 726 | 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)); |
comp | 751 | drivers/net/slip.c | struct slcompress *comp; |
comp | 767 | drivers/net/slip.c | comp = sl->slcomp; |
comp | 768 | drivers/net/slip.c | if (comp) { |
comp | 769 | drivers/net/slip.c | stats.rx_fifo_errors += comp->sls_i_compressed; |
comp | 770 | drivers/net/slip.c | stats.rx_dropped += comp->sls_i_tossed; |
comp | 771 | drivers/net/slip.c | stats.tx_fifo_errors += comp->sls_o_compressed; |
comp | 772 | drivers/net/slip.c | stats.collisions += comp->sls_o_misses; |