Lines Matching refs:rxvq
50 VRing *rxvq = &vdev->vrings[VQ_RX]; in virtio_net_init() local
64 vring_send_buf(rxvq, buf, ETH_MTU_SIZE + sizeof(VirtioNetHdr), in virtio_net_init()
67 vring_notify(rxvq); in virtio_net_init()
97 VRing *rxvq = &vdev->vrings[VQ_RX]; in recv() local
101 if (rx_last_idx == rxvq->used->idx) { in recv()
105 len = rxvq->used->ring[rx_last_idx % rxvq->num].len - sizeof(VirtioNetHdr); in recv()
110 id = rxvq->used->ring[rx_last_idx % rxvq->num].id % rxvq->num; in recv()
111 pkt = (uint8_t *)(rxvq->desc[id].addr + sizeof(VirtioNetHdr)); in recv()
115 printf("\nbuf %p: len=%i\n", (void *)rxvq->desc[id].addr, len); in recv()
129 rxvq->avail->ring[rxvq->avail->idx % rxvq->num] = id; in recv()
130 rxvq->avail->idx = rxvq->avail->idx + 1; in recv()
131 vring_notify(rxvq); in recv()