Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
videobuf-dma-contig.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/dma-mapping.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <media/videobuf-dma-contig.h>

Go to the source code of this file.

Data Structures

struct  videobuf_dma_contig_memory
 

Macros

#define MAGIC_DC_MEM   0x0733ac61
 
#define MAGIC_CHECK(is, should)
 

Functions

void videobuf_queue_dma_contig_init (struct videobuf_queue *q, const struct videobuf_queue_ops *ops, struct device *dev, spinlock_t *irqlock, enum v4l2_buf_type type, enum v4l2_field field, unsigned int msize, void *priv, struct mutex *ext_lock)
 
 EXPORT_SYMBOL_GPL (videobuf_queue_dma_contig_init)
 
void videobuf_queue_dma_contig_init_cached (struct videobuf_queue *q, const struct videobuf_queue_ops *ops, struct device *dev, spinlock_t *irqlock, enum v4l2_buf_type type, enum v4l2_field field, unsigned int msize, void *priv, struct mutex *ext_lock)
 
 EXPORT_SYMBOL_GPL (videobuf_queue_dma_contig_init_cached)
 
dma_addr_t videobuf_to_dma_contig (struct videobuf_buffer *buf)
 
 EXPORT_SYMBOL_GPL (videobuf_to_dma_contig)
 
void videobuf_dma_contig_free (struct videobuf_queue *q, struct videobuf_buffer *buf)
 
 EXPORT_SYMBOL_GPL (videobuf_dma_contig_free)
 
 MODULE_DESCRIPTION ("helper module to manage video4linux dma contig buffers")
 
 MODULE_AUTHOR ("Magnus Damm")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAGIC_CHECK (   is,
  should 
)
Value:
if (unlikely((is) != (should))) { \
pr_err("magic mismatch: %x expected %x\n", (is), (should)); \
BUG(); \
}

Definition at line 35 of file videobuf-dma-contig.c.

#define MAGIC_DC_MEM   0x0733ac61

Definition at line 34 of file videobuf-dma-contig.c.

Function Documentation

EXPORT_SYMBOL_GPL ( videobuf_queue_dma_contig_init  )
EXPORT_SYMBOL_GPL ( videobuf_queue_dma_contig_init_cached  )
EXPORT_SYMBOL_GPL ( videobuf_to_dma_contig  )
EXPORT_SYMBOL_GPL ( videobuf_dma_contig_free  )
MODULE_AUTHOR ( "Magnus Damm"  )
MODULE_DESCRIPTION ( "helper module to manage video4linux dma contig buffers"  )
MODULE_LICENSE ( "GPL"  )
void videobuf_dma_contig_free ( struct videobuf_queue q,
struct videobuf_buffer buf 
)

Definition at line 475 of file videobuf-dma-contig.c.

void videobuf_queue_dma_contig_init ( struct videobuf_queue q,
const struct videobuf_queue_ops ops,
struct device dev,
spinlock_t irqlock,
enum v4l2_buf_type  type,
enum v4l2_field  field,
unsigned int  msize,
void priv,
struct mutex ext_lock 
)

Definition at line 435 of file videobuf-dma-contig.c.

void videobuf_queue_dma_contig_init_cached ( struct videobuf_queue q,
const struct videobuf_queue_ops ops,
struct device dev,
spinlock_t irqlock,
enum v4l2_buf_type  type,
enum v4l2_field  field,
unsigned int  msize,
void priv,
struct mutex ext_lock 
)

Definition at line 450 of file videobuf-dma-contig.c.

dma_addr_t videobuf_to_dma_contig ( struct videobuf_buffer buf)

Definition at line 464 of file videobuf-dma-contig.c.