/kernel/linux/linux-5.10/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 114 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_akcipher_init_session() local 120 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_akcipher_init_session() 121 if (!vc_ctrl_req) { in virtio_crypto_alg_akcipher_init_session() 126 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_akcipher_init_session() 129 input = &vc_ctrl_req->input; in virtio_crypto_alg_akcipher_init_session() 141 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session() 157 kfree(vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session() 172 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_akcipher_close_session() local 177 vc_ctrl_req in virtio_crypto_alg_akcipher_close_session() [all...] |
H A D | virtio_crypto_algs.c | 128 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_skcipher_init_session() local 139 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_skcipher_init_session() 140 if (!vc_ctrl_req) { in virtio_crypto_alg_skcipher_init_session() 146 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_skcipher_init_session() 152 input = &vc_ctrl_req->input; in virtio_crypto_alg_skcipher_init_session() 172 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session() 190 kfree(vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session() 206 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_skcipher_close_session() local 208 vc_ctrl_req in virtio_crypto_alg_skcipher_close_session() [all...] |
H A D | virtio_crypto_core.c | 25 static void virtio_crypto_ctrlq_callback(struct virtio_crypto_ctrl_request *vc_ctrl_req) in virtio_crypto_ctrlq_callback() argument 27 complete(&vc_ctrl_req->compl); in virtio_crypto_ctrlq_callback() 33 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtcrypto_ctrlq_callback() local 40 while ((vc_ctrl_req = virtqueue_get_buf(vq, &len)) != NULL) { in virtcrypto_ctrlq_callback() 42 virtio_crypto_ctrlq_callback(vc_ctrl_req); in virtcrypto_ctrlq_callback() 53 struct virtio_crypto_ctrl_request *vc_ctrl_req) in virtio_crypto_ctrl_vq_request() 58 init_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request() 61 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, out_sgs, in_sgs, vc_ctrl_req, GFP_ATOMIC); in virtio_crypto_ctrl_vq_request() 70 wait_for_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request() 51 virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[], unsigned int out_sgs, unsigned int in_sgs, struct virtio_crypto_ctrl_request *vc_ctrl_req) virtio_crypto_ctrl_vq_request() argument
|
H A D | virtio_crypto_common.h | 149 struct virtio_crypto_ctrl_request *vc_ctrl_req);
|
/kernel/linux/linux-6.6/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 118 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_akcipher_init_session() local 124 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_akcipher_init_session() 125 if (!vc_ctrl_req) { in virtio_crypto_alg_akcipher_init_session() 130 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_akcipher_init_session() 133 input = &vc_ctrl_req->input; 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() 161 kfree(vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session() 176 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_akcipher_close_session() local 181 vc_ctrl_req in virtio_crypto_alg_akcipher_close_session() [all...] |
H A D | virtio_crypto_skcipher_algs.c | 125 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_skcipher_init_session() local 136 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_skcipher_init_session() 137 if (!vc_ctrl_req) { in virtio_crypto_alg_skcipher_init_session() 143 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_skcipher_init_session() 149 input = &vc_ctrl_req->input; 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() 187 kfree(vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session() 203 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_skcipher_close_session() local 205 vc_ctrl_req in virtio_crypto_alg_skcipher_close_session() [all...] |
H A D | virtio_crypto_core.c | 25 static void virtio_crypto_ctrlq_callback(struct virtio_crypto_ctrl_request *vc_ctrl_req) in virtio_crypto_ctrlq_callback() argument 27 complete(&vc_ctrl_req->compl); in virtio_crypto_ctrlq_callback() 33 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtcrypto_ctrlq_callback() local 40 while ((vc_ctrl_req = virtqueue_get_buf(vq, &len)) != NULL) { in virtcrypto_ctrlq_callback() 42 virtio_crypto_ctrlq_callback(vc_ctrl_req); in virtcrypto_ctrlq_callback() 53 struct virtio_crypto_ctrl_request *vc_ctrl_req) in virtio_crypto_ctrl_vq_request() 58 init_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request() 61 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, out_sgs, in_sgs, vc_ctrl_req, GFP_ATOMIC); in virtio_crypto_ctrl_vq_request() 70 wait_for_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request() 51 virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[], unsigned int out_sgs, unsigned int in_sgs, struct virtio_crypto_ctrl_request *vc_ctrl_req) virtio_crypto_ctrl_vq_request() argument
|
H A D | virtio_crypto_common.h | 152 struct virtio_crypto_ctrl_request *vc_ctrl_req);
|