Searched refs:vq_qsize (Results 1 - 12 of 12) sorted by relevance

/freebsd-13-stable/usr.sbin/bhyve/
H A Dvirtio.c185 size = vring_size(vq->vq_qsize);
190 base += vq->vq_qsize * sizeof(struct virtio_desc);
194 base += (2 + vq->vq_qsize + 1) * sizeof(uint16_t);
297 if (ndesc > vq->vq_qsize) {
314 *pidx = next = vq->vq_avail->va_ring[idx & (vq->vq_qsize - 1)];
317 if (next >= vq->vq_qsize) {
417 mask = vq->vq_qsize - 1;
638 vs->vs_queues[vs->vs_curq].vq_qsize : 0;
888 SNAPSHOT_VAR_CMP_OR_LEAVE(vq->vq_qsize, meta, ret, done);
899 addr_size = vq->vq_qsize * sizeo
[all...]
H A Dvirtio.h375 * Drivers may change vq_qsize after a reset. When the guest OS
392 uint16_t vq_qsize; /* size of this queue (a power of 2) */ member in struct:vqueue_info
414 (*(volatile uint16_t *)&(vq)->vq_used->vu_ring[(vq)->vq_qsize])
416 ((vq)->vq_avail->va_ring[(vq)->vq_qsize])
H A Dpci_virtio_rnd.c184 sc->vrsc_vq.vq_qsize = VTRND_RINGSZ;
H A Dpci_virtio_net.c579 sc->vsc_queues[VTNET_RXQ].vq_qsize = VTNET_RINGSZ;
581 sc->vsc_queues[VTNET_TXQ].vq_qsize = VTNET_RINGSZ;
584 sc->vsc_queues[VTNET_CTLQ].vq_qsize = VTNET_RINGSZ;
H A Dpci_virtio_scsi.c705 sc->vss_vq[0].vq_qsize = VTSCSI_RINGSZ;
709 sc->vss_vq[1].vq_qsize = VTSCSI_RINGSZ;
714 sc->vss_vq[i].vq_qsize = VTSCSI_RINGSZ;
H A Dpci_virtio_9p.c322 sc->vsc_vq.vq_qsize = VT9P_RINGSZ;
H A Dpci_virtio_block.c487 sc->vbsc_vq.vq_qsize = VTBLK_RINGSZ;
H A Dpci_virtio_console.c637 sc->vsc_queues[i].vq_qsize = VTCON_RINGSZ;
/freebsd-13-stable/sys/dev/beri/virtio/
H A Dvirtio.h49 uint16_t vq_qsize; /* size of this queue (a power of 2) */ member in struct:vqueue_info
H A Dvirtio_block.c319 vq->vq_qsize = NUM_DESCS;
325 size = vring_size(vq->vq_qsize, VRING_ALIGN);
331 base += vq->vq_qsize * sizeof(struct vring_desc);
335 base += (2 + vq->vq_qsize + 1) * sizeof(uint16_t);
H A Dvirtio.c136 head = be16toh(vq->vq_avail->ring[idx & (vq->vq_qsize - 1)]);
176 mask = vq->vq_qsize - 1;
/freebsd-13-stable/sys/dev/beri/virtio/network/
H A Dif_vtbe.c355 vq->vq_qsize = DESC_COUNT;
361 size = vring_size(vq->vq_qsize, VRING_ALIGN);
367 base += vq->vq_qsize * sizeof(struct vring_desc);
371 base += (2 + vq->vq_qsize + 1) * sizeof(uint16_t);

Completed in 102 milliseconds