Home
last modified time | relevance | path

Searched refs:desc_max_len (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.5.0/drivers/ethernet/
Deth_ivshmem_queue.c44 q->desc_max_len = vring_desc_len; in eth_ivshmem_queue_init()
105 if (q->tx.desc_len >= q->desc_max_len) { in eth_ivshmem_queue_tx_get_buff()
142 q->tx.desc_head = (q->tx.desc_head + 1) % q->desc_max_len; in eth_ivshmem_queue_tx_commit_buff()
147 q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len] = desc_head; in eth_ivshmem_queue_tx_commit_buff()
149 VRING_FLUSH(q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len]); in eth_ivshmem_queue_tx_commit_buff()
202 uint16_t used_idx = q->rx.used_idx % q->desc_max_len; in eth_ivshmem_queue_rx_complete()
281 q->tx.used_idx % q->desc_max_len]; in tx_clean_used()
286 if (used->id >= q->desc_max_len || used->len != 1) { in tx_clean_used()
323 VRING_INVALIDATE(q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]); in get_rx_avail_desc_idx()
324 *avail_desc_idx = q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]; in get_rx_avail_desc_idx()
[all …]
Deth_ivshmem_priv.h37 uint16_t desc_max_len; member
Deth_ivshmem.c313 dev_data->ivshmem_queue.desc_max_len, in eth_ivshmem_initialize()
/Zephyr-Core-3.5.0/tests/drivers/ethernet/eth_ivshmem_queue/src/
Dmain.c55 zassert_equal(q1.desc_max_len, VRING_DESC_LEN); in ZTEST()