Searched refs:guest_sg (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/tools/virtio/ |
H A D | vringh_test.c | 440 struct scatterlist guest_sg[RINGSIZE], *sgs[2]; main() local 499 sg_init_table(guest_sg, 1); main() 500 sg_set_buf(&guest_sg[0], __user_addr_max - 1, 1); main() 501 sg_init_table(guest_sg+1, 1); main() 502 sg_set_buf(&guest_sg[1], __user_addr_max - 3, 2); main() 503 sgs[0] = &guest_sg[0]; main() 504 sgs[1] = &guest_sg[1]; main() 565 sg_init_table(guest_sg, RINGSIZE); main() 567 sg_set_buf(&guest_sg[i], main() 577 err = virtqueue_add_outbuf(vq, guest_sg, RINGSIZE, &err, GFP_KERNEL); main() 626 sg_init_table(guest_sg, 1); main() 627 sg_set_buf(&guest_sg[0], __user_addr_max - 1, 1); main() 629 err = virtqueue_add_outbuf(vq, guest_sg, 1, &err, GFP_KERNEL); main() 671 sg_init_table(guest_sg, 4); main() 672 sg_set_buf(&guest_sg[0], d, sizeof(*d)*2); main() 673 sg_set_buf(&guest_sg[1], d + 2, sizeof(*d)*1); main() 674 sg_set_buf(&guest_sg[2], data + 6, 4); main() 675 sg_set_buf(&guest_sg[3], d + 3, sizeof(*d)*3); main() 677 err = virtqueue_add_outbuf(vq, guest_sg, 4, &err, GFP_KERNEL); main()
|
Completed in 44 milliseconds