Lines Matching refs:vq

910 	 * when per-vq MSIX is available.
946 struct virtqueue *vq = sc->vtnet_txqs[0].vtntx_vq;
948 IFQ_SET_MAXLEN(&ifp->if_snd, virtqueue_size(vq) - 1);
949 ifp->if_snd.ifq_drv_maxlen = virtqueue_size(vq) - 1;
1185 struct virtqueue *vq;
1194 vq = rxq->vtnrx_vq;
1197 for (nbufs = 0; !virtqueue_full(vq); nbufs++) {
1204 virtqueue_notify(vq);
1220 struct virtqueue *vq;
1230 vq = rxq->vtnrx_vq;
1233 while ((m = virtqueue_drain(vq, &last)) != NULL) {
1238 KASSERT(virtqueue_empty(vq),
1663 struct virtqueue *vq;
1668 vq = rxq->vtnrx_vq;
1672 m = virtqueue_dequeue(vq, &len);
1760 struct virtqueue *vq;
1766 vq = rxq->vtnrx_vq;
1775 m = virtqueue_dequeue(vq, &len);
1838 virtqueue_notify(vq);
1932 struct virtqueue *vq;
1935 vq = txq->vtntx_vq;
1937 return (virtqueue_nfree(vq) <= sc->vtnet_tx_intr_thresh);
1943 struct virtqueue *vq;
1945 vq = txq->vtntx_vq;
1948 virtqueue_notify(vq);
1959 virtqueue_disable_intr(vq);
1969 struct virtqueue *vq;
1979 vq = txq->vtntx_vq;
1982 while ((txhdr = virtqueue_drain(vq, &last)) != NULL) {
1989 KASSERT(virtqueue_empty(vq),
2146 struct virtqueue *vq;
2152 vq = txq->vtntx_vq;
2176 error = virtqueue_enqueue(vq, txhdr, sg, sg->sg_nseg, 0);
2246 struct virtqueue *vq;
2251 vq = txq->vtntx_vq;
2266 if (virtqueue_full(vq))
2312 struct virtqueue *vq;
2318 vq = txq->vtntx_vq;
2345 if (virtqueue_full(vq)) {
2465 struct virtqueue *vq;
2470 vq = txq->vtntx_vq;
2474 while ((txhdr = virtqueue_dequeue(vq, NULL)) != NULL) {
2487 if (virtqueue_empty(vq))
3098 struct virtqueue *vq;
3100 vq = sc->vtnet_ctrl_vq;
3106 KASSERT(virtqueue_empty(vq),
3107 ("%s: ctrl vq %p not empty", __func__, vq));
3114 struct virtqueue *vq;
3116 vq = sc->vtnet_ctrl_vq;
3122 if (!virtqueue_empty(vq))
3124 if (virtqueue_enqueue(vq, cookie, sg, readable, writable) != 0)
3131 virtqueue_notify(vq);
3132 virtqueue_poll(vq, NULL);
3885 struct virtqueue *vq;
3887 vq = txq->vtntx_vq;
3890 return (virtqueue_postpone_intr(vq, VQ_POSTPONE_LONG));