Lines Matching refs:nbufs
1474 int nbufs, error; in vtnet_rxq_populate() local
1485 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtnet_rxq_populate()
1491 if (nbufs > 0) { in vtnet_rxq_populate()
1531 vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp) in vtnet_rx_alloc_buf() argument
1539 KASSERT(nbufs == 1 || sc->vtnet_flags & VTNET_FLAG_LRO_NOMRG, in vtnet_rx_alloc_buf()
1540 ("%s: mbuf %d chain requested without LRO_NOMRG", __func__, nbufs)); in vtnet_rx_alloc_buf()
1542 for (i = 0; i < nbufs; i++) { in vtnet_rx_alloc_buf()
1923 vtnet_rxq_discard_merged_bufs(struct vtnet_rxq *rxq, int nbufs) in vtnet_rxq_discard_merged_bufs() argument
1927 while (--nbufs > 0) { in vtnet_rxq_discard_merged_bufs()
1950 vtnet_rxq_merged_eof(struct vtnet_rxq *rxq, struct mbuf *m_head, int nbufs) in vtnet_rxq_merged_eof() argument
1960 while (--nbufs > 0) { in vtnet_rxq_merged_eof()
1973 if (nbufs > 1) in vtnet_rxq_merged_eof()
1974 vtnet_rxq_discard_merged_bufs(rxq, nbufs); in vtnet_rxq_merged_eof()
2093 uint32_t len, nbufs, adjsz; in vtnet_rxq_eof() local
2110 nbufs = vtnet_htog16(sc, mhdr->num_buffers); in vtnet_rxq_eof()
2113 nbufs = 1; /* num_buffers is always 1 */ in vtnet_rxq_eof()
2116 nbufs = 1; in vtnet_rxq_eof()
2128 if (nbufs > 1) in vtnet_rxq_eof()
2129 vtnet_rxq_discard_merged_bufs(rxq, nbufs); in vtnet_rxq_eof()
2137 if (nbufs > 1) { in vtnet_rxq_eof()
2139 if (vtnet_rxq_merged_eof(rxq, m, nbufs) != 0) in vtnet_rxq_eof()