Searched refs:vq (Results 1 - 25 of 25) sorted by relevance

/freebsd-10-stable/sys/dev/virtio/
H A Dvirtqueue.c118 static int virtqueue_init_indirect(struct virtqueue *vq, int);
119 static void virtqueue_free_indirect(struct virtqueue *vq);
151 struct virtqueue *vq; local
175 vq = malloc(sizeof(struct virtqueue) +
177 if (vq == NULL) {
182 vq->vq_dev = dev;
183 strlcpy(vq->vq_name, info->vqai_name, sizeof(vq->vq_name));
184 vq->vq_queue_index = queue;
185 vq
223 virtqueue_init_indirect(struct virtqueue *vq, int indirect_size) argument
266 virtqueue_free_indirect(struct virtqueue *vq) argument
287 virtqueue_init_indirect_list(struct virtqueue *vq, struct vring_desc *indirect) argument
300 virtqueue_reinit(struct virtqueue *vq, uint16_t size) argument
342 virtqueue_free(struct virtqueue *vq) argument
364 virtqueue_paddr(struct virtqueue *vq) argument
371 virtqueue_size(struct virtqueue *vq) argument
378 virtqueue_nfree(struct virtqueue *vq) argument
385 virtqueue_empty(struct virtqueue *vq) argument
392 virtqueue_full(struct virtqueue *vq) argument
399 virtqueue_notify(struct virtqueue *vq) argument
411 virtqueue_nused(struct virtqueue *vq) argument
424 virtqueue_intr_filter(struct virtqueue *vq) argument
436 virtqueue_intr(struct virtqueue *vq) argument
443 virtqueue_enable_intr(struct virtqueue *vq) argument
450 virtqueue_postpone_intr(struct virtqueue *vq, vq_postpone_t hint) argument
475 virtqueue_disable_intr(struct virtqueue *vq) argument
486 virtqueue_enqueue(struct virtqueue *vq, void *cookie, struct sglist *sg, int readable, int writable) argument
539 virtqueue_dequeue(struct virtqueue *vq, uint32_t *len) argument
566 virtqueue_poll(struct virtqueue *vq, uint32_t *len) argument
577 virtqueue_drain(struct virtqueue *vq, int *last) argument
600 virtqueue_dump(struct virtqueue *vq) argument
617 vq_ring_init(struct virtqueue *vq) argument
635 vq_ring_update_avail(struct virtqueue *vq, uint16_t desc_idx) argument
657 vq_ring_enqueue_segments(struct virtqueue *vq, struct vring_desc *desc, uint16_t head_idx, struct sglist *sg, int readable, int writable) argument
688 vq_ring_use_indirect(struct virtqueue *vq, int needed) argument
704 vq_ring_enqueue_indirect(struct virtqueue *vq, void *cookie, struct sglist *sg, int readable, int writable) argument
744 vq_ring_enable_interrupt(struct virtqueue *vq, uint16_t ndesc) argument
770 vq_ring_must_notify_host(struct virtqueue *vq) argument
786 vq_ring_notify_host(struct virtqueue *vq) argument
793 vq_ring_free_chain(struct virtqueue *vq, uint16_t desc_idx) argument
[all...]
H A Dvirtqueue.h73 void *virtqueue_drain(struct virtqueue *vq, int *last);
74 void virtqueue_free(struct virtqueue *vq);
75 int virtqueue_reinit(struct virtqueue *vq, uint16_t size);
77 int virtqueue_intr_filter(struct virtqueue *vq);
78 void virtqueue_intr(struct virtqueue *vq);
79 int virtqueue_enable_intr(struct virtqueue *vq);
80 int virtqueue_postpone_intr(struct virtqueue *vq, vq_postpone_t hint);
81 void virtqueue_disable_intr(struct virtqueue *vq);
84 vm_paddr_t virtqueue_paddr(struct virtqueue *vq);
86 int virtqueue_full(struct virtqueue *vq);
[all...]
/freebsd-10-stable/contrib/unbound/validator/
H A Dvalidator.c66 struct val_qstate* vq, int id, int rcode, struct dns_msg* msg,
201 val_new_getmsg(struct module_qstate* qstate, struct val_qstate* vq) argument
206 vq->orig_msg = (struct dns_msg*)regional_alloc(qstate->region,
208 if(!vq->orig_msg)
210 vq->orig_msg->qinfo = qstate->qinfo;
211 vq->orig_msg->rep = (struct reply_info*)regional_alloc(
213 if(!vq->orig_msg->rep)
215 memset(vq->orig_msg->rep, 0, sizeof(struct reply_info));
216 vq->orig_msg->rep->flags = (uint16_t)(qstate->return_rcode&0xf)
218 vq
244 struct val_qstate* vq = (struct val_qstate*)regional_alloc( local
366 struct val_qstate* vq = (struct val_qstate*)qstate->minfo[id]; local
409 prime_trust_anchor(struct module_qstate* qstate, struct val_qstate* vq, int id, struct trust_anchor* toprime) argument
1312 processInit(struct module_qstate* qstate, struct val_qstate* vq, struct val_env* ve, int id) argument
1500 processFindKey(struct module_qstate* qstate, struct val_qstate* vq, int id) argument
1652 processValidate(struct module_qstate* qstate, struct val_qstate* vq, struct val_env* ve, int id) argument
1837 val_dlv_init(struct module_qstate* qstate, struct val_qstate* vq, struct val_env* ve, int id) argument
1968 processFinished(struct module_qstate* qstate, struct val_qstate* vq, struct val_env* ve, int id) argument
2118 processDLVLookup(struct module_qstate* qstate, struct val_qstate* vq, struct val_env* ve, int id) argument
2228 val_handle(struct module_qstate* qstate, struct val_qstate* vq, struct val_env* ve, int id) argument
2265 struct val_qstate* vq = (struct val_qstate*)qstate->minfo[id]; local
2438 ds_response_to_ke(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo, struct key_entry_key** ke) argument
2656 process_ds_response(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo, struct sock_list* origin) argument
2729 process_dnskey_response(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo, struct sock_list* origin) argument
2825 process_prime_response(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct sock_list* origin) argument
2899 process_dlv_response(struct module_qstate* qstate, struct val_qstate* vq, int id, int rcode, struct dns_msg* msg, struct query_info* qinfo) argument
2988 struct val_qstate* vq = (struct val_qstate*)super->minfo[id]; local
[all...]
/freebsd-10-stable/usr.sbin/bhyve/
H A Dvirtio.h400 #define VQ_AVAIL_EVENT_IDX(vq) \
401 (*(volatile uint16_t *)&(vq)->vq_used->vu_ring[(vq)->vq_qsize])
402 #define VQ_USED_EVENT_IDX(vq) \
403 ((vq)->vq_avail->va_ring[(vq)->vq_qsize])
409 vq_ring_ready(struct vqueue_info *vq) argument
412 return (vq->vq_flags & VQ_ALLOC);
420 vq_has_descs(struct vqueue_info *vq) argument
423 return (vq_ring_ready(vq)
432 vq_interrupt(struct virtio_softc *vs, struct vqueue_info *vq) argument
[all...]
H A Dvirtio.c90 struct vqueue_info *vq; local
97 for (vq = vs->vs_queues, i = 0; i < nvq; vq++, i++) {
98 vq->vq_flags = 0;
99 vq->vq_last_avail = 0;
100 vq->vq_save_used = 0;
101 vq->vq_pfn = 0;
102 vq->vq_msix_idx = VIRTIO_MSI_NO_VECTOR;
169 struct vqueue_info *vq; local
174 vq
257 vq_getchain(struct vqueue_info *vq, uint16_t *pidx, struct iovec *iov, int n_iov, uint16_t *flags) argument
386 vq_retchain(struct vqueue_info *vq) argument
400 vq_relchain(struct vqueue_info *vq, uint16_t idx, uint32_t iolen) argument
442 vq_endchains(struct vqueue_info *vq, int used_all_avail) argument
649 struct vqueue_info *vq; local
745 (*vq->vq_notify)(DEV_SOFTC(vs), vq); local
747 (*vc->vc_qnotify)(DEV_SOFTC(vs), vq); local
[all...]
H A Dpci_virtio_net.c299 struct vqueue_info *vq; local
324 vq = &sc->vsc_queues[VTNET_RXQ];
325 if (!vq_has_descs(vq)) {
331 vq_endchains(vq, 1);
339 n = vq_getchain(vq, &idx, iov, VTNET_MAXSEGS, NULL);
356 vq_retchain(vq);
357 vq_endchains(vq, 0);
377 vq_relchain(vq, idx, len + sc->rx_vhdrlen);
378 } while (vq_has_descs(vq));
381 vq_endchains(vq,
494 struct vqueue_info *vq; local
592 pci_vtnet_ping_rxq(void *vsc, struct vqueue_info *vq) argument
606 pci_vtnet_proctx(struct pci_vtnet_softc *sc, struct vqueue_info *vq) argument
635 pci_vtnet_ping_txq(void *vsc, struct vqueue_info *vq) argument
660 struct vqueue_info *vq; local
709 pci_vtnet_ping_ctlq(void *vsc, struct vqueue_info *vq) argument
[all...]
H A Dpci_virtio_rnd.c101 pci_vtrnd_notify(void *vsc, struct vqueue_info *vq) argument
111 vq_endchains(vq, 0);
115 while (vq_has_descs(vq)) {
116 vq_getchain(vq, &idx, &iov, 1, NULL);
128 vq_relchain(vq, idx, len);
130 vq_endchains(vq, 1); /* Generate interrupt if appropriate. */
H A Dpci_virtio_block.c195 pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq) argument
207 n = vq_getchain(vq, &idx, iov, BLOCKIF_IOV_MAX + 2, flags);
281 pci_vtblk_notify(void *vsc, struct vqueue_info *vq) argument
285 while (vq_has_descs(vq))
286 pci_vtblk_proc(sc, vq);
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_queue.c330 vdev_queue_class_tree(vdev_queue_t *vq, zio_priority_t p) argument
332 return (&vq->vq_class[p].vqc_queued_tree);
336 vdev_queue_type_tree(vdev_queue_t *vq, zio_type_t t) argument
339 return (&vq->vq_read_offset_tree);
341 return (&vq->vq_write_offset_tree);
373 vdev_queue_t *vq = &vd->vdev_queue; local
375 mutex_init(&vq->vq_lock, NULL, MUTEX_DEFAULT, NULL);
376 vq->vq_vdev = vd;
378 avl_create(&vq->vq_active_tree, vdev_queue_offset_compare,
380 avl_create(vdev_queue_type_tree(vq, ZIO_TYPE_REA
410 vdev_queue_t *vq = &vd->vdev_queue; local
422 vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio) argument
444 vdev_queue_io_remove(vdev_queue_t *vq, zio_t *zio) argument
467 vdev_queue_pending_add(vdev_queue_t *vq, zio_t *zio) argument
485 vdev_queue_pending_remove(vdev_queue_t *vq, zio_t *zio) argument
616 vdev_queue_class_to_issue(vdev_queue_t *vq) argument
659 vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio) argument
807 vdev_queue_io_to_issue(vdev_queue_t *vq) argument
869 vdev_queue_t *vq = &zio->io_vd->vdev_queue; local
915 vdev_queue_t *vq = &zio->io_vd->vdev_queue; local
[all...]
H A Dvdev.c3533 vdev_queue_t *vq = &vd->vdev_queue; local
3535 mutex_enter(&vq->vq_lock);
3536 if (avl_numnodes(&vq->vq_active_tree) > 0) {
3546 fio = avl_first(&vq->vq_active_tree);
3552 vq->vq_io_complete_ts);
3560 mutex_exit(&vq->vq_lock);
/freebsd-10-stable/sys/dev/netmap/
H A Dif_vtnet_netmap.h52 struct virtqueue *vq; local
58 vq = rxq->vtnrx_vq;
59 while ((m = virtqueue_drain(vq, &last)) != NULL) {
68 vq = txq->vtntx_vq;
69 while ((txhdr = virtqueue_drain(vq, &last)) != NULL) {
124 struct virtqueue *vq = txq->vtntx_vq; local
157 err = virtqueue_enqueue(vq, txq, sg, sg->sg_nseg, 0);
174 virtqueue_disable_intr(vq);
175 virtqueue_notify(vq);
179 ring->head, ring->tail, virtqueue_nused(vq),
236 struct virtqueue *vq = rxq->vtnrx_vq; local
287 struct virtqueue *vq = rxq->vtnrx_vq; local
367 struct virtqueue *vq = rxq->vtnrx_vq; local
[all...]
/freebsd-10-stable/sys/dev/virtio/console/
H A Dvirtio_console.c551 struct virtqueue *vq; local
570 vq = scport->vcsp_invq;
571 if (vq != NULL)
572 vtcon_port_drain_bufs(vq);
594 struct virtqueue *vq; local
597 vq = sc->vtcon_ctrl_rxvq;
605 return (virtqueue_enqueue(vq, control, &sg, 0, sg.sg_nseg));
642 struct virtqueue *vq; local
645 vq = sc->vtcon_ctrl_rxvq;
648 for (nbufs = 0; !virtqueue_full(vq); nbuf
666 struct virtqueue *vq; local
842 struct virtqueue *vq; local
892 struct virtqueue *vq; local
941 struct virtqueue *vq; local
986 struct virtqueue *vq; local
1096 vtcon_port_drain_bufs(struct virtqueue *vq) argument
1199 struct virtqueue *vq; local
1260 struct virtqueue *vq; local
[all...]
/freebsd-10-stable/sys/dev/virtio/random/
H A Dvirtio_random.c195 struct virtqueue *vq; local
199 vq = sc->vtrnd_vq;
206 if (!virtqueue_empty(vq))
208 if (virtqueue_enqueue(vq, &value, &sg, 0, 1) != 0)
215 virtqueue_notify(vq);
216 virtqueue_poll(vq, NULL);
/freebsd-10-stable/sys/dev/virtio/balloon/
H A Dvirtio_balloon.c317 struct virtqueue *vq; local
321 vq = sc->vtballoon_inflate_vq;
341 vtballoon_send_page_frames(sc, vq, i);
348 struct virtqueue *vq; local
352 vq = sc->vtballoon_deflate_vq;
371 vtballoon_send_page_frames(sc, vq, i);
388 vtballoon_send_page_frames(struct vtballoon_softc *sc, struct virtqueue *vq, argument
402 error = virtqueue_enqueue(vq, vq, &sg, 1, 0);
404 virtqueue_notify(vq);
[all...]
/freebsd-10-stable/lib/libc/quad/
H A Dqdivrem.c83 __qdivrem(uq, vq, arq)
84 u_quad_t uq, vq, *arq;
96 if (vq == 0) {
105 if (uq < vq) {
133 tmp.uq = vq;
/freebsd-10-stable/lib/libstand/
H A Dqdivrem.c81 __qdivrem(uq, vq, arq)
82 u_quad_t uq, vq, *arq;
94 if (vq == 0) {
103 if (uq < vq) {
131 tmp.uq = vq;
/freebsd-10-stable/sys/libkern/
H A Dqdivrem.c80 __qdivrem(uq, vq, arq)
81 u_quad_t uq, vq, *arq;
93 if (vq == 0) {
102 if (uq < vq) {
130 tmp.uq = vq;
/freebsd-10-stable/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c1050 struct virtqueue *vq; local
1058 vq = sc->vtscsi_request_vq;
1073 error = virtqueue_enqueue(vq, req, sg, readable, writable);
1086 virtqueue_notify(vq);
1381 struct virtqueue *vq; local
1384 vq = sc->vtscsi_control_vq;
1388 error = virtqueue_enqueue(vq, req, sg, readable, writable);
1400 virtqueue_notify(vq);
1771 struct virtqueue *vq; local
1775 vq
1855 struct virtqueue *vq; local
1933 vtscsi_drain_vq(struct vtscsi_softc *sc, struct virtqueue *vq) argument
2140 vtscsi_complete_vq(struct vtscsi_softc *sc, struct virtqueue *vq) argument
2154 struct virtqueue *vq; local
2177 struct virtqueue *vq; local
2202 struct virtqueue *vq; local
[all...]
/freebsd-10-stable/sys/dev/virtio/block/
H A Dvirtio_blk.c889 struct virtqueue *vq; local
894 vq = sc->vtblk_vq;
909 if (!virtqueue_empty(vq))
935 error = virtqueue_enqueue(vq, req, sg, readable, writable);
997 struct virtqueue *vq; local
1001 vq = sc->vtblk_vq;
1004 while ((req = virtqueue_drain(vq, &last)) != NULL) {
1010 KASSERT(virtqueue_empty(vq), ("virtqueue not empty"));
1047 struct virtqueue *vq; local
1052 vq
1168 struct virtqueue *vq; local
1215 struct virtqueue *vq; local
[all...]
/freebsd-10-stable/sys/dev/virtio/pci/
H A Dvirtio_pci.c479 struct virtqueue *vq; local
505 0xFFFFFFFFUL, info, &vq);
513 virtqueue_paddr(vq) >> VIRTIO_PCI_QUEUE_ADDR_SHIFT);
515 vqx->vtv_vq = *info->vqai_vq = vq;
1102 struct virtqueue *vq; local
1107 vq = vqx->vtv_vq;
1109 KASSERT(vq != NULL, ("%s: vq %d not allocated", __func__, idx));
1114 error = virtqueue_reinit(vq, size);
1119 virtqueue_paddr(vq) >> VIRTIO_PCI_QUEUE_ADDR_SHIF
1301 struct virtqueue *vq; local
1313 struct virtqueue *vq; local
[all...]
/freebsd-10-stable/sys/dev/virtio/network/
H A Dif_vtnet.c905 * when per-vq MSIX is available.
941 struct virtqueue *vq = sc->vtnet_txqs[0].vtntx_vq; local
943 IFQ_SET_MAXLEN(&ifp->if_snd, virtqueue_size(vq) - 1);
944 ifp->if_snd.ifq_drv_maxlen = virtqueue_size(vq) - 1;
1180 struct virtqueue *vq; local
1183 vq = rxq->vtnrx_vq;
1186 for (nbufs = 0; !virtqueue_full(vq); nbufs++) {
1193 virtqueue_notify(vq);
1209 struct virtqueue *vq; local
1213 vq
1653 struct virtqueue *vq; local
1751 struct virtqueue *vq; local
1924 struct virtqueue *vq; local
1935 struct virtqueue *vq; local
1961 struct virtqueue *vq; local
2130 struct virtqueue *vq; local
2230 struct virtqueue *vq; local
2296 struct virtqueue *vq; local
2449 struct virtqueue *vq; local
3114 struct virtqueue *vq; local
3123 ("%s: ctrl vq %p not empty", __func__, vq)); local
3130 struct virtqueue *vq; local
3893 struct virtqueue *vq; local
[all...]
/freebsd-10-stable/contrib/amd/fsinfo/
H A Dfsi_util.c380 qelem *vq = (qelem *) v; local
387 ins_que(vq, q->q_back);
393 qelem *vq = (qelem *) v; local
400 ins_que(vq, q->q_back);
/freebsd-10-stable/sys/nfsclient/
H A Dnfs_vfsops.c1493 struct vfsquery vq; local
1496 bzero(&vq, sizeof(vq));
1520 vq.vq_flags |= VQ_NOTRESP;
1525 vq.vq_flags |= VQ_NOTRESPLOCK;
1527 error = SYSCTL_OUT(req, &vq, sizeof(vq));
/freebsd-10-stable/sys/fs/nfsclient/
H A Dnfs_clvfsops.c1696 struct vfsquery vq; local
1699 bzero(&vq, sizeof(vq));
1723 vq.vq_flags |= VQ_NOTRESP;
1728 vq.vq_flags |= VQ_NOTRESPLOCK;
1730 error = SYSCTL_OUT(req, &vq, sizeof(vq));
/freebsd-10-stable/usr.sbin/portsnap/portsnap/
H A Dportsnap.sh158 if echo ${COMMANDS} | grep -vq extract; then

Completed in 272 milliseconds