Home
last modified time | relevance | path

Searched refs:vc_req (Results 1 – 4 of 4) sorted by relevance

/drivers/crypto/virtio/
Dvirtio_crypto_akcipher_algs.c68 static void virtio_crypto_dataq_akcipher_callback(struct virtio_crypto_request *vc_req, int len) in virtio_crypto_dataq_akcipher_callback() argument
71 container_of(vc_req, struct virtio_crypto_akcipher_request, base); in virtio_crypto_dataq_akcipher_callback()
75 switch (vc_req->status) { in virtio_crypto_dataq_akcipher_callback()
99 akcipher_req->dst_len = len - sizeof(vc_req->status); in virtio_crypto_dataq_akcipher_callback()
224 struct virtio_crypto_request *vc_req = &vc_akcipher_req->base; in __virtio_crypto_akcipher_do_req() local
226 struct virtio_crypto_op_data_req *req_data = vc_req->req_data; in __virtio_crypto_akcipher_do_req()
268 sg_init_one(&inhdr_sg, &vc_req->status, sizeof(vc_req->status)); 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()
291 struct virtio_crypto_request *vc_req = &vc_akcipher_req->base; in virtio_crypto_rsa_do_req() local
294 struct data_queue *data_vq = vc_req->dataq; in virtio_crypto_rsa_do_req()
[all …]
Dvirtio_crypto_skcipher_algs.c59 (struct virtio_crypto_request *vc_req, int len) in virtio_crypto_dataq_sym_callback() argument
62 container_of(vc_req, struct virtio_crypto_sym_request, base); in virtio_crypto_dataq_sym_callback()
68 switch (vc_req->status) { in virtio_crypto_dataq_sym_callback()
332 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in __virtio_crypto_skcipher_do_req() local
371 vc_req->req_data = req_data; in __virtio_crypto_skcipher_do_req()
402 sizeof(vc_req->status) > vcrypto->max_size)) { in __virtio_crypto_skcipher_do_req()
446 sg_init_one(&status_sg, &vc_req->status, sizeof(vc_req->status)); in __virtio_crypto_skcipher_do_req()
449 vc_req->sgs = sgs; in __virtio_crypto_skcipher_do_req()
453 num_in, vc_req, GFP_ATOMIC); in __virtio_crypto_skcipher_do_req()
475 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in virtio_crypto_skcipher_encrypt() local
[all …]
Dvirtio_crypto_core.c17 virtcrypto_clear_request(struct virtio_crypto_request *vc_req) in virtcrypto_clear_request() argument
19 if (vc_req) { in virtcrypto_clear_request()
20 kfree_sensitive(vc_req->req_data); in virtcrypto_clear_request()
21 kfree(vc_req->sgs); in virtcrypto_clear_request()
79 struct virtio_crypto_request *vc_req; in virtcrypto_done_task() local
84 while ((vc_req = virtqueue_get_buf(vq, &len)) != NULL) { in virtcrypto_done_task()
85 if (vc_req->alg_cb) in virtcrypto_done_task()
86 vc_req->alg_cb(vc_req, len); in virtcrypto_done_task()
486 struct virtio_crypto_request *vc_req; in virtcrypto_free_unused_reqs() local
492 while ((vc_req = virtqueue_detach_unused_buf(vq)) != NULL) { in virtcrypto_free_unused_reqs()
[all …]
Dvirtio_crypto_common.h103 (struct virtio_crypto_request *vc_req, int len);
133 virtcrypto_clear_request(struct virtio_crypto_request *vc_req);