taglinefilesource code
sccfreelist152drivers/char/scc.cstatic struct sccbuf *sccfreelist[MAX_IBUFS] = {0};
sccfreelist239drivers/char/scc.csccfreelist[i] = sccb;
sccfreelist240drivers/char/scc.csccfreelist[i]->bp = bp;
sccfreelist241drivers/char/scc.cmemset(sccfreelist[i]->bp ,0,sizeof(struct mbuf));
sccfreelist242drivers/char/scc.csccfreelist[i]->inuse = 0;
sccfreelist243drivers/char/scc.csccfreelist[i]->bp->type = 0;
sccfreelist244drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist245drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
sccfreelist259drivers/char/scc.cif (sccfreelist[i]->inuse)
sccfreelist261drivers/char/scc.cswitch (sccfreelist[i]->bp->type)
sccfreelist288drivers/char/scc.cif(sccfreelist[i]->inuse == 0)
sccfreelist290drivers/char/scc.csccfreelist[i]->inuse = 1;
sccfreelist291drivers/char/scc.csccfreelist[i]->bp->type = type;
sccfreelist292drivers/char/scc.csccfreelist[i]->bp->next = NULLBUF;
sccfreelist293drivers/char/scc.csccfreelist[i]->bp->anext = NULLBUF;
sccfreelist294drivers/char/scc.csccfreelist[i]->bp->dup = NULLBUF;
sccfreelist295drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
sccfreelist296drivers/char/scc.csccfreelist[i]->bp->refcnt = 1;
sccfreelist297drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist298drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
sccfreelist299drivers/char/scc.csccfreelist[i]->bp->time_out = CURRENT_TIME + 300;
sccfreelist302drivers/char/scc.creturn sccfreelist[i]->bp;
sccfreelist340drivers/char/scc.cif(sccfreelist[i]->inuse == 1)
sccfreelist341drivers/char/scc.cif(sccfreelist[i]->bp->type == BT_TRANSMIT)
sccfreelist342drivers/char/scc.cif(sccfreelist[i]->bp->time_out < CURRENT_TIME)
sccfreelist344drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist345drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist346drivers/char/scc.csccfreelist[i]->inuse = 0;
sccfreelist359drivers/char/scc.cif(sccfreelist[i]->bp == bp->dup)
sccfreelist361drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
sccfreelist364drivers/char/scc.ctype,sccfreelist[i]->bp->type);
sccfreelist367drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist368drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist369drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
sccfreelist370drivers/char/scc.csccfreelist[i]->inuse = 0;
sccfreelist381drivers/char/scc.cif(sccfreelist[i]->bp == bp)
sccfreelist383drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
sccfreelist386drivers/char/scc.ctype,sccfreelist[i]->bp->type);
sccfreelist389drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist390drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist391drivers/char/scc.csccfreelist[i]->inuse = 0;