#include <linux/dma-buf.h>
#include <linux/iova.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include "vde.h"
MODULE_IMPORT_NS(…);
struct tegra_vde_cache_entry { … };
static void tegra_vde_release_entry(struct tegra_vde_cache_entry *entry)
{ … }
static void tegra_vde_delayed_unmap(struct work_struct *work)
{ … }
int tegra_vde_dmabuf_cache_map(struct tegra_vde *vde,
struct dma_buf *dmabuf,
enum dma_data_direction dma_dir,
struct dma_buf_attachment **ap,
dma_addr_t *addrp)
{ … }
void tegra_vde_dmabuf_cache_unmap(struct tegra_vde *vde,
struct dma_buf_attachment *a,
bool release)
{ … }
void tegra_vde_dmabuf_cache_unmap_sync(struct tegra_vde *vde)
{ … }
void tegra_vde_dmabuf_cache_unmap_all(struct tegra_vde *vde)
{ … }