Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/ethernet/
Deth_ivshmem_queue.c28 static int get_rx_avail_desc_idx(struct eth_ivshmem_queue *q, uint16_t *avail_desc_idx);
162 uint16_t avail_desc_idx; in eth_ivshmem_queue_rx() local
163 int res = get_rx_avail_desc_idx(q, &avail_desc_idx); in eth_ivshmem_queue_rx()
169 struct vring_desc *desc = &q->rx.vring.desc[avail_desc_idx]; in eth_ivshmem_queue_rx()
190 uint16_t avail_desc_idx; in eth_ivshmem_queue_rx_complete() local
191 int res = get_rx_avail_desc_idx(q, &avail_desc_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()
307 static int get_rx_avail_desc_idx(struct eth_ivshmem_queue *q, uint16_t *avail_desc_idx) in get_rx_avail_desc_idx() argument
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()