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()
188 vring_init(&vrh.vring, RINGSIZE, host_map, ALIGN); in parallel_test()
189 vringh_init_user(&vrh, features, RINGSIZE, true, in parallel_test()
300 data = guest_map + vring_size(RINGSIZE, ALIGN); in parallel_test()
301 indirects = (void *)data + (RINGSIZE + 1) * 2 * sizeof(int); in parallel_test()
318 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &gvdev.vdev, true, in parallel_test()
326 __kfree_ignore_end = indirects + RINGSIZE * 6; in parallel_test()
344 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
379 __kmalloc_fake = indirects + (xfers % RINGSIZE) * 4; in parallel_test()
443 struct scatterlist guest_sg[RINGSIZE], *sgs[2]; in main()
446 struct vring_used_elem used[RINGSIZE]; in main()
483 memset(__user_addr_min, 0, vring_size(RINGSIZE, ALIGN)); in main()
486 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &vdev, true, false, in main()
492 vring_init(&vrh.vring, RINGSIZE, __user_addr_min, ALIGN); in main()
493 vringh_init_user(&vrh, vdev.features, RINGSIZE, true, in main()
511 __kmalloc_fake = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
561 __kfree_ignore_start = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
569 sg_init_table(guest_sg, RINGSIZE); in main()
570 for (i = 0; i < RINGSIZE; i++) { in main()
580 __kmalloc_fake = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
581 err = virtqueue_add_outbuf(vq, guest_sg, RINGSIZE, &err, GFP_KERNEL); in main()
597 assert(riov.used == RINGSIZE); in main()
599 assert(riov.used == RINGSIZE * USER_MEM/4); in main()
605 for (i = 0; i < RINGSIZE * USER_MEM/4; i += 3) { in main()
607 if (err != 3 && i + err != RINGSIZE * USER_MEM/4) in main()
632 for (i = 0; i < RINGSIZE; i++) { in main()
642 for (i = 0; i < RINGSIZE; i++) { in main()
650 assert(vrh.vring.used->idx % RINGSIZE != 0); in main()
651 err = vringh_complete_multi_user(&vrh, used, RINGSIZE); in main()
656 for (i = 0; i < RINGSIZE; i++) { in main()
669 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &vdev, true, in main()
685 vring_init(&vring, RINGSIZE, __user_addr_min, ALIGN); in main()