Home
last modified time | relevance | path

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

/drivers/crypto/virtio/
Dvirtio_crypto_core.c77 struct data_queue *data_vq = (struct data_queue *)data; in virtcrypto_done_task() local
78 struct virtqueue *vq = data_vq->vq; in virtcrypto_done_task()
94 struct data_queue *dq = &vcrypto->data_vq[vq->index]; in virtcrypto_dataq_callback()
133 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs()
135 names[i] = vi->data_vq[i].name; in virtcrypto_find_vqs()
145 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs()
146 vi->data_vq[i].vq = vqs[i]; in virtcrypto_find_vqs()
148 vi->data_vq[i].engine = crypto_engine_alloc_init_and_set(dev, true, NULL, true, in virtcrypto_find_vqs()
150 if (!vi->data_vq[i].engine) { in virtcrypto_find_vqs()
154 tasklet_init(&vi->data_vq[i].done_task, virtcrypto_done_task, in virtcrypto_find_vqs()
[all …]
Dvirtio_crypto_skcipher_algs.c328 struct data_queue *data_vq) in __virtio_crypto_skcipher_do_req() argument
451 spin_lock_irqsave(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req()
452 err = virtqueue_add_sgs(data_vq->vq, sgs, num_out, in __virtio_crypto_skcipher_do_req()
454 virtqueue_kick(data_vq->vq); in __virtio_crypto_skcipher_do_req()
455 spin_unlock_irqrestore(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req()
478 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_encrypt() local
485 vc_req->dataq = data_vq; in virtio_crypto_skcipher_encrypt()
491 return crypto_transfer_skcipher_request_to_engine(data_vq->engine, req); in virtio_crypto_skcipher_encrypt()
503 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_decrypt() local
510 vc_req->dataq = data_vq; in virtio_crypto_skcipher_decrypt()
[all …]
Dvirtio_crypto_akcipher_algs.c221 struct akcipher_request *req, struct data_queue *data_vq) in __virtio_crypto_akcipher_do_req() argument
271 spin_lock_irqsave(&data_vq->lock, flags); 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()
273 virtqueue_kick(data_vq->vq); in __virtio_crypto_akcipher_do_req()
274 spin_unlock_irqrestore(&data_vq->lock, flags); in __virtio_crypto_akcipher_do_req()
294 struct data_queue *data_vq = vc_req->dataq; in virtio_crypto_rsa_do_req() local
316 ret = __virtio_crypto_akcipher_do_req(vc_akcipher_req, req, data_vq); in virtio_crypto_rsa_do_req()
334 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_rsa_req() local
336 vc_req->dataq = data_vq; in virtio_crypto_rsa_req()
342 return crypto_transfer_akcipher_request_to_engine(data_vq->engine, req); in virtio_crypto_rsa_req()
Dvirtio_crypto_common.h38 struct data_queue *data_vq; member