#define pr_fmt(fmt) "%20s: " fmt, __func__
#define prn(num) pr_debug(#num "=%d\n", num)
#define prx(num) pr_debug(#num "=%x\n", num)
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/scatterlist.h>
#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include <linux/pm_runtime.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include <linux/crypto.h>
#include <linux/interrupt.h>
#include <crypto/scatterwalk.h>
#include <crypto/engine.h>
#include <crypto/internal/skcipher.h>
#include <crypto/internal/aead.h>
static LIST_HEAD(dev_list);
static DEFINE_SPINLOCK(list_lock);
static int aes_fallback_sz = 200;
#define omap_aes_read(dd, offset) \
_read_ret = __raw_readl(dd->io_base + offset); \
pr_debug("omap_aes_read(" #offset "=%#x)= %#x\n", \
inline u32 omap_aes_read(struct omap_aes_dev *dd, u32 offset)
return __raw_readl(dd->io_base + offset);
#define omap_aes_write(dd, offset, value) \
pr_debug("omap_aes_write(" #offset "=%#x) value=%#x\n", \
__raw_writel(value, dd->io_base + offset); \
inline void omap_aes_write(struct omap_aes_dev *dd, u32 offset,
__raw_writel(value, dd->io_base + offset);
static inline void omap_aes_write_mask(struct omap_aes_dev *dd, u32 offset,
val = omap_aes_read(dd, offset);
omap_aes_write(dd, offset, val);