Lines Matching refs:sgs
111 struct scatterlist outhdr_sg, key_sg, inhdr_sg, *sgs[3]; in virtio_crypto_alg_akcipher_init_session() local
137 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_init_session()
140 sgs[num_out++] = &key_sg; in virtio_crypto_alg_akcipher_init_session()
143 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_init_session()
145 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session()
169 struct scatterlist outhdr_sg, inhdr_sg, *sgs[2]; in virtio_crypto_alg_akcipher_close_session() local
195 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_close_session()
198 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_close_session()
200 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_close_session()
227 struct scatterlist *sgs[4], outhdr_sg, inhdr_sg, srcdata_sg, dstdata_sg; in __virtio_crypto_akcipher_do_req() local
238 sgs[num_out++] = &outhdr_sg; in __virtio_crypto_akcipher_do_req()
249 sgs[num_out++] = &srcdata_sg; in __virtio_crypto_akcipher_do_req()
253 sgs[num_out++] = &srcdata_sg; in __virtio_crypto_akcipher_do_req()
261 sgs[num_out + num_in++] = &dstdata_sg; in __virtio_crypto_akcipher_do_req()
269 sgs[num_out + num_in++] = &inhdr_sg; in __virtio_crypto_akcipher_do_req()
272 ret = virtqueue_add_sgs(data_vq->vq, sgs, num_out, num_in, vc_req, GFP_ATOMIC); in __virtio_crypto_akcipher_do_req()
299 vc_req->sgs = NULL; in virtio_crypto_rsa_do_req()