tag | line | file | source code |
sccfreelist | 146 | drivers/char/scc.c | static struct sccbuf *sccfreelist[MAX_IBUFS] = {0}; |
sccfreelist | 233 | drivers/char/scc.c | sccfreelist[i] = sccb; |
sccfreelist | 234 | drivers/char/scc.c | sccfreelist[i]->bp = bp; |
sccfreelist | 235 | drivers/char/scc.c | memset(sccfreelist[i]->bp ,0,sizeof(struct mbuf)); |
sccfreelist | 236 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
sccfreelist | 237 | drivers/char/scc.c | sccfreelist[i]->bp->type = 0; |
sccfreelist | 238 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 239 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
sccfreelist | 253 | drivers/char/scc.c | if (sccfreelist[i]->inuse) |
sccfreelist | 255 | drivers/char/scc.c | switch (sccfreelist[i]->bp->type) |
sccfreelist | 282 | drivers/char/scc.c | if(sccfreelist[i]->inuse == 0) |
sccfreelist | 284 | drivers/char/scc.c | sccfreelist[i]->inuse = 1; |
sccfreelist | 285 | drivers/char/scc.c | sccfreelist[i]->bp->type = type; |
sccfreelist | 286 | drivers/char/scc.c | sccfreelist[i]->bp->next = NULLBUF; |
sccfreelist | 287 | drivers/char/scc.c | sccfreelist[i]->bp->anext = NULLBUF; |
sccfreelist | 288 | drivers/char/scc.c | sccfreelist[i]->bp->dup = NULLBUF; |
sccfreelist | 289 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
sccfreelist | 290 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 1; |
sccfreelist | 291 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 292 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
sccfreelist | 293 | drivers/char/scc.c | sccfreelist[i]->bp->time_out = CURRENT_TIME + 300; |
sccfreelist | 296 | drivers/char/scc.c | return sccfreelist[i]->bp; |
sccfreelist | 334 | drivers/char/scc.c | if(sccfreelist[i]->inuse == 1) |
sccfreelist | 335 | drivers/char/scc.c | if(sccfreelist[i]->bp->type == BT_TRANSMIT) |
sccfreelist | 336 | drivers/char/scc.c | if(sccfreelist[i]->bp->time_out < CURRENT_TIME) |
sccfreelist | 338 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 339 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 340 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
sccfreelist | 353 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp->dup) |
sccfreelist | 355 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
sccfreelist | 358 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
sccfreelist | 361 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 362 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 363 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
sccfreelist | 364 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
sccfreelist | 375 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp) |
sccfreelist | 377 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
sccfreelist | 380 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
sccfreelist | 383 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
sccfreelist | 384 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
sccfreelist | 385 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |