Lines Matching refs:guest_sg
443 struct scatterlist guest_sg[RINGSIZE], *sgs[2]; in main() local
503 sg_init_table(guest_sg, 1); in main()
504 sg_set_buf(&guest_sg[0], __user_addr_max - 1, 1); in main()
505 sg_init_table(guest_sg+1, 1); in main()
506 sg_set_buf(&guest_sg[1], __user_addr_max - 3, 2); in main()
507 sgs[0] = &guest_sg[0]; in main()
508 sgs[1] = &guest_sg[1]; in main()
569 sg_init_table(guest_sg, RINGSIZE); in main()
571 sg_set_buf(&guest_sg[i], in main()
581 err = virtqueue_add_outbuf(vq, guest_sg, RINGSIZE, &err, GFP_KERNEL); in main()
630 sg_init_table(guest_sg, 1); in main()
631 sg_set_buf(&guest_sg[0], __user_addr_max - 1, 1); in main()
633 err = virtqueue_add_outbuf(vq, guest_sg, 1, &err, GFP_KERNEL); in main()
675 sg_init_table(guest_sg, 4); in main()
676 sg_set_buf(&guest_sg[0], d, sizeof(*d)*2); in main()
677 sg_set_buf(&guest_sg[1], d + 2, sizeof(*d)*1); in main()
678 sg_set_buf(&guest_sg[2], data + 6, 4); in main()
679 sg_set_buf(&guest_sg[3], d + 3, sizeof(*d)*3); in main()
681 err = virtqueue_add_outbuf(vq, guest_sg, 4, &err, GFP_KERNEL); in main()