Searched refs:nbufs (Results 1 – 5 of 5) sorted by relevance
173 if (hashp->nbufs == 0 && prev_bp && bp->ovfl) { in newbuf()178 hashp->nbufs++; in newbuf()188 if (hashp->nbufs || (bp->flags & BUF_PIN) || bp == hashp->cpage) { in newbuf()198 if (hashp->nbufs) in newbuf()199 hashp->nbufs--; in newbuf()305 hashp->nbufs = npages; in __buf_init()
113 int nbufs; /* Number of buffers left to member
610 unsigned int back, nbufs; in cnmac_buf_free_work() local612 nbufs = (work[2] & PIP_WQE_WORD2_IP_BUFS) >> in cnmac_buf_free_work()615 while (nbufs-- > 0) { in cnmac_buf_free_work()624 if (nbufs > 0) in cnmac_buf_free_work()1128 unsigned int back, i, nbufs; in cnmac_recv_mbuf() local1133 nbufs = (word2 & PIP_WQE_WORD2_IP_BUFS) >> PIP_WQE_WORD2_IP_BUFS_SHIFT; in cnmac_recv_mbuf()1134 if (nbufs == 0) in cnmac_recv_mbuf()1139 for (i = 0; i < nbufs; i++) { in cnmac_recv_mbuf()1176 if (i + 1 < nbufs) in cnmac_recv_mbuf()1183 *nmbuf = nbufs; in cnmac_recv_mbuf()
61 int nbufs; member69 #define ch_nbufs thisfile->nbufs749 thisfile->nbufs = 0; in ch_init()
1799 int i, nbufs = 0; in oce_alloc_rx_bufs() local1806 nbufs++; in oce_alloc_rx_bufs()1810 if (!nbufs) in oce_alloc_rx_bufs()1812 for (i = nbufs / OCE_MAX_RQ_POSTS; i > 0; i--) { in oce_alloc_rx_bufs()1815 nbufs -= OCE_MAX_RQ_POSTS; in oce_alloc_rx_bufs()1817 if (nbufs > 0) in oce_alloc_rx_bufs()1818 oce_write_db(sc, PD_RXULP_DB, rq->id | (nbufs << 24)); in oce_alloc_rx_bufs()