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

Go to the source code of this file.

Data Structures

struct  videobuf_mapping
 
struct  videobuf_buffer
 
struct  videobuf_queue_ops
 
struct  videobuf_qtype_ops
 
struct  videobuf_queue
 

Macros

#define UNSET   (-1U)
 
#define MAGIC_QTYPE_OPS   0x12261003
 

Enumerations

enum  videobuf_state {
  VIDEOBUF_NEEDS_INIT = 0, VIDEOBUF_PREPARED = 1, VIDEOBUF_QUEUED = 2, VIDEOBUF_ACTIVE = 3,
  VIDEOBUF_DONE = 4, VIDEOBUF_ERROR = 5, VIDEOBUF_IDLE = 6
}
 

Functions

int videobuf_waiton (struct videobuf_queue *q, struct videobuf_buffer *vb, int non_blocking, int intr)
 
int videobuf_iolock (struct videobuf_queue *q, struct videobuf_buffer *vb, struct v4l2_framebuffer *fbuf)
 
struct videobuf_buffervideobuf_alloc_vb (struct videobuf_queue *q)
 
voidvideobuf_queue_to_vaddr (struct videobuf_queue *q, struct videobuf_buffer *buf)
 
void videobuf_queue_core_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 videobuf_qtype_ops *int_ops, struct mutex *ext_lock)
 
int videobuf_queue_is_busy (struct videobuf_queue *q)
 
void videobuf_queue_cancel (struct videobuf_queue *q)
 
enum v4l2_field videobuf_next_field (struct videobuf_queue *q)
 
int videobuf_reqbufs (struct videobuf_queue *q, struct v4l2_requestbuffers *req)
 
int videobuf_querybuf (struct videobuf_queue *q, struct v4l2_buffer *b)
 
int videobuf_qbuf (struct videobuf_queue *q, struct v4l2_buffer *b)
 
int videobuf_dqbuf (struct videobuf_queue *q, struct v4l2_buffer *b, int nonblocking)
 
int videobuf_streamon (struct videobuf_queue *q)
 
int videobuf_streamoff (struct videobuf_queue *q)
 
void videobuf_stop (struct videobuf_queue *q)
 
int videobuf_read_start (struct videobuf_queue *q)
 
void videobuf_read_stop (struct videobuf_queue *q)
 
ssize_t videobuf_read_stream (struct videobuf_queue *q, char __user *data, size_t count, loff_t *ppos, int vbihack, int nonblocking)
 
ssize_t videobuf_read_one (struct videobuf_queue *q, char __user *data, size_t count, loff_t *ppos, int nonblocking)
 
unsigned int videobuf_poll_stream (struct file *file, struct videobuf_queue *q, poll_table *wait)
 
int videobuf_mmap_setup (struct videobuf_queue *q, unsigned int bcount, unsigned int bsize, enum v4l2_memory memory)
 
int __videobuf_mmap_setup (struct videobuf_queue *q, unsigned int bcount, unsigned int bsize, enum v4l2_memory memory)
 
int videobuf_mmap_free (struct videobuf_queue *q)
 
int videobuf_mmap_mapper (struct videobuf_queue *q, struct vm_area_struct *vma)
 

Macro Definition Documentation

#define MAGIC_QTYPE_OPS   0x12261003

Definition at line 117 of file videobuf-core.h.

#define UNSET   (-1U)

Definition at line 22 of file videobuf-core.h.

Enumeration Type Documentation

Enumerator:
VIDEOBUF_NEEDS_INIT 
VIDEOBUF_PREPARED 
VIDEOBUF_QUEUED 
VIDEOBUF_ACTIVE 
VIDEOBUF_DONE 
VIDEOBUF_ERROR 
VIDEOBUF_IDLE 

Definition at line 56 of file videobuf-core.h.

Function Documentation

int __videobuf_mmap_setup ( struct videobuf_queue q,
unsigned int  bcount,
unsigned int  bsize,
enum v4l2_memory  memory 
)

Definition at line 379 of file videobuf-core.c.

struct videobuf_buffer* videobuf_alloc_vb ( struct videobuf_queue q)
read

Definition at line 55 of file videobuf-core.c.

int videobuf_dqbuf ( struct videobuf_queue q,
struct v4l2_buffer b,
int  nonblocking 
)

Definition at line 688 of file videobuf-core.c.

int videobuf_iolock ( struct videobuf_queue q,
struct videobuf_buffer vb,
struct v4l2_framebuffer fbuf 
)

Definition at line 119 of file videobuf-core.c.

int videobuf_mmap_free ( struct videobuf_queue q)

Definition at line 368 of file videobuf-core.c.

int videobuf_mmap_mapper ( struct videobuf_queue q,
struct vm_area_struct vma 
)

Definition at line 1163 of file videobuf-core.c.

int videobuf_mmap_setup ( struct videobuf_queue q,
unsigned int  bcount,
unsigned int  bsize,
enum v4l2_memory  memory 
)

Definition at line 422 of file videobuf-core.c.

enum v4l2_field videobuf_next_field ( struct videobuf_queue q)

Definition at line 296 of file videobuf-core.c.

unsigned int videobuf_poll_stream ( struct file file,
struct videobuf_queue q,
poll_table wait 
)

Definition at line 1112 of file videobuf-core.c.

int videobuf_qbuf ( struct videobuf_queue q,
struct v4l2_buffer b 
)

Definition at line 521 of file videobuf-core.c.

int videobuf_querybuf ( struct videobuf_queue q,
struct v4l2_buffer b 
)

Definition at line 494 of file videobuf-core.c.

void videobuf_queue_cancel ( struct videobuf_queue q)

Definition at line 261 of file videobuf-core.c.

void videobuf_queue_core_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 videobuf_qtype_ops int_ops,
struct mutex ext_lock 
)

Definition at line 141 of file videobuf-core.c.

int videobuf_queue_is_busy ( struct videobuf_queue q)

Definition at line 183 of file videobuf-core.c.

void* videobuf_queue_to_vaddr ( struct videobuf_queue q,
struct videobuf_buffer buf 
)

Definition at line 129 of file videobuf-core.c.

ssize_t videobuf_read_one ( struct videobuf_queue q,
char __user data,
size_t  count,
loff_t *  ppos,
int  nonblocking 
)

Definition at line 867 of file videobuf-core.c.

int videobuf_read_start ( struct videobuf_queue q)

Definition at line 1005 of file videobuf-core.c.

void videobuf_read_stop ( struct videobuf_queue q)

Definition at line 1017 of file videobuf-core.c.

ssize_t videobuf_read_stream ( struct videobuf_queue q,
char __user data,
size_t  count,
loff_t *  ppos,
int  vbihack,
int  nonblocking 
)

Definition at line 1039 of file videobuf-core.c.

int videobuf_reqbufs ( struct videobuf_queue q,
struct v4l2_requestbuffers req 
)

Definition at line 434 of file videobuf-core.c.

void videobuf_stop ( struct videobuf_queue q)

Definition at line 1025 of file videobuf-core.c.

int videobuf_streamoff ( struct videobuf_queue q)

Definition at line 766 of file videobuf-core.c.

int videobuf_streamon ( struct videobuf_queue q)

Definition at line 728 of file videobuf-core.c.

int videobuf_waiton ( struct videobuf_queue q,
struct videobuf_buffer vb,
int  non_blocking,
int  intr 
)

Definition at line 87 of file videobuf-core.c.