linux/drivers/crypto/virtio/virtio_crypto_core.c

// SPDX-License-Identifier: GPL-2.0-or-later
 /* Driver for Virtio crypto device.
  *
  * Copyright 2016 HUAWEI TECHNOLOGIES CO., LTD.
  */

#include <linux/err.h>
#include <linux/module.h>
#include <linux/virtio_config.h>
#include <linux/cpu.h>

#include <uapi/linux/virtio_crypto.h>
#include "virtio_crypto_common.h"


void
virtcrypto_clear_request(struct virtio_crypto_request *vc_req)
{}

static void virtio_crypto_ctrlq_callback(struct virtio_crypto_ctrl_request *vc_ctrl_req)
{}

static void virtcrypto_ctrlq_callback(struct virtqueue *vq)
{}

int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[],
		unsigned int out_sgs, unsigned int in_sgs,
		struct virtio_crypto_ctrl_request *vc_ctrl_req)
{}

static void virtcrypto_done_task(unsigned long data)
{}

static void virtcrypto_dataq_callback(struct virtqueue *vq)
{}

static int virtcrypto_find_vqs(struct virtio_crypto *vi)
{}

static int virtcrypto_alloc_queues(struct virtio_crypto *vi)
{}

static void virtcrypto_clean_affinity(struct virtio_crypto *vi, long hcpu)
{}

static void virtcrypto_set_affinity(struct virtio_crypto *vcrypto)
{}

static void virtcrypto_free_queues(struct virtio_crypto *vi)
{}

static int virtcrypto_init_vqs(struct virtio_crypto *vi)
{}

static int virtcrypto_update_status(struct virtio_crypto *vcrypto)
{}

static int virtcrypto_start_crypto_engines(struct virtio_crypto *vcrypto)
{}

static void virtcrypto_clear_crypto_engines(struct virtio_crypto *vcrypto)
{}

static void virtcrypto_del_vqs(struct virtio_crypto *vcrypto)
{}

static void vcrypto_config_changed_work(struct work_struct *work)
{}

static int virtcrypto_probe(struct virtio_device *vdev)
{}

static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto)
{}

static void virtcrypto_remove(struct virtio_device *vdev)
{}

static void virtcrypto_config_changed(struct virtio_device *vdev)
{}

#ifdef CONFIG_PM_SLEEP
static int virtcrypto_freeze(struct virtio_device *vdev)
{}

static int virtcrypto_restore(struct virtio_device *vdev)
{}
#endif

static const unsigned int features[] =;

static const struct virtio_device_id id_table[] =;

static struct virtio_driver virtio_crypto_driver =;

module_virtio_driver();

MODULE_DEVICE_TABLE(virtio, id_table);
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();