Searched refs:data_vq (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/drivers/crypto/virtio/ |
D | virtio_crypto_core.c | 83 spin_lock_irqsave(&vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback() 88 &vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback() 92 &vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback() 95 spin_unlock_irqrestore(&vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback() 132 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs() 134 names[i] = vi->data_vq[i].name; in virtcrypto_find_vqs() 144 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs() 145 vi->data_vq[i].vq = vqs[i]; in virtcrypto_find_vqs() 147 vi->data_vq[i].engine = crypto_engine_alloc_init_and_set(dev, true, NULL, true, in virtcrypto_find_vqs() 149 if (!vi->data_vq[i].engine) { in virtcrypto_find_vqs() [all …]
|
D | virtio_crypto_skcipher_algs.c | 327 struct data_queue *data_vq) in __virtio_crypto_skcipher_do_req() argument 450 spin_lock_irqsave(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req() 451 err = virtqueue_add_sgs(data_vq->vq, sgs, num_out, in __virtio_crypto_skcipher_do_req() 453 virtqueue_kick(data_vq->vq); in __virtio_crypto_skcipher_do_req() 454 spin_unlock_irqrestore(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req() 477 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_encrypt() local 484 vc_req->dataq = data_vq; in virtio_crypto_skcipher_encrypt() 490 return crypto_transfer_skcipher_request_to_engine(data_vq->engine, req); in virtio_crypto_skcipher_encrypt() 502 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_decrypt() local 509 vc_req->dataq = data_vq; in virtio_crypto_skcipher_decrypt() [all …]
|
D | virtio_crypto_akcipher_algs.c | 216 struct akcipher_request *req, struct data_queue *data_vq) in __virtio_crypto_akcipher_do_req() argument 266 spin_lock_irqsave(&data_vq->lock, flags); in __virtio_crypto_akcipher_do_req() 267 ret = virtqueue_add_sgs(data_vq->vq, sgs, num_out, num_in, vc_req, GFP_ATOMIC); in __virtio_crypto_akcipher_do_req() 268 virtqueue_kick(data_vq->vq); in __virtio_crypto_akcipher_do_req() 269 spin_unlock_irqrestore(&data_vq->lock, flags); in __virtio_crypto_akcipher_do_req() 289 struct data_queue *data_vq = vc_req->dataq; in virtio_crypto_rsa_do_req() local 311 ret = __virtio_crypto_akcipher_do_req(vc_akcipher_req, req, data_vq); in virtio_crypto_rsa_do_req() 329 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_rsa_req() local 331 vc_req->dataq = data_vq; in virtio_crypto_rsa_req() 337 return crypto_transfer_akcipher_request_to_engine(data_vq->engine, req); in virtio_crypto_rsa_req()
|
D | virtio_crypto_common.h | 36 struct data_queue *data_vq; member
|