10 #include <linux/device.h>
11 #include <linux/kernel.h>
13 #include <linux/slab.h>
15 #include <linux/export.h>
17 #include <asm/pgalloc.h>
19 #if defined(CONFIG_MMU) && !defined(CONFIG_COLDFIRE)
29 pr_debug(
"dma_alloc_coherent: %d,%x\n", size, flag);
49 for (i = 1; i <
size; i++)
51 for (; i <
order; i++)
67 pr_debug(
"dma_free_coherent: %p, %x\n", addr, handle);
73 #include <asm/cacheflush.h>
116 if (printk_ratelimit())
117 printk(
"dma_sync_single_for_device: unsupported dir %u\n", dir);
128 for (i = 0; i < nents; sg++, i++)
144 unsigned long offset,
size_t size,
159 for (i = 0; i < nents; sg++, i++) {