Lines Matching refs:guest_sg
447 struct scatterlist guest_sg[RINGSIZE], *sgs[2]; in main() local
508 sg_init_table(guest_sg, 1); in main()
509 sg_set_buf(&guest_sg[0], __user_addr_max - 1, 1); in main()
510 sg_init_table(guest_sg+1, 1); in main()
511 sg_set_buf(&guest_sg[1], __user_addr_max - 3, 2); in main()
512 sgs[0] = &guest_sg[0]; in main()
513 sgs[1] = &guest_sg[1]; in main()
574 sg_init_table(guest_sg, RINGSIZE); in main()
576 sg_set_buf(&guest_sg[i], in main()
586 err = virtqueue_add_outbuf(vq, guest_sg, RINGSIZE, &err, GFP_KERNEL); in main()
635 sg_init_table(guest_sg, 1); in main()
636 sg_set_buf(&guest_sg[0], __user_addr_max - 1, 1); in main()
638 err = virtqueue_add_outbuf(vq, guest_sg, 1, &err, GFP_KERNEL); in main()
680 sg_init_table(guest_sg, 4); in main()
681 sg_set_buf(&guest_sg[0], d, sizeof(*d)*2); in main()
682 sg_set_buf(&guest_sg[1], d + 2, sizeof(*d)*1); in main()
683 sg_set_buf(&guest_sg[2], data + 6, 4); in main()
684 sg_set_buf(&guest_sg[3], d + 3, sizeof(*d)*3); in main()
686 err = virtqueue_add_outbuf(vq, guest_sg, 4, &err, GFP_KERNEL); in main()