Searched refs:vcrypto (Results 1 – 4 of 4) sorted by relevance
27 struct virtio_crypto *vcrypto = vq->vdev->priv; in virtcrypto_dataq_callback() local33 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()143 static void virtcrypto_set_affinity(struct virtio_crypto *vcrypto) in virtcrypto_set_affinity() argument151 if (vcrypto->curr_queue == 1 || vcrypto->max_data_queues == 1) { in virtcrypto_set_affinity()152 virtcrypto_clean_affinity(vcrypto, -1); in virtcrypto_set_affinity()164 virtqueue_set_affinity(vcrypto->data_vq[i].vq, cpumask_of(cpu)); in virtcrypto_set_affinity()165 if (++i >= vcrypto->max_data_queues) in virtcrypto_set_affinity()[all …]
22 struct virtio_crypto *vcrypto; member122 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_alg_skcipher_init_session() local136 spin_lock(&vcrypto->ctrl_lock); in virtio_crypto_alg_skcipher_init_session()138 vcrypto->ctrl.header.opcode = in virtio_crypto_alg_skcipher_init_session()140 vcrypto->ctrl.header.algo = cpu_to_le32(alg); in virtio_crypto_alg_skcipher_init_session()142 vcrypto->ctrl.header.queue_id = 0; in virtio_crypto_alg_skcipher_init_session()144 vcrypto->input.status = cpu_to_le32(VIRTIO_CRYPTO_ERR); in virtio_crypto_alg_skcipher_init_session()146 vcrypto->ctrl.u.sym_create_session.op_type = in virtio_crypto_alg_skcipher_init_session()148 vcrypto->ctrl.u.sym_create_session.u.cipher.para.algo = in virtio_crypto_alg_skcipher_init_session()149 vcrypto->ctrl.header.algo; in virtio_crypto_alg_skcipher_init_session()[all …]
238 int virtcrypto_dev_start(struct virtio_crypto *vcrypto) in virtcrypto_dev_start() argument240 if (virtio_crypto_algs_register(vcrypto)) { in virtcrypto_dev_start()258 void virtcrypto_dev_stop(struct virtio_crypto *vcrypto) in virtcrypto_dev_stop() argument260 virtio_crypto_algs_unregister(vcrypto); in virtcrypto_dev_stop()277 bool virtcrypto_algo_is_supported(struct virtio_crypto *vcrypto, in virtcrypto_algo_is_supported() argument290 if (!(vcrypto->crypto_services & service_mask)) in virtcrypto_algo_is_supported()296 algo_mask = vcrypto->cipher_algo_l; in virtcrypto_algo_is_supported()298 algo_mask = vcrypto->cipher_algo_h; in virtcrypto_algo_is_supported()302 algo_mask = vcrypto->hash_algo; in virtcrypto_algo_is_supported()307 algo_mask = vcrypto->mac_algo_l; in virtcrypto_algo_is_supported()[all …]
113 int virtcrypto_dev_start(struct virtio_crypto *vcrypto);114 void virtcrypto_dev_stop(struct virtio_crypto *vcrypto);132 int virtio_crypto_algs_register(struct virtio_crypto *vcrypto);133 void virtio_crypto_algs_unregister(struct virtio_crypto *vcrypto);