Lines Matching refs:used_idx
76 q->tx.used_idx = 0; in eth_ivshmem_queue_reset()
80 q->rx.used_idx = 0; in eth_ivshmem_queue_reset()
197 uint16_t used_idx = q->rx.used_idx % q->desc_max_len; in eth_ivshmem_queue_rx_complete() local
199 q->rx.used_idx++; in eth_ivshmem_queue_rx_complete()
200 q->rx.vring.used->ring[used_idx].id = avail_desc_idx; in eth_ivshmem_queue_rx_complete()
201 q->rx.vring.used->ring[used_idx].len = 1; in eth_ivshmem_queue_rx_complete()
202 VRING_FLUSH(q->rx.vring.used->ring[used_idx]); in eth_ivshmem_queue_rx_complete()
205 q->rx.vring.used->idx = q->rx.used_idx; in eth_ivshmem_queue_rx_complete()
271 if (q->tx.used_idx == q->tx.vring.used->idx) { in tx_clean_used()
276 q->tx.used_idx % q->desc_max_len]; in tx_clean_used()
302 q->tx.used_idx++; in tx_clean_used()