Lines Matching refs:sgs
102 struct scatterlist outhdr_sg, key_sg, inhdr_sg, *sgs[3]; in virtio_crypto_alg_akcipher_init_session() local
128 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_init_session()
131 sgs[num_out++] = &key_sg; in virtio_crypto_alg_akcipher_init_session()
134 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_init_session()
136 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session()
160 struct scatterlist outhdr_sg, inhdr_sg, *sgs[2]; in virtio_crypto_alg_akcipher_close_session() local
186 sgs[num_out++] = &outhdr_sg; in virtio_crypto_alg_akcipher_close_session()
189 sgs[num_out + num_in++] = &inhdr_sg; in virtio_crypto_alg_akcipher_close_session()
191 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_close_session()
219 struct scatterlist *sgs[4], outhdr_sg, inhdr_sg, srcdata_sg, dstdata_sg; in __virtio_crypto_akcipher_do_req() local
228 sgs[num_out++] = &outhdr_sg; in __virtio_crypto_akcipher_do_req()
237 sgs[num_out++] = &srcdata_sg; in __virtio_crypto_akcipher_do_req()
245 sgs[num_out + num_in++] = &dstdata_sg; in __virtio_crypto_akcipher_do_req()
252 sgs[num_out + num_in++] = &inhdr_sg; in __virtio_crypto_akcipher_do_req()
255 ret = virtqueue_add_sgs(data_vq->vq, sgs, num_out, num_in, vc_req, GFP_ATOMIC); in __virtio_crypto_akcipher_do_req()
283 vc_req->sgs = NULL; in virtio_crypto_rsa_do_req()