Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dma-noncoherent.c File Reference
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/highmem.h>
#include <linux/dma-mapping.h>
#include <linux/export.h>
#include <asm/tlbflush.h>
#include "mmu_decl.h"

Go to the source code of this file.

Data Structures

struct  ppc_vm_region
 

Macros

#define CONSISTENT_BASE   (IOREMAP_TOP)
 
#define CONSISTENT_END   (CONSISTENT_BASE + CONFIG_CONSISTENT_SIZE)
 
#define CONSISTENT_OFFSET(x)   (((unsigned long)(x) - CONSISTENT_BASE) >> PAGE_SHIFT)
 

Functions

void__dma_alloc_coherent (struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp)
 
 EXPORT_SYMBOL (__dma_alloc_coherent)
 
void __dma_free_coherent (size_t size, void *vaddr)
 
 EXPORT_SYMBOL (__dma_free_coherent)
 
void __dma_sync (void *vaddr, size_t size, int direction)
 
 EXPORT_SYMBOL (__dma_sync)
 
void __dma_sync_page (struct page *page, unsigned long offset, size_t size, int direction)
 
 EXPORT_SYMBOL (__dma_sync_page)
 
unsigned long __dma_get_coherent_pfn (unsigned long cpu_addr)
 

Macro Definition Documentation

#define CONSISTENT_BASE   (IOREMAP_TOP)

Definition at line 45 of file dma-noncoherent.c.

#define CONSISTENT_END   (CONSISTENT_BASE + CONFIG_CONSISTENT_SIZE)

Definition at line 46 of file dma-noncoherent.c.

#define CONSISTENT_OFFSET (   x)    (((unsigned long)(x) - CONSISTENT_BASE) >> PAGE_SHIFT)

Definition at line 47 of file dma-noncoherent.c.

Function Documentation

void* __dma_alloc_coherent ( struct device dev,
size_t  size,
dma_addr_t handle,
gfp_t  gfp 
)

Definition at line 154 of file dma-noncoherent.c.

void __dma_free_coherent ( size_t  size,
void vaddr 
)

Definition at line 256 of file dma-noncoherent.c.

unsigned long __dma_get_coherent_pfn ( unsigned long  cpu_addr)

Definition at line 407 of file dma-noncoherent.c.

void __dma_sync ( void vaddr,
size_t  size,
int  direction 
)

Definition at line 318 of file dma-noncoherent.c.

void __dma_sync_page ( struct page page,
unsigned long  offset,
size_t  size,
int  direction 
)

Definition at line 391 of file dma-noncoherent.c.

EXPORT_SYMBOL ( __dma_alloc_coherent  )
EXPORT_SYMBOL ( __dma_free_coherent  )
EXPORT_SYMBOL ( __dma_sync  )
EXPORT_SYMBOL ( __dma_sync_page  )