#include <linux/device.h>
#include <linux/dma-buf.h>
#include <linux/genalloc.h>
#include <linux/slab.h>
#include <linux/tee_core.h>
#include "tee_private.h"
static int pool_op_gen_alloc(struct tee_shm_pool *pool, struct tee_shm *shm,
size_t size, size_t align)
{ … }
static void pool_op_gen_free(struct tee_shm_pool *pool, struct tee_shm *shm)
{ … }
static void pool_op_gen_destroy_pool(struct tee_shm_pool *pool)
{ … }
static const struct tee_shm_pool_ops pool_ops_generic = …;
struct tee_shm_pool *tee_shm_pool_alloc_res_mem(unsigned long vaddr,
phys_addr_t paddr, size_t size,
int min_alloc_order)
{ … }
EXPORT_SYMBOL_GPL(…);