Searched refs:vc_req (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 68 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 …]
|
H A D | virtio_crypto_skcipher_algs.c | 56 (struct virtio_crypto_request *vc_req, int len) in virtio_crypto_dataq_sym_callback() argument 59 container_of(vc_req, struct virtio_crypto_sym_request, base); in virtio_crypto_dataq_sym_callback() 65 switch (vc_req->status) { in virtio_crypto_dataq_sym_callback() 329 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in __virtio_crypto_skcipher_do_req() local 368 vc_req->req_data = req_data; in __virtio_crypto_skcipher_do_req() 399 sizeof(vc_req->status) > vcrypto->max_size)) { in __virtio_crypto_skcipher_do_req() 443 sg_init_one(&status_sg, &vc_req->status, sizeof(vc_req->status)); in __virtio_crypto_skcipher_do_req() 446 vc_req->sgs = sgs; in __virtio_crypto_skcipher_do_req() 450 num_in, vc_req, GFP_ATOMIC); in __virtio_crypto_skcipher_do_req() 472 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in virtio_crypto_skcipher_encrypt() local [all …]
|
H A D | virtio_crypto_core.c | 17 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() 77 struct virtio_crypto_request *vc_req; in virtcrypto_done_task() local 82 while ((vc_req = virtqueue_get_buf(vq, &len)) != NULL) { in virtcrypto_done_task() 83 if (vc_req->alg_cb) in virtcrypto_done_task() 84 vc_req->alg_cb(vc_req, len); in virtcrypto_done_task() 477 struct virtio_crypto_request *vc_req; in virtcrypto_free_unused_reqs() local 483 while ((vc_req = virtqueue_detach_unused_buf(vq)) != NULL) { in virtcrypto_free_unused_reqs() [all …]
|
H A D | virtio_crypto_common.h | 103 (struct virtio_crypto_request *vc_req, int len); 133 virtcrypto_clear_request(struct virtio_crypto_request *vc_req);
|