Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/crypto/virtio/
A Dvirtio_crypto_core.c132 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()
145 vi->data_vq[i].vq = vqs[i]; in virtcrypto_find_vqs()
149 if (!vi->data_vq[i].engine) { in virtcrypto_find_vqs()
174 vi->data_vq = kcalloc(vi->max_data_queues, sizeof(*vi->data_vq), in virtcrypto_alloc_queues()
176 if (!vi->data_vq) in virtcrypto_alloc_queues()
225 kfree(vi->data_vq); in virtcrypto_free_queues()
301 if (vcrypto->data_vq[i].engine) { in virtcrypto_start_crypto_engines()
312 if (vcrypto->data_vq[i].engine) in virtcrypto_start_crypto_engines()
323 if (vcrypto->data_vq[i].engine) in virtcrypto_clear_crypto_engines()
[all …]
A 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()
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()
552 struct data_queue *data_vq = vc_req->dataq; in virtio_crypto_skcipher_crypt_req() local
[all …]
A Dvirtio_crypto_akcipher_algs.c220 struct akcipher_request *req, struct data_queue *data_vq) in __virtio_crypto_akcipher_do_req() argument
270 spin_lock_irqsave(&data_vq->lock, flags); in __virtio_crypto_akcipher_do_req()
271 ret = virtqueue_add_sgs(data_vq->vq, sgs, num_out, num_in, vc_req, GFP_ATOMIC); in __virtio_crypto_akcipher_do_req()
272 virtqueue_kick(data_vq->vq); in __virtio_crypto_akcipher_do_req()
273 spin_unlock_irqrestore(&data_vq->lock, flags); in __virtio_crypto_akcipher_do_req()
293 struct data_queue *data_vq = vc_req->dataq; in virtio_crypto_rsa_do_req() local
315 ret = __virtio_crypto_akcipher_do_req(vc_akcipher_req, req, data_vq); in virtio_crypto_rsa_do_req()
333 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_rsa_req() local
335 vc_req->dataq = data_vq; in virtio_crypto_rsa_req()
341 return crypto_transfer_akcipher_request_to_engine(data_vq->engine, req); in virtio_crypto_rsa_req()
A Dvirtio_crypto_common.h36 struct data_queue *data_vq; member

Completed in 12 milliseconds