Searched refs:data_vq (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_core.c | 75 struct data_queue *data_vq = (struct data_queue *)data; in virtcrypto_done_task() local 76 struct virtqueue *vq = data_vq->vq; in virtcrypto_done_task() 92 struct data_queue *dq = &vcrypto->data_vq[vq->index]; in virtcrypto_dataq_callback() 127 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs() 129 vqs_info[i].name = vi->data_vq[i].name; in virtcrypto_find_vqs() 139 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs() 140 vi->data_vq[i].vq = vqs[i]; in virtcrypto_find_vqs() 142 vi->data_vq[i].engine = crypto_engine_alloc_init_and_set(dev, true, NULL, true, in virtcrypto_find_vqs() 144 if (!vi->data_vq[i].engine) { in virtcrypto_find_vqs() 148 tasklet_init(&vi->data_vq[i].done_task, virtcrypto_done_task, in virtcrypto_find_vqs() [all …]
|
H A D | virtio_crypto_skcipher_algs.c | 325 struct data_queue *data_vq) in __virtio_crypto_skcipher_do_req() argument 448 spin_lock_irqsave(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req() 449 err = virtqueue_add_sgs(data_vq->vq, sgs, num_out, in __virtio_crypto_skcipher_do_req() 451 virtqueue_kick(data_vq->vq); in __virtio_crypto_skcipher_do_req() 452 spin_unlock_irqrestore(&data_vq->lock, flags); in __virtio_crypto_skcipher_do_req() 475 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_encrypt() local 482 vc_req->dataq = data_vq; in virtio_crypto_skcipher_encrypt() 488 return crypto_transfer_skcipher_request_to_engine(data_vq->engine, req); in virtio_crypto_skcipher_encrypt() 500 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_decrypt() local 507 vc_req->dataq = data_vq; in virtio_crypto_skcipher_decrypt() [all …]
|
H A D | virtio_crypto_common.h | 38 struct data_queue *data_vq; member
|