Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
uvc_queue.c File Reference
#include <linux/atomic.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/videodev2.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
#include <media/videobuf2-vmalloc.h>
#include "uvcvideo.h"

Go to the source code of this file.

Functions

int uvc_queue_init (struct uvc_video_queue *queue, enum v4l2_buf_type type, int drop_corrupted)
 
int uvc_alloc_buffers (struct uvc_video_queue *queue, struct v4l2_requestbuffers *rb)
 
void uvc_free_buffers (struct uvc_video_queue *queue)
 
int uvc_query_buffer (struct uvc_video_queue *queue, struct v4l2_buffer *buf)
 
int uvc_queue_buffer (struct uvc_video_queue *queue, struct v4l2_buffer *buf)
 
int uvc_dequeue_buffer (struct uvc_video_queue *queue, struct v4l2_buffer *buf, int nonblocking)
 
int uvc_queue_mmap (struct uvc_video_queue *queue, struct vm_area_struct *vma)
 
unsigned long uvc_queue_get_unmapped_area (struct uvc_video_queue *queue, unsigned long pgoff)
 
unsigned int uvc_queue_poll (struct uvc_video_queue *queue, struct file *file, poll_table *wait)
 
int uvc_queue_allocated (struct uvc_video_queue *queue)
 
int uvc_queue_enable (struct uvc_video_queue *queue, int enable)
 
void uvc_queue_cancel (struct uvc_video_queue *queue, int disconnect)
 
struct uvc_bufferuvc_queue_next_buffer (struct uvc_video_queue *queue, struct uvc_buffer *buf)
 

Function Documentation

int uvc_alloc_buffers ( struct uvc_video_queue queue,
struct v4l2_requestbuffers rb 
)

Definition at line 152 of file uvc_queue.c.

int uvc_dequeue_buffer ( struct uvc_video_queue queue,
struct v4l2_buffer buf,
int  nonblocking 
)

Definition at line 193 of file uvc_queue.c.

void uvc_free_buffers ( struct uvc_video_queue queue)

Definition at line 164 of file uvc_queue.c.

int uvc_query_buffer ( struct uvc_video_queue queue,
struct v4l2_buffer buf 
)

Definition at line 171 of file uvc_queue.c.

int uvc_queue_allocated ( struct uvc_video_queue queue)

Definition at line 248 of file uvc_queue.c.

int uvc_queue_buffer ( struct uvc_video_queue queue,
struct v4l2_buffer buf 
)

Definition at line 182 of file uvc_queue.c.

void uvc_queue_cancel ( struct uvc_video_queue queue,
int  disconnect 
)

Definition at line 314 of file uvc_queue.c.

int uvc_queue_enable ( struct uvc_video_queue queue,
int  enable 
)

Definition at line 275 of file uvc_queue.c.

unsigned long uvc_queue_get_unmapped_area ( struct uvc_video_queue queue,
unsigned long  pgoff 
)

Definition at line 217 of file uvc_queue.c.

int uvc_queue_init ( struct uvc_video_queue queue,
enum v4l2_buf_type  type,
int  drop_corrupted 
)

Definition at line 125 of file uvc_queue.c.

int uvc_queue_mmap ( struct uvc_video_queue queue,
struct vm_area_struct vma 
)

Definition at line 205 of file uvc_queue.c.

struct uvc_buffer* uvc_queue_next_buffer ( struct uvc_video_queue queue,
struct uvc_buffer buf 
)
read

Definition at line 338 of file uvc_queue.c.

unsigned int uvc_queue_poll ( struct uvc_video_queue queue,
struct file file,
poll_table wait 
)

Definition at line 229 of file uvc_queue.c.