Lines Matching defs:nfree
143 (SC)->freereq[(SC)->nfree++] = (N); \
145 if ((SC)->nfree == 1) \
146 wakeup(&(SC)->nfree); \
151 * XDC_RQALLOC: allocate an iorq off the free list (assume nfree > 0).
153 #define XDC_RQALLOC(XDCSC) (XDCSC)->freereq[--((XDCSC)->nfree)]
216 * [2] & of xdc_softc's "nfree" (waiting for a free iorq/iopb)
462 xdc->nfree = XDC_MAXIOPB;
1109 while (parent->nfree > 0 && bufq_peek(parent->sc_wq) != NULL)
1117 if (parent->nfree == 0) {
1162 while (xdcsc->nfree > 0 && bufq_peek(xdcsc->sc_wq) != NULL)
1321 while (xdcsc->nfree == 0) {
1329 while (xdcsc->nfree == 0) {
1330 if (tsleep(&xdcsc->nfree, PRIBIO, "xdnfree", 0))
1337 if (xdcsc->nfree)
1344 if (xdcsc->nfree == 0)
1345 panic("xdcmd nfree");
1367 * start a buffer running, assumes nfree > 0
1378 if (xdcsc->nfree == 0)
1623 while (xdcsc->nfree > 0 && bufq_peek(xdcsc->sc_wq) != NULL)
1671 int oldfree = xdcsc->nfree;
1739 if (oldfree == 0 && xdcsc->nfree)
1740 wakeup(&xdcsc->nfree);
1743 del = xdcsc->nwait + xdcsc->nrun + xdcsc->nfree + xdcsc->ndone;
2047 int nwait, nrun, nfree, ndone, whd = 0;
2052 nfree = xdcsc->nfree;
2057 if (nwait + nrun + nfree + ndone != XDC_MAXIOPB) {
2060 device_xname(xdcsc->sc_dev), nwait, nfree, nrun, ndone,
2064 for (lcv = nfree; lcv > 0; lcv--) {
2098 xdcsc->xdc->xdc_csr, xdcsc->nwait, xdcsc->nfree, xdcsc->nrun,