Lines Matching full:sg
81 struct sglist *sg = txq->vtntx_sg; in vtnet_netmap_txsync() local
98 sglist_reset(sg); // cheap in vtnet_netmap_txsync()
99 err = sglist_append(sg, &txq->vtntx_shrhdr, sc->vtnet_hdr_size); in vtnet_netmap_txsync()
100 err |= sglist_append_phys(sg, paddr + offset, len); in vtnet_netmap_txsync()
103 err = virtqueue_enqueue(vq, /*cookie=*/txq, sg, in vtnet_netmap_txsync()
104 /*readable=*/sg->sg_nseg, in vtnet_netmap_txsync()
169 struct sglist sg = { ss, 0, 0, 2 }; in vtnet_netmap_kring_refill() local
185 sglist_reset(&sg); in vtnet_netmap_kring_refill()
186 err = sglist_append(&sg, &rxq->vtnrx_shrhdr, sc->vtnet_hdr_size); in vtnet_netmap_kring_refill()
187 err |= sglist_append_phys(&sg, paddr + offset, in vtnet_netmap_kring_refill()
192 err = virtqueue_enqueue(vq, /*cookie=*/rxq, &sg, in vtnet_netmap_kring_refill()
193 /*readable=*/0, /*writeable=*/sg.sg_nseg); in vtnet_netmap_kring_refill()