Lines Matching refs:sg
80 struct scatterlist sg[VIRTQUEUE_NUM]; member
171 static int pack_sg_list(struct scatterlist *sg, int start, in pack_sg_list() argument
183 sg_unmark_end(&sg[index]); in pack_sg_list()
184 sg_set_buf(&sg[index++], data, s); in pack_sg_list()
189 sg_mark_end(&sg[index - 1]); in pack_sg_list()
218 pack_sg_list_p(struct scatterlist *sg, int start, int limit, in pack_sg_list_p() argument
236 sg_unmark_end(&sg[index]); in pack_sg_list_p()
237 sg_set_page(&sg[index++], pdata[i++], s, data_off); in pack_sg_list_p()
244 sg_mark_end(&sg[index - 1]); in pack_sg_list_p()
272 out = pack_sg_list(chan->sg, 0, in p9_virtio_request()
275 sgs[out_sgs++] = chan->sg; in p9_virtio_request()
277 in = pack_sg_list(chan->sg, out, in p9_virtio_request()
280 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_request()
449 out = pack_sg_list(chan->sg, 0, in p9_virtio_zc_request()
453 sgs[out_sgs++] = chan->sg; in p9_virtio_zc_request()
456 sgs[out_sgs++] = chan->sg + out; in p9_virtio_zc_request()
457 out += pack_sg_list_p(chan->sg, out, VIRTQUEUE_NUM, in p9_virtio_zc_request()
468 in = pack_sg_list(chan->sg, out, in p9_virtio_zc_request()
471 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_zc_request()
474 sgs[out_sgs + in_sgs++] = chan->sg + out + in; in p9_virtio_zc_request()
475 in += pack_sg_list_p(chan->sg, out + in, VIRTQUEUE_NUM, in p9_virtio_zc_request()
588 sg_init_table(chan->sg, VIRTQUEUE_NUM); in p9_virtio_probe()