Home
last modified time | relevance | path

Searched refs:total_sg (Results 1 – 1 of 1) sorted by relevance

/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio_ring.c204 unsigned int total_sg) in virtqueue_use_indirect() argument
212 return (vq->indirect && total_sg > 1 && vq->vq.num_free); in virtqueue_use_indirect()
393 unsigned int total_sg, in alloc_indirect_split() argument
406 desc = kmalloc_array(total_sg, sizeof(struct vring_desc), gfp); in alloc_indirect_split()
410 for (i = 0; i < total_sg; i++) in alloc_indirect_split()
417 unsigned int total_sg, in virtqueue_add_split() argument
443 BUG_ON(total_sg == 0); in virtqueue_add_split()
447 if (virtqueue_use_indirect(_vq, total_sg)) in virtqueue_add_split()
448 desc = alloc_indirect_split(_vq, total_sg, gfp); in virtqueue_add_split()
451 WARN_ON_ONCE(total_sg > vq->split.vring.num && !vq->indirect); in virtqueue_add_split()
[all …]