Lines Matching refs:sgs

117 	struct scatterlist outhdr, key_sg, inhdr, *sgs[3];  in virtio_crypto_alg_skcipher_init_session()  local
159 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_init_session()
163 sgs[num_out++] = &key_sg; in virtio_crypto_alg_skcipher_init_session()
167 sgs[num_out + num_in++] = &inhdr; in virtio_crypto_alg_skcipher_init_session()
169 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
196 struct scatterlist outhdr, status_sg, *sgs[2]; in virtio_crypto_alg_skcipher_close_session() local
225 sgs[num_out++] = &outhdr; in virtio_crypto_alg_skcipher_close_session()
229 sgs[num_out + num_in++] = &status_sg; in virtio_crypto_alg_skcipher_close_session()
231 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_close_session()
336 struct scatterlist outhdr, iv_sg, status_sg, **sgs; in __virtio_crypto_skcipher_do_req() local
356 sgs = kcalloc_node(sg_total, sizeof(*sgs), GFP_KERNEL, in __virtio_crypto_skcipher_do_req()
358 if (!sgs) in __virtio_crypto_skcipher_do_req()
364 kfree(sgs); in __virtio_crypto_skcipher_do_req()
410 sgs[num_out++] = &outhdr; in __virtio_crypto_skcipher_do_req()
431 sgs[num_out++] = &iv_sg; in __virtio_crypto_skcipher_do_req()
436 sgs[num_out++] = sg; in __virtio_crypto_skcipher_do_req()
440 sgs[num_out + num_in++] = sg; in __virtio_crypto_skcipher_do_req()
444 sgs[num_out + num_in++] = &status_sg; in __virtio_crypto_skcipher_do_req()
446 vc_req->sgs = sgs; in __virtio_crypto_skcipher_do_req()
449 err = virtqueue_add_sgs(data_vq->vq, sgs, num_out, in __virtio_crypto_skcipher_do_req()
462 kfree(sgs); in __virtio_crypto_skcipher_do_req()