Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
consistent.c File Reference
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/dma-debug.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/gfp.h>
#include <asm/cacheflush.h>
#include <asm/addrspace.h>

Go to the source code of this file.

Macros

#define PREALLOC_DMA_DEBUG_ENTRIES   4096
 

Functions

 EXPORT_SYMBOL (dma_ops)
 
 fs_initcall (dma_init)
 
voiddma_generic_alloc_coherent (struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, 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)
 
void dma_cache_sync (struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction)
 
 EXPORT_SYMBOL (dma_cache_sync)
 
 __setup ("memchunk.", memchunk_setup)
 
int __init platform_resource_setup_memory (struct platform_device *pdev, char *name, unsigned long memsize)
 

Variables

struct dma_map_opsdma_ops
 

Macro Definition Documentation

#define PREALLOC_DMA_DEBUG_ENTRIES   4096

Definition at line 23 of file consistent.c.

Function Documentation

__setup ( "memchunk."  ,
memchunk_setup   
)
void dma_cache_sync ( struct device dev,
void vaddr,
size_t  size,
enum dma_data_direction  direction 
)

Definition at line 81 of file consistent.c.

void* dma_generic_alloc_coherent ( struct device dev,
size_t  size,
dma_addr_t dma_handle,
gfp_t  gfp,
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.

EXPORT_SYMBOL ( dma_ops  )
EXPORT_SYMBOL ( dma_cache_sync  )
fs_initcall ( dma_init  )
int __init platform_resource_setup_memory ( struct platform_device pdev,
char name,
unsigned long  memsize 
)

Definition at line 128 of file consistent.c.

Variable Documentation

Definition at line 25 of file consistent.c.