Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
videobuf-dma-sg.h File Reference
#include <media/videobuf-core.h>

Go to the source code of this file.

Data Structures

struct  videobuf_dmabuf
 
struct  videobuf_dma_sg_memory
 

Functions

void videobuf_dma_init (struct videobuf_dmabuf *dma)
 
int videobuf_dma_init_user (struct videobuf_dmabuf *dma, int direction, unsigned long data, unsigned long size)
 
int videobuf_dma_init_kernel (struct videobuf_dmabuf *dma, int direction, int nr_pages)
 
int videobuf_dma_init_overlay (struct videobuf_dmabuf *dma, int direction, dma_addr_t addr, int nr_pages)
 
int videobuf_dma_free (struct videobuf_dmabuf *dma)
 
int videobuf_dma_map (struct device *dev, struct videobuf_dmabuf *dma)
 
int videobuf_dma_unmap (struct device *dev, struct videobuf_dmabuf *dma)
 
struct videobuf_dmabufvideobuf_to_dma (struct videobuf_buffer *buf)
 
voidvideobuf_sg_alloc (size_t size)
 
void videobuf_queue_sg_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)
 

Function Documentation

int videobuf_dma_free ( struct videobuf_dmabuf dma)

Definition at line 312 of file videobuf-dma-sg.c.

void videobuf_dma_init ( struct videobuf_dmabuf dma)

Definition at line 148 of file videobuf-dma-sg.c.

int videobuf_dma_init_kernel ( struct videobuf_dmabuf dma,
int  direction,
int  nr_pages 
)

Definition at line 211 of file videobuf-dma-sg.c.

int videobuf_dma_init_overlay ( struct videobuf_dmabuf dma,
int  direction,
dma_addr_t  addr,
int  nr_pages 
)

Definition at line 234 of file videobuf-dma-sg.c.

int videobuf_dma_init_user ( struct videobuf_dmabuf dma,
int  direction,
unsigned long  data,
unsigned long  size 
)

Definition at line 198 of file videobuf-dma-sg.c.

int videobuf_dma_map ( struct device dev,
struct videobuf_dmabuf dma 
)

Definition at line 251 of file videobuf-dma-sg.c.

int videobuf_dma_unmap ( struct device dev,
struct videobuf_dmabuf dma 
)

Definition at line 295 of file videobuf-dma-sg.c.

void videobuf_queue_sg_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 619 of file videobuf-dma-sg.c.

void* videobuf_sg_alloc ( size_t  size)

Definition at line 606 of file videobuf-dma-sg.c.

struct videobuf_dmabuf* videobuf_to_dma ( struct videobuf_buffer buf)
read

Definition at line 137 of file videobuf-dma-sg.c.