Searched refs:vring (Results 1 – 2 of 2) sorted by relevance
51 vring_init(&q->tx.vring, vring_desc_len, q->tx.shmem, ETH_IVSHMEM_VRING_ALIGNMENT); in eth_ivshmem_queue_init()52 vring_init(&q->rx.vring, vring_desc_len, q->rx.shmem, ETH_IVSHMEM_VRING_ALIGNMENT); in eth_ivshmem_queue_init()58 struct vring_used *tmp_used = q->tx.vring.used; in eth_ivshmem_queue_init()60 q->tx.vring.used = q->rx.vring.used; in eth_ivshmem_queue_init()61 q->rx.vring.used = tmp_used; in eth_ivshmem_queue_init()85 for (unsigned int i = 0; i < q->tx.vring.num - 1; i++) { in eth_ivshmem_queue_reset()86 q->tx.vring.desc[i].next = i + 1; in eth_ivshmem_queue_reset()88 q->tx.vring.desc[q->tx.vring.num - 1].next = 0; in eth_ivshmem_queue_reset()112 struct vring_desc *tx_desc = &q->tx.vring.desc[q->tx.desc_head]; in eth_ivshmem_queue_tx_get_buff()142 q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len] = desc_head; in eth_ivshmem_queue_tx_commit_buff()[all …]
18 struct vring vring; member32 struct vring vring; member