Lines Matching refs:nbufs
1468 int nbufs, error; in vtnet_rxq_populate() local
1479 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtnet_rxq_populate()
1485 if (nbufs > 0) { in vtnet_rxq_populate()
1525 vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp) in vtnet_rx_alloc_buf() argument
1533 KASSERT(nbufs == 1 || sc->vtnet_flags & VTNET_FLAG_LRO_NOMRG, in vtnet_rx_alloc_buf()
1534 ("%s: mbuf %d chain requested without LRO_NOMRG", __func__, nbufs)); in vtnet_rx_alloc_buf()
1536 for (i = 0; i < nbufs; i++) { in vtnet_rx_alloc_buf()
1896 vtnet_rxq_discard_merged_bufs(struct vtnet_rxq *rxq, int nbufs) in vtnet_rxq_discard_merged_bufs() argument
1900 while (--nbufs > 0) { in vtnet_rxq_discard_merged_bufs()
1923 vtnet_rxq_merged_eof(struct vtnet_rxq *rxq, struct mbuf *m_head, int nbufs) in vtnet_rxq_merged_eof() argument
1933 while (--nbufs > 0) { in vtnet_rxq_merged_eof()
1946 if (nbufs > 1) in vtnet_rxq_merged_eof()
1947 vtnet_rxq_discard_merged_bufs(rxq, nbufs); in vtnet_rxq_merged_eof()
2065 uint32_t len, nbufs, adjsz; in vtnet_rxq_eof() local
2081 nbufs = vtnet_htog16(sc, mhdr->num_buffers); in vtnet_rxq_eof()
2084 nbufs = 1; /* num_buffers is always 1 */ in vtnet_rxq_eof()
2087 nbufs = 1; in vtnet_rxq_eof()
2099 if (nbufs > 1) in vtnet_rxq_eof()
2100 vtnet_rxq_discard_merged_bufs(rxq, nbufs); in vtnet_rxq_eof()
2108 if (nbufs > 1) { in vtnet_rxq_eof()
2110 if (vtnet_rxq_merged_eof(rxq, m, nbufs) != 0) in vtnet_rxq_eof()