Lines Matching refs:desc_available
785 int desc_available = tsnep_tx_desc_available(tx); in tsnep_xdp_xmit_zc() local
793 if (desc_available <= (MAX_SKB_FRAGS + 1)) in tsnep_xdp_xmit_zc()
795 desc_available -= MAX_SKB_FRAGS + 1; in tsnep_xdp_xmit_zc()
797 batch = xsk_tx_peek_release_desc_batch(tx->xsk_pool, desc_available); in tsnep_xdp_xmit_zc()
1271 static void tsnep_xsk_rx_need_wakeup(struct tsnep_rx *rx, int desc_available) in tsnep_xsk_rx_need_wakeup() argument
1273 if (desc_available) in tsnep_xsk_rx_need_wakeup()
1437 int desc_available; in tsnep_rx_poll() local
1442 desc_available = tsnep_rx_desc_available(rx); in tsnep_rx_poll()
1461 if (desc_available >= TSNEP_RING_RX_REFILL) { in tsnep_rx_poll()
1462 bool reuse = desc_available >= TSNEP_RING_RX_REUSE; in tsnep_rx_poll()
1464 desc_available -= tsnep_rx_refill(rx, desc_available, in tsnep_rx_poll()
1472 desc_available++; in tsnep_rx_poll()
1499 desc_available++; in tsnep_rx_poll()
1527 if (desc_available) in tsnep_rx_poll()
1528 tsnep_rx_refill(rx, desc_available, false); in tsnep_rx_poll()
1540 int desc_available; in tsnep_rx_poll_zc() local
1546 desc_available = tsnep_rx_desc_available(rx); in tsnep_rx_poll_zc()
1562 if (desc_available >= TSNEP_RING_RX_REFILL) { in tsnep_rx_poll_zc()
1563 bool reuse = desc_available >= TSNEP_RING_RX_REUSE; in tsnep_rx_poll_zc()
1565 desc_available -= tsnep_rx_refill_zc(rx, desc_available, in tsnep_rx_poll_zc()
1573 desc_available++; in tsnep_rx_poll_zc()
1600 desc_available++; in tsnep_rx_poll_zc()
1636 if (desc_available) in tsnep_rx_poll_zc()
1637 desc_available -= tsnep_rx_refill_zc(rx, desc_available, false); in tsnep_rx_poll_zc()
1640 tsnep_xsk_rx_need_wakeup(rx, desc_available); in tsnep_rx_poll_zc()
1645 return desc_available ? budget : done; in tsnep_rx_poll_zc()
1665 int desc_available; in tsnep_rx_open() local
1674 desc_available = tsnep_rx_desc_available(rx); in tsnep_rx_open()
1676 retval = tsnep_rx_alloc_zc(rx, desc_available, false); in tsnep_rx_open()
1678 retval = tsnep_rx_alloc(rx, desc_available, false); in tsnep_rx_open()
1679 if (retval != desc_available) { in tsnep_rx_open()