Lines Matching refs:desc_max_len
44 q->desc_max_len = vring_desc_len; in eth_ivshmem_queue_init()
100 if (q->tx.desc_len >= q->desc_max_len) { in eth_ivshmem_queue_tx_get_buff()
137 q->tx.desc_head = (q->tx.desc_head + 1) % q->desc_max_len; in eth_ivshmem_queue_tx_commit_buff()
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()
197 uint16_t used_idx = q->rx.used_idx % q->desc_max_len; in eth_ivshmem_queue_rx_complete()
276 q->tx.used_idx % q->desc_max_len]; in tx_clean_used()
281 if (used->id >= q->desc_max_len || used->len != 1) { in tx_clean_used()
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()
320 if (*avail_desc_idx >= q->desc_max_len) { in get_rx_avail_desc_idx()