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

/linux-4.1.27/drivers/virtio/
H A Dvirtio_ring.c102 unsigned int total_sg, gfp_t gfp) alloc_indirect()
114 desc = kmalloc(total_sg * sizeof(struct vring_desc), gfp); alloc_indirect()
118 for (i = 0; i < total_sg; i++) alloc_indirect()
125 unsigned int total_sg, virtqueue_add()
160 BUG_ON(total_sg > vq->vring.num); virtqueue_add()
161 BUG_ON(total_sg == 0); virtqueue_add()
167 if (vq->indirect && total_sg > 1 && vq->vq.num_free) virtqueue_add()
168 desc = alloc_indirect(_vq, total_sg, gfp); virtqueue_add()
178 vq->vring.desc[head].len = cpu_to_virtio32(_vq->vdev, total_sg * sizeof(struct vring_desc)); virtqueue_add()
187 descs_used = total_sg; virtqueue_add()
279 unsigned int i, total_sg = 0; virtqueue_add_sgs() local
285 total_sg++; virtqueue_add_sgs()
287 return virtqueue_add(_vq, sgs, total_sg, out_sgs, in_sgs, data, gfp); virtqueue_add_sgs()
101 alloc_indirect(struct virtqueue *_vq, unsigned int total_sg, gfp_t gfp) alloc_indirect() argument
123 virtqueue_add(struct virtqueue *_vq, struct scatterlist *sgs[], unsigned int total_sg, unsigned int out_sgs, unsigned int in_sgs, void *data, gfp_t gfp) virtqueue_add() argument

Completed in 92 milliseconds