Linux Kernel
3.7.1
|
#include <linux/dma-mapping.h>
#include <linux/export.h>
#include <linux/gfp.h>
#include <asm-generic/dma-coherent.h>
Go to the source code of this file.
Data Structures | |
struct | dma_devres |
int dma_common_mmap | ( | struct device * | dev, |
struct vm_area_struct * | vma, | ||
void * | cpu_addr, | ||
dma_addr_t | dma_addr, | ||
size_t | size | ||
) |
Definition at line 244 of file dma-mapping.c.
dmam_alloc_coherent - Managed dma_alloc_coherent() : Device to allocate coherent memory for : Size of allocation : Out argument for allocated DMA handle : Allocation flags
Managed dma_alloc_coherent(). Memory allocated using this function will be automatically released on driver detach.
RETURNS: Pointer to allocated memory on success, NULL on failure.
Definition at line 63 of file dma-mapping.c.
void* dmam_alloc_noncoherent | ( | struct device * | dev, |
size_t | size, | ||
dma_addr_t * | dma_handle, | ||
gfp_t | gfp | ||
) |
dmam_alloc_non_coherent - Managed dma_alloc_non_coherent() : Device to allocate non_coherent memory for : Size of allocation : Out argument for allocated DMA handle : Allocation flags
Managed dma_alloc_non_coherent(). Memory allocated using this function will be automatically released on driver detach.
RETURNS: Pointer to allocated memory on success, NULL on failure.
Definition at line 122 of file dma-mapping.c.
dmam_free_coherent - Managed dma_free_coherent() : Device to free coherent memory for : Size of allocation : Virtual address of the memory to free : DMA handle of the memory to free
Managed dma_free_coherent().
Definition at line 98 of file dma-mapping.c.
void dmam_free_noncoherent | ( | struct device * | dev, |
size_t | size, | ||
void * | vaddr, | ||
dma_addr_t | dma_handle | ||
) |
dmam_free_coherent - Managed dma_free_noncoherent() : Device to free noncoherent memory for : Size of allocation : Virtual address of the memory to free : DMA handle of the memory to free
Managed dma_free_noncoherent().
Definition at line 157 of file dma-mapping.c.
EXPORT_SYMBOL | ( | dmam_alloc_coherent | ) |
EXPORT_SYMBOL | ( | dmam_free_coherent | ) |
EXPORT_SYMBOL | ( | dmam_alloc_noncoherent | ) |
EXPORT_SYMBOL | ( | dmam_free_noncoherent | ) |
EXPORT_SYMBOL | ( | dma_common_mmap | ) |