Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dma-mapping-common.h File Reference
#include <linux/kmemcheck.h>
#include <linux/bug.h>
#include <linux/scatterlist.h>
#include <linux/dma-debug.h>
#include <linux/dma-attrs.h>

Go to the source code of this file.

Macros

#define dma_map_single(d, a, s, r)   dma_map_single_attrs(d, a, s, r, NULL)
 
#define dma_unmap_single(d, a, s, r)   dma_unmap_single_attrs(d, a, s, r, NULL)
 
#define dma_map_sg(d, s, n, r)   dma_map_sg_attrs(d, s, n, r, NULL)
 
#define dma_unmap_sg(d, s, n, r)   dma_unmap_sg_attrs(d, s, n, r, NULL)
 
#define dma_mmap_coherent(d, v, c, h, s)   dma_mmap_attrs(d, v, c, h, s, NULL)
 
#define dma_get_sgtable(d, t, v, h, s)   dma_get_sgtable_attrs(d, t, v, h, s, NULL)
 

Functions

int dma_common_mmap (struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size)
 
int dma_common_get_sgtable (struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size)
 

Macro Definition Documentation

#define dma_get_sgtable (   d,
  t,
  v,
  h,
  s 
)    dma_get_sgtable_attrs(d, t, v, h, s, NULL)

Definition at line 232 of file dma-mapping-common.h.

#define dma_map_sg (   d,
  s,
  n,
  r 
)    dma_map_sg_attrs(d, s, n, r, NULL)

Definition at line 176 of file dma-mapping-common.h.

#define dma_map_single (   d,
  a,
  s,
  r 
)    dma_map_single_attrs(d, a, s, r, NULL)

Definition at line 174 of file dma-mapping-common.h.

#define dma_mmap_coherent (   d,
  v,
  c,
  h,
  s 
)    dma_mmap_attrs(d, v, c, h, s, NULL)

Definition at line 206 of file dma-mapping-common.h.

#define dma_unmap_sg (   d,
  s,
  n,
  r 
)    dma_unmap_sg_attrs(d, s, n, r, NULL)

Definition at line 177 of file dma-mapping-common.h.

#define dma_unmap_single (   d,
  a,
  s,
  r 
)    dma_unmap_single_attrs(d, a, s, r, NULL)

Definition at line 175 of file dma-mapping-common.h.

Function Documentation

int dma_common_get_sgtable ( struct device dev,
struct sg_table sgt,
void cpu_addr,
dma_addr_t  dma_addr,
size_t  size 
)
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.