Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/virtio/
H A Dvirtio_ring.c258 for (; num && vring_size(num, vring_align) > PAGE_SIZE; num /= 2) { in vring_create_virtqueue()
259 queue = memalign(PAGE_SIZE, vring_size(num, vring_align)); in vring_create_virtqueue()
269 queue = memalign(PAGE_SIZE, vring_size(num, vring_align)); in vring_create_virtqueue()
274 memset(queue, 0, vring_size(num, vring_align)); in vring_create_virtqueue()
/openbmc/linux/tools/virtio/
H A Dvringh_test.c154 mapsize = vring_size(RINGSIZE, ALIGN) in parallel_test()
300 data = guest_map + vring_size(RINGSIZE, ALIGN); in parallel_test()
485 memset(__user_addr_min, 0, vring_size(RINGSIZE, ALIGN)); in main()
513 __kmalloc_fake = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
563 __kfree_ignore_start = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
582 __kmalloc_fake = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
H A Dvirtio_test.c103 memset(info->ring, 0, vring_size(num, 4096)); in vq_reset()
118 r = posix_memalign(&info->ring, 4096, vring_size(num, 4096)); in vq_info_add()
/openbmc/linux/tools/virtio/ringtest/
H A Dvirtio_ring_0_9.c70 ret = posix_memalign(&p, 0x1000, vring_size(ring_size, 0x1000)); in alloc_ring()
75 memset(p, 0, vring_size(ring_size, 0x1000)); in alloc_ring()
/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_ring.h207 static inline unsigned vring_size(unsigned int num, unsigned long align) in vring_size() function
/openbmc/linux/include/uapi/linux/
H A Dvirtio_ring.h209 static inline unsigned vring_size(unsigned int num, unsigned long align) in vring_size() function
/openbmc/u-boot/include/
H A Dvirtio_ring.h138 static inline unsigned int vring_size(unsigned int num, unsigned long align) in vring_size() function
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxbf-tmfifo.c255 size = vring_size(vring->num, vring->align); in mlxbf_tmfifo_free_vrings()
287 size = vring_size(vring->num, vring->align); in mlxbf_tmfifo_alloc_vrings()
1082 size = vring_size(vring->num, vring->align); in mlxbf_tmfifo_virtio_find_vqs()
/openbmc/linux/drivers/remoteproc/
H A Dremoteproc_virtio.c136 size = vring_size(num, rvring->align); in rp_find_vq()
H A Dremoteproc_core.c336 size = PAGE_ALIGN(vring_size(rvring->num, rvring->align)); in rproc_alloc_vring()
/openbmc/linux/drivers/virtio/
H A Dvirtio_ring.c1107 for (; num && vring_size(num, vring_align) > PAGE_SIZE; num /= 2) { in vring_alloc_queue_split()
1108 queue = vring_alloc_queue(vdev, vring_size(num, vring_align), in vring_alloc_queue_split()
1123 queue = vring_alloc_queue(vdev, vring_size(num, vring_align), in vring_alloc_queue_split()
1133 vring_split->queue_size_in_bytes = vring_size(num, vring_align); in vring_alloc_queue_split()