11 #include <linux/export.h>
24 static void dmam_coherent_release(
struct device *
dev,
void *
res)
31 static void dmam_noncoherent_release(
struct device *
dev,
void *
res)
38 static int dmam_match(
struct device *
dev,
void *
res,
void *match_data)
42 if (this->
vaddr == match->vaddr) {
44 this->dma_handle != match->dma_handle);
69 dr =
devres_alloc(dmam_coherent_release,
sizeof(*dr), gfp);
128 dr =
devres_alloc(dmam_noncoherent_release,
sizeof(*dr), gfp);
168 #ifdef ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY
170 static void dmam_coherent_decl_release(
struct device *dev,
void *res)
215 void dmam_release_declared_memory(
struct device *dev)
259 if (off < count && user_count <= (count - off)) {