Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) |
#define | dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) |
#define | dma_sync_single_for_device dma_sync_single_for_cpu |
#define | dma_sync_single_range_for_device dma_sync_single_range_for_cpu |
#define | dma_sync_sg_for_device dma_sync_sg_for_cpu |
Definition at line 19 of file dma-mapping-broken.h.
Definition at line 20 of file dma-mapping-broken.h.
#define dma_sync_sg_for_device dma_sync_sg_for_cpu |
Definition at line 61 of file dma-mapping-broken.h.
#define dma_sync_single_for_device dma_sync_single_for_cpu |
Definition at line 59 of file dma-mapping-broken.h.
#define dma_sync_single_range_for_device dma_sync_single_range_for_cpu |
Definition at line 60 of file dma-mapping-broken.h.
dma_alloc_coherent - allocate consistent memory for DMA : valid struct device pointer, or NULL for ISA and EISA-like devices : required memory size : bus-specific DMA address
Allocate some uncached, unbuffered memory for a device for performing DMA. This function allocates pages, and will return the CPU-viewed address, and sets to be the device-viewed address.
Definition at line 96 of file dma-coherent.c.
void dma_cache_sync | ( | struct device * | dev, |
void * | vaddr, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
Definition at line 313 of file dma-default.c.
dma_free_coherent - free memory allocated by dma_alloc_coherent : valid struct device pointer, or NULL for ISA and EISA-like devices : size of memory originally requested in dma_alloc_coherent : CPU-view address returned from dma_alloc_coherent : device-view address returned from dma_alloc_coherent
Free (and unmap) a DMA buffer previously allocated by dma_alloc_coherent().
References to memory and mappings associated with cpu_addr/handle during and after this call executing are illegal.
Definition at line 110 of file dma-coherent.c.
dma_addr_t dma_map_page | ( | struct device * | dev, |
struct page * | page, | ||
unsigned long | offset, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
Definition at line 138 of file pci-dma-nommu.c.
int dma_map_sg | ( | struct device * | dev, |
struct scatterlist * | sg, | ||
int | nents, | ||
enum dma_data_direction | direction | ||
) |
Definition at line 125 of file dma-mapping.c.
dma_addr_t dma_map_single | ( | struct device * | dev, |
void * | ptr, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
int dma_mapping_error | ( | struct device * | dev, |
dma_addr_t | dma_addr | ||
) |
void dma_sync_sg_for_cpu | ( | struct device * | dev, |
struct scatterlist * | sg, | ||
int | nelems, | ||
enum dma_data_direction | direction | ||
) |
void dma_sync_single_for_cpu | ( | struct device * | dev, |
dma_addr_t | dma_handle, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
void dma_sync_single_range_for_cpu | ( | struct device * | dev, |
dma_addr_t | dma_handle, | ||
unsigned long | offset, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
void dma_unmap_page | ( | struct device * | dev, |
dma_addr_t | dma_address, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
void dma_unmap_sg | ( | struct device * | dev, |
struct scatterlist * | sg, | ||
int | nhwentries, | ||
enum dma_data_direction | direction | ||
) |
void dma_unmap_single | ( | struct device * | dev, |
dma_addr_t | dma_addr, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |