Home
last modified time | relevance | path

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

/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_ring.h105 struct vring_desc { struct
149 typedef struct vring_desc __attribute__((aligned(VRING_DESC_ALIGN_SIZE)))
202 vr->avail = (struct vring_avail *)((char *)p + num * sizeof(struct vring_desc)); in vring_init()
209 return ((sizeof(struct vring_desc) * num + sizeof(__virtio16) * (3 + num) in vring_size()
/openbmc/linux/include/uapi/linux/
H A Dvirtio_ring.h107 struct vring_desc { struct
151 typedef struct vring_desc __attribute__((aligned(VRING_DESC_ALIGN_SIZE)))
204 vr->avail = (struct vring_avail *)((char *)p + num * sizeof(struct vring_desc)); in vring_init()
211 return ((sizeof(struct vring_desc) * num + sizeof(__virtio16) * (3 + num) in vring_size()
/openbmc/u-boot/include/
H A Dvirtio_ring.h47 struct vring_desc { struct
79 struct vring_desc *desc;
133 vr->avail = p + num * sizeof(struct vring_desc); in vring_init()
140 return ((sizeof(struct vring_desc) * num + in vring_size()
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxbf-tmfifo.c82 struct vring_desc *desc;
83 struct vring_desc *desc_head;
84 struct vring_desc drop_desc;
326 static struct vring_desc *
351 struct vring_desc *desc, u32 len) in mlxbf_tmfifo_release_desc()
373 struct vring_desc *desc) in mlxbf_tmfifo_get_pkt_len()
392 struct vring_desc *desc_head; in mlxbf_tmfifo_release_pkt()
412 struct vring_desc *desc, bool is_rx) in mlxbf_tmfifo_init_net_desc()
422 static struct vring_desc *
425 struct vring_desc *desc; in mlxbf_tmfifo_get_next_pkt()
[all …]
/openbmc/qemu/subprojects/libvduse/
H A Dlibvduse.c91 struct vring_desc *desc;
465 vduse_queue_read_indirect_desc(VduseDev *dev, struct vring_desc *desc, in vduse_queue_read_indirect_desc()
468 struct vring_desc *ori_desc; in vduse_queue_read_indirect_desc()
471 if (len > (VIRTQUEUE_MAX_SIZE * sizeof(struct vring_desc))) { in vduse_queue_read_indirect_desc()
501 static int vduse_queue_read_next_desc(struct vring_desc *desc, int i, in vduse_queue_read_next_desc()
648 struct vring_desc *desc = vq->vring.desc; in vduse_queue_map_desc()
656 struct vring_desc desc_buf[VIRTQUEUE_MAX_SIZE]; in vduse_queue_map_desc()
661 if (le32toh(desc[i].len) % sizeof(struct vring_desc)) { in vduse_queue_map_desc()
669 max = desc_len / sizeof(struct vring_desc); in vduse_queue_map_desc()
860 len = sizeof(struct vring_desc); in vduse_queue_update_vring()
[all …]
/openbmc/linux/drivers/vhost/
H A Dvringh.c188 const struct vring_desc *desc, in move_to_indirect()
189 struct vring_desc **descs, int *desc_max) in move_to_indirect()
200 if (unlikely(len % sizeof(struct vring_desc))) { in move_to_indirect()
211 *desc_max = len / sizeof(struct vring_desc); in move_to_indirect()
246 struct vring_desc **descs, int *desc_max) in return_from_indirect()
269 size_t part, len = sizeof(struct vring_desc); in slow_copy()
306 struct vring_desc desc, *descs; in __vringh_iov()
676 vrh->vring.desc = (__force struct vring_desc *)desc; in vringh_init_user()
932 struct vring_desc *desc, in vringh_init_kern()
1408 struct vring_desc *desc, in vringh_init_iotlb()
[all …]
H A Dvhost.c1393 struct vring_desc *desc, int idx) in vhost_get_desc()
2448 static unsigned next_desc(struct vhost_virtqueue *vq, struct vring_desc *desc) in next_desc()
2465 struct vring_desc *indirect) in get_indirect()
2467 struct vring_desc desc; in get_indirect()
2567 struct vring_desc desc; in vhost_get_vq_desc()
/openbmc/linux/include/linux/
H A Dvringh.h190 struct vring_desc *desc,
299 struct vring_desc *desc,
305 struct vring_desc *desc,
/openbmc/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.c2391 virtqueue_read_indirect_desc(VuDev *dev, struct vring_desc *desc, in virtqueue_read_indirect_desc()
2394 struct vring_desc *ori_desc; in virtqueue_read_indirect_desc()
2397 if (len > (VIRTQUEUE_MAX_SIZE * sizeof(struct vring_desc))) { in virtqueue_read_indirect_desc()
2428 virtqueue_read_next_desc(VuDev *dev, struct vring_desc *desc, in virtqueue_read_next_desc()
2468 struct vring_desc *desc; in vu_queue_get_avail_bytes()
2469 struct vring_desc desc_buf[VIRTQUEUE_MAX_SIZE]; in vu_queue_get_avail_bytes()
2480 if (le32toh(desc[i].len) % sizeof(struct vring_desc)) { in vu_queue_get_avail_bytes()
2495 max = desc_len / sizeof(struct vring_desc); in vu_queue_get_avail_bytes()
2788 struct vring_desc *desc = vq->vring.desc; in vu_queue_map_desc()
2796 struct vring_desc desc_buf[VIRTQUEUE_MAX_SIZE]; in vu_queue_map_desc()
[all …]
H A Dlibvhost-user.h285 struct vring_desc *desc;
/openbmc/linux/tools/virtio/ringtest/
H A Dvirtio_ring_0_9.c105 struct vring_desc *desc; in add_inbuf()
273 struct vring_desc *desc; in use_buf()
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio.c245 vq->avail = vq->desc + vq->size * sizeof(struct vring_desc); in qvring_init()
281 indirect->desc = guest_alloc(alloc, sizeof(struct vring_desc) * elem); in qvring_indirect_desc_setup()
373 sizeof(struct vring_desc) * indirect->elem); in qvirtqueue_add_indirect()
H A Dvirtio.h99 return ((sizeof(struct vring_desc) * num + sizeof(uint16_t) * (3 + num) in qvring_size()
/openbmc/linux/drivers/virtio/
H A Dvirtio_ring.c72 struct vring_desc *indir_desc; /* Indirect descriptor, if any. */
444 const struct vring_desc *desc) in vring_unmap_one_split_indirect()
492 static struct vring_desc *alloc_indirect_split(struct virtqueue *_vq, in alloc_indirect_split()
496 struct vring_desc *desc; in alloc_indirect_split()
506 desc = kmalloc_array(total_sg, sizeof(struct vring_desc), gfp); in alloc_indirect_split()
516 struct vring_desc *desc, in virtqueue_add_desc_split()
555 struct vring_desc *desc; in virtqueue_add_split()
653 vq, desc, total_sg * sizeof(struct vring_desc), in virtqueue_add_split()
664 total_sg * sizeof(struct vring_desc), in virtqueue_add_split()
791 struct vring_desc *indir_desc = in detach_buf_split()
[all …]
/openbmc/linux/tools/virtio/
H A Dvringh_test.c156 + RINGSIZE * 6 * sizeof(struct vring_desc); in parallel_test()
296 struct vring_desc *indirects; in parallel_test()
666 struct vring_desc *d = __user_addr_max - USER_MEM/2; in main()
/openbmc/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c97 struct vring_desc *desc = (struct vring_desc *) in vdpasim_queue_ready()
/openbmc/qemu/hw/virtio/
H A Dvirtio-hmp-cmds.c259 s->vring_desc); in hmp_virtio_queue_status()
H A Dvirtio.c4193 status->vring_desc = vdev->vq[queue].vring.desc; in qmp_x_query_virtio_queue_status()
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_ring.c19 struct vring_desc *desc; in virtqueue_add()
/openbmc/linux/Documentation/driver-api/virtio/
H A Dvirtio.rst41 :identifiers: struct vring_desc
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c2808 (struct vring_desc *)(uintptr_t)cvq->desc_addr, in setup_cvq_vring()