Searched refs:nvq (Results 1 – 1 of 1) sorted by relevance
176 static int vhost_net_buf_produce(struct vhost_net_virtqueue *nvq) in vhost_net_buf_produce() argument178 struct vhost_net_buf *rxq = &nvq->rxq; in vhost_net_buf_produce()181 rxq->tail = ptr_ring_consume_batched(nvq->rx_ring, rxq->queue, in vhost_net_buf_produce()186 static void vhost_net_buf_unproduce(struct vhost_net_virtqueue *nvq) in vhost_net_buf_unproduce() argument188 struct vhost_net_buf *rxq = &nvq->rxq; in vhost_net_buf_unproduce()190 if (nvq->rx_ring && !vhost_net_buf_is_empty(rxq)) { in vhost_net_buf_unproduce()191 ptr_ring_unconsume(nvq->rx_ring, rxq->queue + rxq->head, in vhost_net_buf_unproduce()209 static int vhost_net_buf_peek(struct vhost_net_virtqueue *nvq) in vhost_net_buf_peek() argument211 struct vhost_net_buf *rxq = &nvq->rxq; in vhost_net_buf_peek()216 if (!vhost_net_buf_produce(nvq)) in vhost_net_buf_peek()[all …]