Searched refs:vring_desc (Results 1 – 9 of 9) sorted by relevance
/linux/include/uapi/linux/ |
H A D | virtio_ring.h | 107 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()
|
/linux/drivers/platform/mellanox/ |
H A D | mlxbf-tmfifo.c | 82 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 …]
|
/linux/drivers/vhost/ |
H A D | vringh.c | 188 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 D | vhost.c | 1407 struct vring_desc *desc, int idx) in vhost_get_desc() 2462 static unsigned next_desc(struct vhost_virtqueue *vq, struct vring_desc *desc) in next_desc() 2479 struct vring_desc *indirect) in get_indirect() 2481 struct vring_desc desc; in get_indirect() 2581 struct vring_desc desc; in vhost_get_vq_desc()
|
/linux/include/linux/ |
H A D | vringh.h | 190 struct vring_desc *desc, 299 struct vring_desc *desc, 305 struct vring_desc *desc,
|
/linux/tools/virtio/ringtest/ |
H A D | virtio_ring_0_9.c | 105 struct vring_desc *desc; in add_inbuf() 273 struct vring_desc *desc; in use_buf()
|
/linux/drivers/virtio/ |
H A D | virtio_ring.c | 76 struct vring_desc *indir_desc; 475 static struct vring_desc *alloc_indirect_split(struct virtqueue *_vq, in alloc_indirect_split() 480 struct vring_desc *desc; in alloc_indirect_split() 505 struct vring_desc *desc, in virtqueue_add_desc_split() 542 struct vring_desc *desc; in virtqueue_add_split() 643 vq, desc, total_sg * sizeof(struct vring_desc), in virtqueue_add_split() 651 total_sg * sizeof(struct vring_desc), in virtqueue_add_split() 776 struct vring_desc *indir_desc = in detach_buf_split() 787 BUG_ON(len == 0 || len % sizeof(struct vring_desc)); in detach_buf_split() 789 num = len / sizeof(struct vring_desc); in detach_buf_split()
|
/linux/tools/virtio/ |
H A D | vringh_test.c | 156 + RINGSIZE * 6 * sizeof(struct vring_desc); in parallel_test() 299 struct vring_desc *indirects; in parallel_test() 669 struct vring_desc *d = __user_addr_max - USER_MEM/2; in main()
|
/linux/Documentation/driver-api/virtio/ |
H A D | virtio.rst | 41 :identifiers: struct vring_desc
|