Lines Matching refs:sg
92 struct scatterlist sg[VIRTQUEUE_NUM]; member
185 static int pack_sg_list(struct scatterlist *sg, int start, in pack_sg_list() argument
197 sg_unmark_end(&sg[index]); in pack_sg_list()
198 sg_set_buf(&sg[index++], data, s); in pack_sg_list()
203 sg_mark_end(&sg[index - 1]); in pack_sg_list()
224 pack_sg_list_p(struct scatterlist *sg, int start, int limit, in pack_sg_list_p() argument
241 sg_unmark_end(&sg[index]); in pack_sg_list_p()
242 sg_set_page(&sg[index++], pdata[i++], s, data_off); in pack_sg_list_p()
249 sg_mark_end(&sg[index - 1]); in pack_sg_list_p()
277 out = pack_sg_list(chan->sg, 0, in p9_virtio_request()
280 sgs[out_sgs++] = chan->sg; in p9_virtio_request()
282 in = pack_sg_list(chan->sg, out, in p9_virtio_request()
285 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_request()
441 out = pack_sg_list(chan->sg, 0, in p9_virtio_zc_request()
445 sgs[out_sgs++] = chan->sg; in p9_virtio_zc_request()
448 sgs[out_sgs++] = chan->sg + out; in p9_virtio_zc_request()
449 out += pack_sg_list_p(chan->sg, out, VIRTQUEUE_NUM, in p9_virtio_zc_request()
460 in = pack_sg_list(chan->sg, out, in p9_virtio_zc_request()
463 sgs[out_sgs + in_sgs++] = chan->sg + out; in p9_virtio_zc_request()
466 sgs[out_sgs + in_sgs++] = chan->sg + out + in; in p9_virtio_zc_request()
467 in += pack_sg_list_p(chan->sg, out + in, VIRTQUEUE_NUM, in p9_virtio_zc_request()
575 sg_init_table(chan->sg, VIRTQUEUE_NUM); in p9_virtio_probe()