Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dma.c File Reference
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <linux/mm.h>
#include <linux/mm_types.h>
#include <linux/scatterlist.h>
#include <asm/cacheflush.h>

Go to the source code of this file.

Macros

#define PREALLOC_DMA_DEBUG_ENTRIES   (1 << 16)
 

Functions

dma_addr_t dma_map_single (struct device *dev, void *ptr, size_t size, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_map_single)
 
void dma_unmap_single (struct device *dev, dma_addr_t handle, size_t size, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_unmap_single)
 
int dma_map_sg (struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_map_sg)
 
void dma_unmap_sg (struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_unmap_sg)
 
void dma_sync_single_for_cpu (struct device *dev, dma_addr_t handle, size_t size, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_sync_single_for_cpu)
 
void dma_sync_single_for_device (struct device *dev, dma_addr_t handle, size_t size, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_sync_single_for_device)
 
void dma_sync_sg_for_cpu (struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_sync_sg_for_cpu)
 
void dma_sync_sg_for_device (struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction dir)
 
 EXPORT_SYMBOL (dma_sync_sg_for_device)
 
 fs_initcall (dma_init)
 

Macro Definition Documentation

#define PREALLOC_DMA_DEBUG_ENTRIES   (1 << 16)

Definition at line 145 of file dma.c.

Function Documentation

int dma_map_sg ( struct device dev,
struct scatterlist sglist,
int  nents,
enum dma_data_direction  dir 
)

Definition at line 64 of file dma.c.

dma_addr_t dma_map_single ( struct device dev,
void ptr,
size_t  size,
enum dma_data_direction  dir 
)

Definition at line 39 of file dma.c.

void dma_sync_sg_for_cpu ( struct device dev,
struct scatterlist sglist,
int  nents,
enum dma_data_direction  dir 
)

Definition at line 114 of file dma.c.

void dma_sync_sg_for_device ( struct device dev,
struct scatterlist sglist,
int  nents,
enum dma_data_direction  dir 
)

Definition at line 129 of file dma.c.

void dma_sync_single_for_cpu ( struct device dev,
dma_addr_t  handle,
size_t  size,
enum dma_data_direction  dir 
)

Definition at line 94 of file dma.c.

void dma_sync_single_for_device ( struct device dev,
dma_addr_t  handle,
size_t  size,
enum dma_data_direction  dir 
)

Definition at line 104 of file dma.c.

void dma_unmap_sg ( struct device dev,
struct scatterlist sglist,
int  nents,
enum dma_data_direction  dir 
)

Definition at line 81 of file dma.c.

void dma_unmap_single ( struct device dev,
dma_addr_t  handle,
size_t  size,
enum dma_data_direction  dir 
)

Definition at line 54 of file dma.c.

EXPORT_SYMBOL ( dma_map_single  )
EXPORT_SYMBOL ( dma_unmap_single  )
EXPORT_SYMBOL ( dma_map_sg  )
EXPORT_SYMBOL ( dma_unmap_sg  )
EXPORT_SYMBOL ( dma_sync_single_for_cpu  )
EXPORT_SYMBOL ( dma_sync_single_for_device  )
EXPORT_SYMBOL ( dma_sync_sg_for_cpu  )
EXPORT_SYMBOL ( dma_sync_sg_for_device  )
fs_initcall ( dma_init  )