Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/ethernet/
Deth_ivshmem_queue.c28 static int get_rx_avail_desc_idx(struct eth_ivshmem_queue *q, uint16_t *avail_desc_idx);
167 uint16_t avail_desc_idx; in eth_ivshmem_queue_rx() local
168 int res = get_rx_avail_desc_idx(q, &avail_desc_idx); in eth_ivshmem_queue_rx()
174 struct vring_desc *desc = &q->rx.vring.desc[avail_desc_idx]; in eth_ivshmem_queue_rx()
195 uint16_t avail_desc_idx; in eth_ivshmem_queue_rx_complete() local
196 int res = get_rx_avail_desc_idx(q, &avail_desc_idx); in eth_ivshmem_queue_rx_complete()
205 q->rx.vring.used->ring[used_idx].id = avail_desc_idx; in eth_ivshmem_queue_rx_complete()
312 static int get_rx_avail_desc_idx(struct eth_ivshmem_queue *q, uint16_t *avail_desc_idx) in get_rx_avail_desc_idx() argument
324 *avail_desc_idx = q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]; in get_rx_avail_desc_idx()
325 if (*avail_desc_idx >= q->desc_max_len) { in get_rx_avail_desc_idx()