Lines Matching refs:avail_idx
75 q->tx.avail_idx = 0; in eth_ivshmem_queue_reset()
79 q->rx.avail_idx = 0; in eth_ivshmem_queue_reset()
142 q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len] = desc_head; in eth_ivshmem_queue_tx_commit_buff()
144 VRING_FLUSH(q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len]); in eth_ivshmem_queue_tx_commit_buff()
147 q->tx.avail_idx++; in eth_ivshmem_queue_tx_commit_buff()
148 q->tx.vring.avail->idx = q->tx.avail_idx; in eth_ivshmem_queue_tx_commit_buff()
209 q->rx.avail_idx++; in eth_ivshmem_queue_rx_complete()
210 vring_avail_event(&q->rx.vring) = q->rx.avail_idx; in eth_ivshmem_queue_rx_complete()
312 uint16_t avail_idx = q->rx.vring.avail->idx; in get_rx_avail_desc_idx() local
314 if (avail_idx == q->rx.avail_idx) { in get_rx_avail_desc_idx()
318 VRING_INVALIDATE(q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]); in get_rx_avail_desc_idx()
319 *avail_desc_idx = q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]; in get_rx_avail_desc_idx()