Searched defs:vq (Results 1 - 16 of 16) sorted by relevance

/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_virtio_rnd.c112 pci_vtrnd_notify(void *vsc, struct vqueue_info *vq) argument
122 vq_endchains(vq, 0);
126 while (vq_has_descs(vq)) {
127 vq_getchain(vq, &idx, &iov, 1, NULL);
139 vq_relchain(vq, idx, len);
141 vq_endchains(vq, 1); /* Generate interrupt if appropriate. */
H A Dvirtio.c96 struct vqueue_info *vq; local
103 for (vq = vs->vs_queues, i = 0; i < nvq; vq++, i++) {
104 vq->vq_flags = 0;
105 vq->vq_last_avail = 0;
106 vq->vq_next_used = 0;
107 vq->vq_save_used = 0;
108 vq->vq_pfn = 0;
109 vq->vq_msix_idx = VIRTIO_MSI_NO_VECTOR;
176 struct vqueue_info *vq; local
265 vq_getchain(struct vqueue_info *vq, uint16_t *pidx, struct iovec *iov, int n_iov, uint16_t *flags) argument
394 vq_retchains(struct vqueue_info *vq, uint16_t n_chains) argument
401 vq_relchain_prepare(struct vqueue_info *vq, uint16_t idx, uint32_t iolen) argument
425 vq_relchain_publish(struct vqueue_info *vq) argument
444 vq_relchain(struct vqueue_info *vq, uint16_t idx, uint32_t iolen) argument
466 vq_endchains(struct vqueue_info *vq, int used_all_avail) argument
680 struct vqueue_info *vq; local
776 (*vq->vq_notify)(DEV_SOFTC(vs), vq); local
778 (*vc->vc_qnotify)(DEV_SOFTC(vs), vq); local
[all...]
H A Dpci_virtio_block.c283 pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq) argument
295 n = vq_getchain(vq, &idx, iov, BLOCKIF_IOV_MAX + 2, flags);
410 pci_vtblk_notify(void *vsc, struct vqueue_info *vq) argument
414 while (vq_has_descs(vq))
415 pci_vtblk_proc(sc, vq);
H A Dpci_virtio_console.c226 pci_vtcon_vq_to_port(struct pci_vtcon_softc *sc, struct vqueue_info *vq) argument
228 uint16_t num = vq->vq_num;
415 struct vqueue_info *vq; local
422 vq = pci_vtcon_port_to_vq(port, true);
432 if (!vq_has_descs(vq)) {
434 vq_endchains(vq, 1);
442 n = vq_getchain(vq, &idx, &iov, 1, NULL);
446 vq_retchains(vq, 1);
447 vq_endchains(vq, 0);
454 vq_relchain(vq, id
576 struct vqueue_info *vq; local
601 pci_vtcon_notify_tx(void *vsc, struct vqueue_info *vq) argument
627 pci_vtcon_notify_rx(void *vsc, struct vqueue_info *vq) argument
[all...]
H A Dpci_virtio_net.c331 struct vqueue_info *vq; local
368 vq = &sc->vsc_queues[VTNET_RXQ];
369 if (!vq_has_descs(vq)) {
377 vq_endchains(vq, 1);
385 n = vq_getchain(vq, &idx, iov, VTNET_MAXSEGS, NULL);
410 vq_retchains(vq, 1);
411 vq_endchains(vq, 0);
431 vq_relchain(vq, idx, len + sc->rx_vhdrlen);
432 } while (vq_has_descs(vq));
435 vq_endchains(vq,
551 struct vqueue_info *vq; local
675 pci_vtnet_ping_rxq(void *vsc, struct vqueue_info *vq) argument
689 pci_vtnet_proctx(struct pci_vtnet_softc *sc, struct vqueue_info *vq) argument
718 pci_vtnet_ping_txq(void *vsc, struct vqueue_info *vq) argument
743 struct vqueue_info *vq; local
792 pci_vtnet_ping_ctlq(void *vsc, struct vqueue_info *vq) argument
[all...]
H A Dvirtio.h408 #define VQ_AVAIL_EVENT_IDX(vq) \
409 (*(volatile uint16_t *)&(vq)->vq_used->vu_ring[(vq)->vq_qsize])
410 #define VQ_USED_EVENT_IDX(vq) \
411 ((vq)->vq_avail->va_ring[(vq)->vq_qsize])
417 vq_ring_ready(struct vqueue_info *vq) argument
420 return (vq->vq_flags & VQ_ALLOC);
428 vq_has_descs(struct vqueue_info *vq) argument
431 return (vq_ring_ready(vq)
440 vq_interrupt(struct virtio_softc *vs, struct vqueue_info *vq) argument
469 vq_kick_enable(struct vqueue_info *vq) argument
482 vq_kick_disable(struct vqueue_info *vq) argument
[all...]
H A Dpci_virtio_scsi.c556 pci_vtscsi_controlq_notify(void *vsc, struct vqueue_info *vq) argument
567 while (vq_has_descs(vq)) {
568 n = vq_getchain(vq, &idx, iov, VTSCSI_MAXSEG, NULL);
577 vq_relchain(vq, idx, iolen);
579 vq_endchains(vq, 1); /* Generate interrupt if appropriate. */
584 pci_vtscsi_eventq_notify(void *vsc, struct vqueue_info *vq) argument
587 vq_kick_disable(vq);
591 pci_vtscsi_requestq_notify(void *vsc, struct vqueue_info *vq) argument
602 q = &sc->vss_queues[vq->vq_num - 2];
604 while (vq_has_descs(vq)) {
[all...]
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dqdivrem.c83 ___qdivrem(u_longlong_t uq, u_longlong_t vq, u_longlong_t *arq) argument
95 if (vq == 0) {
104 if (uq < vq) {
132 tmp.uq = vq;
/illumos-gate/usr/src/uts/common/io/
H A Dvuid_queue.c38 static Vuid_q_node *vq_alloc_node(Vuid_queue *vq);
39 static void vq_free_node(Vuid_queue *vq, Vuid_q_node *vqn);
50 vq_initialize(Vuid_queue *vq, caddr_t data, u_int bytes) argument
54 /* Initialize vq */
55 vq->top = vq->bottom = vq->free = VUID_Q_NODE_NULL;
56 vq->size = 1 + (bytes - sizeof (Vuid_q_node)) / sizeof (Vuid_q_node);
57 /* Place in pool by freeing all nodes (fudge vq->num for this) */
59 vq
65 vq_put(Vuid_queue *vq, Firm_event *firm_event) argument
103 vq_get(Vuid_queue *vq, Firm_event *firm_event) argument
126 vq_peek(Vuid_queue *vq, Firm_event *firm_event) argument
135 vq_putback(Vuid_queue *vq, Firm_event *firm_event) argument
158 vq_compress(Vuid_queue *vq, int factor) argument
246 vq_delete_node(Vuid_queue *vq, Vuid_q_node *vqn) argument
270 vq_alloc_node(Vuid_queue *vq) argument
284 vq_free_node(Vuid_queue *vq, Vuid_q_node *vqn) argument
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dbnxe_hw_debug.c184 int vq = -1; local
199 if (vq_regname[15] == '_') vq = (int)(vq_regname[14] - '0');
200 else if (vq_regname[16] == '_') vq = (int)(10 * (vq_regname[14] - '0') + vq_regname[15] - '0');
202 if ((vq <0) || (vq > 31)) {
208 REG_WR(pdev,PXP2_REG_RQ_HOQ_RAM_RD_REQ,vq);
238 vq, len, addr_hi, addr_lo, clients[client_id], req_id, done, func_desc, atc);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dqdivrem.c81 __udivmoddi4(u_quad_t uq, u_quad_t vq, u_quad_t *arq) argument
93 if (vq == 0) {
102 if (uq < vq) {
130 tmp.uq = vq;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtables.c66 typedef struct vq { struct
/illumos-gate/usr/src/uts/i86pc/io/viona/
H A Dviona_main.c932 uint16_t vq = (uint16_t)val; local
937 return (viona_ioc_ring_kick(link, vq));
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c419 vrrp_queryinfo_t *vq; local
422 if ((err = vrrp_query(vrrp_vh, vn, &vq)) != VRRP_SUCCESS)
425 ofmt_print(ofmt, vq);
426 free(vq);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_queue.c226 vdev_queue_class_tree(vdev_queue_t *vq, zio_priority_t p) argument
228 return (&vq->vq_class[p].vqc_queued_tree);
232 vdev_queue_type_tree(vdev_queue_t *vq, zio_type_t t) argument
236 return (&vq->vq_read_offset_tree);
238 return (&vq->vq_write_offset_tree);
240 return (&vq->vq_trim_offset_tree);
260 vdev_queue_t *vq = &vd->vdev_queue; local
262 mutex_init(&vq->vq_lock, NULL, MUTEX_DEFAULT, NULL);
263 vq->vq_vdev = vd;
265 avl_create(&vq
303 vdev_queue_t *vq = &vd->vdev_queue; local
316 vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio) argument
332 vdev_queue_io_remove(vdev_queue_t *vq, zio_t *zio) argument
349 vdev_queue_pending_add(vdev_queue_t *vq, zio_t *zio) argument
365 vdev_queue_pending_remove(vdev_queue_t *vq, zio_t *zio) argument
500 vdev_queue_class_to_issue(vdev_queue_t *vq) argument
541 vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio) argument
707 vdev_queue_io_to_issue(vdev_queue_t *vq) argument
769 vdev_queue_t *vq = &zio->io_vd->vdev_queue; local
825 vdev_queue_t *vq = &zio->io_vd->vdev_queue; local
852 vdev_queue_t *vq = &zio->io_vd->vdev_queue; local
[all...]
H A Dvdev.c4557 vdev_queue_t *vq = &vd->vdev_queue; local
4559 mutex_enter(&vq->vq_lock);
4560 if (avl_numnodes(&vq->vq_active_tree) > 0) {
4570 fio = avl_first(&vq->vq_active_tree);
4576 vq->vq_io_complete_ts);
4581 mutex_exit(&vq->vq_lock);

Completed in 86 milliseconds