Lines Matching refs:desc_available
724 int desc_available = tsnep_tx_desc_available(tx); in tsnep_xdp_xmit_zc() local
732 if (desc_available <= (MAX_SKB_FRAGS + 1)) in tsnep_xdp_xmit_zc()
734 desc_available -= MAX_SKB_FRAGS + 1; in tsnep_xdp_xmit_zc()
736 batch = xsk_tx_peek_release_desc_batch(tx->xsk_pool, desc_available); in tsnep_xdp_xmit_zc()
1368 int desc_available; in tsnep_rx_poll() local
1373 desc_available = tsnep_rx_desc_available(rx); in tsnep_rx_poll()
1392 if (desc_available >= TSNEP_RING_RX_REFILL) { in tsnep_rx_poll()
1393 bool reuse = desc_available >= TSNEP_RING_RX_REUSE; in tsnep_rx_poll()
1395 desc_available -= tsnep_rx_refill(rx, desc_available, in tsnep_rx_poll()
1403 desc_available++; in tsnep_rx_poll()
1430 desc_available++; in tsnep_rx_poll()
1458 if (desc_available) in tsnep_rx_poll()
1459 tsnep_rx_refill(rx, desc_available, false); in tsnep_rx_poll()
1471 int desc_available; in tsnep_rx_poll_zc() local
1477 desc_available = tsnep_rx_desc_available(rx); in tsnep_rx_poll_zc()
1493 if (desc_available >= TSNEP_RING_RX_REFILL) { in tsnep_rx_poll_zc()
1494 bool reuse = desc_available >= TSNEP_RING_RX_REUSE; in tsnep_rx_poll_zc()
1496 desc_available -= tsnep_rx_refill_zc(rx, desc_available, in tsnep_rx_poll_zc()
1504 desc_available++; in tsnep_rx_poll_zc()
1531 desc_available++; in tsnep_rx_poll_zc()
1567 if (desc_available) in tsnep_rx_poll_zc()
1568 desc_available -= tsnep_rx_refill_zc(rx, desc_available, false); in tsnep_rx_poll_zc()
1571 if (desc_available) in tsnep_rx_poll_zc()
1579 return desc_available ? budget : done; in tsnep_rx_poll_zc()
1599 int desc_available; in tsnep_rx_open() local
1608 desc_available = tsnep_rx_desc_available(rx); in tsnep_rx_open()
1610 retval = tsnep_rx_alloc_zc(rx, desc_available, false); in tsnep_rx_open()
1612 retval = tsnep_rx_alloc(rx, desc_available, false); in tsnep_rx_open()
1613 if (retval != desc_available) { in tsnep_rx_open()