taglinefilesource code
sccfreelist146drivers/char/scc.cstatic struct sccbuf *sccfreelist[MAX_IBUFS] = {0};
sccfreelist233drivers/char/scc.csccfreelist[i] = sccb;
sccfreelist234drivers/char/scc.csccfreelist[i]->bp = bp;
sccfreelist235drivers/char/scc.cmemset(sccfreelist[i]->bp ,0,sizeof(struct mbuf));
sccfreelist236drivers/char/scc.csccfreelist[i]->inuse = 0;
sccfreelist237drivers/char/scc.csccfreelist[i]->bp->type = 0;
sccfreelist238drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist239drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
sccfreelist253drivers/char/scc.cif (sccfreelist[i]->inuse)
sccfreelist255drivers/char/scc.cswitch (sccfreelist[i]->bp->type)
sccfreelist282drivers/char/scc.cif(sccfreelist[i]->inuse == 0)
sccfreelist284drivers/char/scc.csccfreelist[i]->inuse = 1;
sccfreelist285drivers/char/scc.csccfreelist[i]->bp->type = type;
sccfreelist286drivers/char/scc.csccfreelist[i]->bp->next = NULLBUF;
sccfreelist287drivers/char/scc.csccfreelist[i]->bp->anext = NULLBUF;
sccfreelist288drivers/char/scc.csccfreelist[i]->bp->dup = NULLBUF;
sccfreelist289drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
sccfreelist290drivers/char/scc.csccfreelist[i]->bp->refcnt = 1;
sccfreelist291drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist292drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
sccfreelist293drivers/char/scc.csccfreelist[i]->bp->time_out = CURRENT_TIME + 300;
sccfreelist296drivers/char/scc.creturn sccfreelist[i]->bp;
sccfreelist334drivers/char/scc.cif(sccfreelist[i]->inuse == 1)
sccfreelist335drivers/char/scc.cif(sccfreelist[i]->bp->type == BT_TRANSMIT)
sccfreelist336drivers/char/scc.cif(sccfreelist[i]->bp->time_out < CURRENT_TIME)
sccfreelist338drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist339drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist340drivers/char/scc.csccfreelist[i]->inuse = 0;
sccfreelist353drivers/char/scc.cif(sccfreelist[i]->bp == bp->dup)
sccfreelist355drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
sccfreelist358drivers/char/scc.ctype,sccfreelist[i]->bp->type);
sccfreelist361drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist362drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist363drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
sccfreelist364drivers/char/scc.csccfreelist[i]->inuse = 0;
sccfreelist375drivers/char/scc.cif(sccfreelist[i]->bp == bp)
sccfreelist377drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
sccfreelist380drivers/char/scc.ctype,sccfreelist[i]->bp->type);
sccfreelist383drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
sccfreelist384drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
sccfreelist385drivers/char/scc.csccfreelist[i]->inuse = 0;