Home
last modified time | relevance | path

Searched refs:nbufs (Results 1 – 5 of 5) sorted by relevance

/openbsd/lib/libc/db/hash/
H A Dhash_buf.c173 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()
H A Dhash.h113 int nbufs; /* Number of buffers left to member
/openbsd/sys/arch/octeon/dev/
H A Dif_cnmac.c610 unsigned int back, nbufs; in cnmac_buf_free_work() local
612 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() local
1133 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()
/openbsd/usr.bin/less/
H A Dch.c61 int nbufs; member
69 #define ch_nbufs thisfile->nbufs
749 thisfile->nbufs = 0; in ch_init()
/openbsd/sys/dev/pci/
H A Dif_oce.c1799 int i, nbufs = 0; in oce_alloc_rx_bufs() local
1806 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()