Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
consistent.c File Reference
#include <linux/module.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/ptrace.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/stddef.h>
#include <linux/vmalloc.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/gfp.h>
#include <asm/pgalloc.h>
#include <linux/io.h>
#include <linux/hardirq.h>
#include <asm/mmu_context.h>
#include <asm/mmu.h>
#include <linux/uaccess.h>
#include <asm/pgtable.h>
#include <asm/cpuinfo.h>
#include <asm/tlbflush.h>

Go to the source code of this file.

Macros

#define UNCACHED_SHADOW_MASK   (cpuinfo.dcache_high - cpuinfo.dcache_base + 1)
 

Functions

voidconsistent_alloc (gfp_t gfp, size_t size, dma_addr_t *dma_handle)
 
 EXPORT_SYMBOL (consistent_alloc)
 
void consistent_free (size_t size, void *vaddr)
 
 EXPORT_SYMBOL (consistent_free)
 
void consistent_sync (void *vaddr, size_t size, int direction)
 
 EXPORT_SYMBOL (consistent_sync)
 
void consistent_sync_page (struct page *page, unsigned long offset, size_t size, int direction)
 
 EXPORT_SYMBOL (consistent_sync_page)
 

Macro Definition Documentation

#define UNCACHED_SHADOW_MASK   (cpuinfo.dcache_high - cpuinfo.dcache_base + 1)

Definition at line 49 of file consistent.c.

Function Documentation

void* consistent_alloc ( gfp_t  gfp,
size_t  size,
dma_addr_t dma_handle 
)

Definition at line 62 of file consistent.c.

void consistent_free ( size_t  size,
void vaddr 
)

Definition at line 163 of file consistent.c.

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

Definition at line 215 of file consistent.c.

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

Definition at line 249 of file consistent.c.

EXPORT_SYMBOL ( consistent_alloc  )
EXPORT_SYMBOL ( consistent_free  )
EXPORT_SYMBOL ( consistent_sync  )
EXPORT_SYMBOL ( consistent_sync_page  )