Lines Matching refs:RINGSIZE
24 #define RINGSIZE 256 macro
154 mapsize = vring_size(RINGSIZE, ALIGN) in parallel_test()
155 + RINGSIZE * 2 * sizeof(int) in parallel_test()
156 + RINGSIZE * 6 * sizeof(struct vring_desc); in parallel_test()
191 vring_init(&vrh.vring, RINGSIZE, host_map, ALIGN); in parallel_test()
192 vringh_init_user(&vrh, features, RINGSIZE, true, in parallel_test()
303 data = guest_map + vring_size(RINGSIZE, ALIGN); in parallel_test()
304 indirects = (void *)data + (RINGSIZE + 1) * 2 * sizeof(int); in parallel_test()
322 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &gvdev.vdev, true, in parallel_test()
330 __kfree_ignore_end = indirects + RINGSIZE * 6; in parallel_test()
348 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
383 __kmalloc_fake = indirects + (xfers % RINGSIZE) * 4; in parallel_test()
447 struct scatterlist guest_sg[RINGSIZE], *sgs[2]; in main()
450 struct vring_used_elem used[RINGSIZE]; in main()
488 memset(__user_addr_min, 0, vring_size(RINGSIZE, ALIGN)); in main()
491 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &vdev, true, false, in main()
497 vring_init(&vrh.vring, RINGSIZE, __user_addr_min, ALIGN); in main()
498 vringh_init_user(&vrh, vdev.features, RINGSIZE, true, in main()
516 __kmalloc_fake = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
566 __kfree_ignore_start = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
574 sg_init_table(guest_sg, RINGSIZE); in main()
575 for (i = 0; i < RINGSIZE; i++) { in main()
585 __kmalloc_fake = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
586 err = virtqueue_add_outbuf(vq, guest_sg, RINGSIZE, &err, GFP_KERNEL); in main()
602 assert(riov.used == RINGSIZE); in main()
604 assert(riov.used == RINGSIZE * USER_MEM/4); in main()
610 for (i = 0; i < RINGSIZE * USER_MEM/4; i += 3) { in main()
612 if (err != 3 && i + err != RINGSIZE * USER_MEM/4) in main()
637 for (i = 0; i < RINGSIZE; i++) { in main()
647 for (i = 0; i < RINGSIZE; i++) { in main()
655 assert(vrh.vring.used->idx % RINGSIZE != 0); in main()
656 err = vringh_complete_multi_user(&vrh, used, RINGSIZE); in main()
661 for (i = 0; i < RINGSIZE; i++) { in main()
674 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &vdev, true, in main()
690 vring_init(&vring, RINGSIZE, __user_addr_min, ALIGN); in main()