Home
last modified time | relevance | path

Searched refs:data_vq (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/crypto/virtio/
Dvirtio_crypto_core.c33 spin_lock_irqsave(&vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback()
38 &vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback()
42 &vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback()
45 spin_unlock_irqrestore(&vcrypto->data_vq[qid].lock, flags); in virtcrypto_dataq_callback()
82 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs()
84 names[i] = vi->data_vq[i].name; in virtcrypto_find_vqs()
94 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs()
95 vi->data_vq[i].vq = vqs[i]; in virtcrypto_find_vqs()
97 vi->data_vq[i].engine = crypto_engine_alloc_init(dev, 1); in virtcrypto_find_vqs()
98 if (!vi->data_vq[i].engine) { in virtcrypto_find_vqs()
[all …]
Dvirtio_crypto_algs.c341 struct data_queue *data_vq) in __virtio_crypto_skcipher_do_req() argument
464 spin_lock_irqsave(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req()
465 err = virtqueue_add_sgs(data_vq->vq, sgs, num_out, in __virtio_crypto_skcipher_do_req()
467 virtqueue_kick(data_vq->vq); in __virtio_crypto_skcipher_do_req()
468 spin_unlock_irqrestore(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req()
491 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_encrypt() local
498 vc_req->dataq = data_vq; in virtio_crypto_skcipher_encrypt()
504 return crypto_transfer_skcipher_request_to_engine(data_vq->engine, req); in virtio_crypto_skcipher_encrypt()
516 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_decrypt() local
523 vc_req->dataq = data_vq; in virtio_crypto_skcipher_decrypt()
[all …]
Dvirtio_crypto_common.h35 struct data_queue *data_vq; member