Lines Matching defs:total_sg

204 					  unsigned int total_sg)
212 return (vq->indirect && total_sg > 1 && vq->vq.num_free);
393 unsigned int total_sg,
406 desc = kmalloc_array(total_sg, sizeof(struct vring_desc), gfp);
410 for (i = 0; i < total_sg; i++)
417 unsigned int total_sg,
443 BUG_ON(total_sg == 0);
447 if (virtqueue_use_indirect(_vq, total_sg))
448 desc = alloc_indirect_split(_vq, total_sg, gfp);
451 WARN_ON_ONCE(total_sg > vq->split.vring.num && !vq->indirect);
464 descs_used = total_sg;
513 vq, desc, total_sg * sizeof(struct vring_desc),
524 total_sg * sizeof(struct vring_desc));
575 for (n = 0; n < total_sg; n++) {
962 static struct vring_packed_desc *alloc_indirect_packed(unsigned int total_sg,
974 desc = kmalloc_array(total_sg, sizeof(struct vring_packed_desc), gfp);
981 unsigned int total_sg,
994 desc = alloc_indirect_packed(total_sg, gfp);
1026 total_sg * sizeof(struct vring_packed_desc),
1032 vq->packed.vring.desc[head].len = cpu_to_le32(total_sg *
1038 vq->packed.desc_extra[id].len = total_sg *
1095 unsigned int total_sg,
1122 BUG_ON(total_sg == 0);
1124 if (virtqueue_use_indirect(_vq, total_sg)) {
1125 err = virtqueue_add_indirect_packed(vq, sgs, total_sg, out_sgs,
1138 WARN_ON_ONCE(total_sg > vq->packed.vring.num && !vq->indirect);
1142 descs_used = total_sg;
1164 (++c == total_sg ? 0 : VRING_DESC_F_NEXT) |
1229 for (n = 0; n < total_sg; n++) {
1707 unsigned int total_sg,
1716 return vq->packed_ring ? virtqueue_add_packed(_vq, sgs, total_sg,
1718 virtqueue_add_split(_vq, sgs, total_sg,
1743 unsigned int i, total_sg = 0;
1750 total_sg++;
1752 return virtqueue_add(_vq, sgs, total_sg, out_sgs, in_sgs,