Lines Matching refs:nb_pkts
349 u32 nb_pkts = 0; in xsk_tx_peek_release_fallback() local
351 while (nb_pkts < max_entries && xsk_tx_peek_desc(pool, &descs[nb_pkts])) in xsk_tx_peek_release_fallback()
352 nb_pkts++; in xsk_tx_peek_release_fallback()
355 return nb_pkts; in xsk_tx_peek_release_fallback()
358 u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 nb_pkts) in xsk_tx_peek_release_desc_batch() argument
366 return xsk_tx_peek_release_fallback(pool, nb_pkts); in xsk_tx_peek_release_desc_batch()
371 nb_pkts = 0; in xsk_tx_peek_release_desc_batch()
375 nb_pkts = xskq_cons_nb_entries(xs->tx, nb_pkts); in xsk_tx_peek_release_desc_batch()
383 nb_pkts = xskq_prod_nb_free(pool->cq, nb_pkts); in xsk_tx_peek_release_desc_batch()
384 if (!nb_pkts) in xsk_tx_peek_release_desc_batch()
387 nb_pkts = xskq_cons_read_desc_batch(xs->tx, pool, nb_pkts); in xsk_tx_peek_release_desc_batch()
388 if (!nb_pkts) { in xsk_tx_peek_release_desc_batch()
394 xskq_prod_write_addr_batch(pool->cq, pool->tx_descs, nb_pkts); in xsk_tx_peek_release_desc_batch()
399 return nb_pkts; in xsk_tx_peek_release_desc_batch()