#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <crypto/algapi.h>
#include <crypto/internal/hash.h>
#define QCE_MAJOR_VERSION5 0x05
#define QCE_QUEUE_LENGTH 1
static const struct qce_algo_ops *qce_ops[] = {
static void qce_unregister_algs(struct qce_device *qce)
const struct qce_algo_ops *ops;
for (i = 0; i < ARRAY_SIZE(qce_ops); i++) {
ops->unregister_algs(qce);
static int qce_register_algs(struct qce_device *qce)
const struct qce_algo_ops *ops;
for (i = 0; i < ARRAY_SIZE(qce_ops); i++) {
ret = ops->register_algs(qce);
static int qce_handle_request(struct crypto_async_request *async_req)