Lines Matching refs:sg
425 struct scatterlist sg; in send_forget_request() local
439 sg_init_one(&sg, req, sizeof(*req)); in send_forget_request()
443 ret = virtqueue_add_outbuf(vq, &sg, 1, forget, GFP_ATOMIC); in send_forget_request()
1083 static unsigned int sg_init_fuse_pages(struct scatterlist *sg, in sg_init_fuse_pages() argument
1093 sg_init_table(&sg[i], 1); in sg_init_fuse_pages()
1095 sg_set_page(&sg[i], pages[i], this_len, page_descs[i].offset); in sg_init_fuse_pages()
1103 static unsigned int sg_init_fuse_args(struct scatterlist *sg, in sg_init_fuse_args() argument
1117 sg_init_one(&sg[total_sgs++], argbuf, len); in sg_init_fuse_args()
1120 total_sgs += sg_init_fuse_pages(&sg[total_sgs], in sg_init_fuse_args()
1139 struct scatterlist *sg = stack_sg; in virtio_fs_enqueue_req() local
1155 sg = kmalloc_array(total_sgs, sizeof(sg[0]), GFP_ATOMIC); in virtio_fs_enqueue_req()
1156 if (!sgs || !sg) { in virtio_fs_enqueue_req()
1168 sg_init_one(&sg[out_sgs++], &req->in.h, sizeof(req->in.h)); in virtio_fs_enqueue_req()
1169 out_sgs += sg_init_fuse_args(&sg[out_sgs], req, in virtio_fs_enqueue_req()
1176 sg_init_one(&sg[out_sgs + in_sgs++], in virtio_fs_enqueue_req()
1178 in_sgs += sg_init_fuse_args(&sg[out_sgs + in_sgs], req, in virtio_fs_enqueue_req()
1187 sgs[i] = &sg[i]; in virtio_fs_enqueue_req()
1229 kfree(sg); in virtio_fs_enqueue_req()