tag | line | file | source code |
sccfreelist | 152 | drivers/char/scc.c | static struct sccbuf *sccfreelist[MAX_IBUFS] = {0}; |
sccfreelist | 239 | drivers/char/scc.c | sccfreelist[i] = sccb; |
sccfreelist | 240 | drivers/char/scc.c | sccfreelist[i]->bp = bp; |
sccfreelist | 241 | drivers/char/scc.c | memset(sccfreelist[i]->bp ,0,sizeof(struct mbuf)); |
sccfreelist | 242 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
sccfreelist | 243 | drivers/char/scc.c | sccfreelist[i]->bp->type = 0; |
sccfreelist | 244 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 245 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
sccfreelist | 259 | drivers/char/scc.c | if (sccfreelist[i]->inuse) |
sccfreelist | 261 | drivers/char/scc.c | switch (sccfreelist[i]->bp->type) |
sccfreelist | 288 | drivers/char/scc.c | if(sccfreelist[i]->inuse == 0) |
sccfreelist | 290 | drivers/char/scc.c | sccfreelist[i]->inuse = 1; |
sccfreelist | 291 | drivers/char/scc.c | sccfreelist[i]->bp->type = type; |
sccfreelist | 292 | drivers/char/scc.c | sccfreelist[i]->bp->next = NULLBUF; |
sccfreelist | 293 | drivers/char/scc.c | sccfreelist[i]->bp->anext = NULLBUF; |
sccfreelist | 294 | drivers/char/scc.c | sccfreelist[i]->bp->dup = NULLBUF; |
sccfreelist | 295 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
sccfreelist | 296 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 1; |
sccfreelist | 297 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 298 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
sccfreelist | 299 | drivers/char/scc.c | sccfreelist[i]->bp->time_out = CURRENT_TIME + 300; |
sccfreelist | 302 | drivers/char/scc.c | return sccfreelist[i]->bp; |
sccfreelist | 340 | drivers/char/scc.c | if(sccfreelist[i]->inuse == 1) |
sccfreelist | 341 | drivers/char/scc.c | if(sccfreelist[i]->bp->type == BT_TRANSMIT) |
sccfreelist | 342 | drivers/char/scc.c | if(sccfreelist[i]->bp->time_out < CURRENT_TIME) |
sccfreelist | 344 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 345 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 346 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
sccfreelist | 359 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp->dup) |
sccfreelist | 361 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
sccfreelist | 364 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
sccfreelist | 367 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 368 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 369 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
sccfreelist | 370 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
sccfreelist | 381 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp) |
sccfreelist | 383 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
sccfreelist | 386 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
sccfreelist | 389 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 390 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 391 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |