Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dma-mapping.h File Reference
#include <asm-generic/dma-coherent.h>
#include <asm-generic/dma-mapping-common.h>

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_alloc_coherent(d, s, h, f)   dma_alloc_attrs(d,s,h,f,NULL)
 
#define dma_free_coherent(d, s, c, h)   dma_free_attrs(d,s,c,h,NULL)
 

Functions

void no_iommu_init (void)
 
void dma_cache_sync (struct device *dev, void *vaddr, size_t size, enum dma_data_direction dir)
 
voiddma_generic_alloc_coherent (struct device *dev, size_t size, dma_addr_t *dma_addr, gfp_t flag, struct dma_attrs *attrs)
 
void dma_generic_free_coherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs)
 

Variables

struct dma_map_opsdma_ops
 

Macro Definition Documentation

#define dma_alloc_coherent (   d,
  s,
  h,
  f 
)    dma_alloc_attrs(d,s,h,f,NULL)

Definition at line 55 of file dma-mapping.h.

#define dma_alloc_noncoherent (   d,
  s,
  h,
  f 
)    dma_alloc_coherent(d, s, h, f)

Definition at line 42 of file dma-mapping.h.

#define dma_free_coherent (   d,
  s,
  c,
  h 
)    dma_free_attrs(d,s,c,h,NULL)

Definition at line 75 of file dma-mapping.h.

#define dma_free_noncoherent (   d,
  s,
  v,
  h 
)    dma_free_coherent(d, s, v, h)

Definition at line 43 of file dma-mapping.h.

Function Documentation

void dma_cache_sync ( struct device dev,
void vaddr,
size_t  size,
enum dma_data_direction  dir 
)

Definition at line 313 of file dma-default.c.

void* dma_generic_alloc_coherent ( struct device dev,
size_t  size,
dma_addr_t dma_addr,
gfp_t  flag,
struct dma_attrs attrs 
)

Definition at line 35 of file consistent.c.

void dma_generic_free_coherent ( struct device dev,
size_t  size,
void vaddr,
dma_addr_t  dma_handle,
struct dma_attrs attrs 
)

Definition at line 67 of file consistent.c.

void no_iommu_init ( void  )

Definition at line 77 of file dma-nommu.c.

Variable Documentation

Definition at line 188 of file pci-noop.c.