Lines Matching defs:indirect
169 /* Host supports indirect buffers */
170 bool indirect;
248 * If the host supports indirect descriptor tables, and we have multiple
249 * buffers, then go indirect. FIXME: tune this threshold
251 return (vq->indirect && total_sg > 1 && vq->vq.num_free);
521 bool indirect)
531 if (!indirect) {
558 bool indirect;
563 BUG_ON(ctx && vq->indirect);
580 WARN_ON_ONCE(total_sg > vq->split.vring.num && !vq->indirect);
585 indirect = true;
586 /* Set up rest to use this indirect table. */
590 indirect = false;
604 if (indirect)
618 /* Note that we trust indirect descriptor
623 indirect);
634 /* Note that we trust indirect descriptor
641 indirect);
646 if (!indirect && vq->do_unmap)
650 if (indirect) {
651 /* Now that the indirect table is filled in, map it. */
673 if (indirect)
678 /* Store token and indirect buffer state. */
680 if (indirect)
711 if (indirect)
719 if (indirect) {
727 if (indirect)
790 if (vq->indirect) {
795 /* Free the indirect table, if any, now that it's unmapped. */
1327 /* Now that the indirect table is filled in, map it. */
1375 /* Store token and indirect buffer state. */
1421 BUG_ON(ctx && vq->indirect);
1446 WARN_ON_ONCE(total_sg > vq->packed.vring.num && !vq->indirect);
1627 if (vq->indirect) {
1630 /* Free the indirect table, if any, now that it's unmapped. */
2096 vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) &&
2641 vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) &&