Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pd-video.c File Reference
#include <linux/fs.h>
#include <linux/vmalloc.h>
#include <linux/videodev2.h>
#include <linux/usb.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-dev.h>
#include "pd-common.h"
#include "vendorcmds.h"

Go to the source code of this file.

Data Structures

struct  pd_audio_mode
struct  pd_input
struct  poseidon_control
struct  video_std_to_audio_std


#define copy_data(len)
#define GET_SUCCESS   (0)
#define GET_TRAILER   (1)
#define GET_TOO_MUCH_BUBBLE   (2)
#define GET_NONE   (3)


 module_param (usb_transfer_mode, int, 0644)
 MODULE_PARM_DESC (usb_transfer_mode,"0 = Bulk, 1 = Isochronous")
int alloc_bulk_urbs_generic (struct urb **urb_array, int num, struct usb_device *udev, u8 ep_addr, int buf_size, gfp_t gfp_flags, usb_complete_t complete_fn, void *context)
void free_all_urb_generic (struct urb **urb_array, int num)
int stop_all_video_stream (struct poseidon *pd)
void set_debug_mode (struct video_device *vfd, int debug_mode)
struct video_devicevdev_init (struct poseidon *pd, struct video_device *tmp)
void destroy_video_device (struct video_device **v_dev)
void pd_video_exit (struct poseidon *pd)
int pd_video_init (struct poseidon *pd)

Macro Definition Documentation

#define copy_data (   len)
do { \
if (++video->lines_copied > video->lines_per_field) \
goto overflow; \
memcpy(video->dst, src, len);\
video->dst += len + video->lines_size; \
src += len; \
count -= len; \
} while (0)
#define GET_NONE   (3)

Definition at line 367 of file pd-video.c.

#define GET_SUCCESS   (0)

Definition at line 364 of file pd-video.c.

#define GET_TOO_MUCH_BUBBLE   (2)

Definition at line 366 of file pd-video.c.

#define GET_TRAILER   (1)

Definition at line 365 of file pd-video.c.

Function Documentation

int alloc_bulk_urbs_generic ( struct urb **  urb_array,
int  num,
struct usb_device *  udev,
u8  ep_addr,
int  buf_size,
gfp_t  gfp_flags,
usb_complete_t  complete_fn,
void context 

Definition at line 509 of file pd-video.c.

void destroy_video_device ( struct video_device **  v_dev)

Definition at line 1614 of file pd-video.c.

void free_all_urb_generic ( struct urb **  urb_array,
int  num 

Definition at line 537 of file pd-video.c.

module_param ( usb_transfer_mode  ,
int  ,
MODULE_PARM_DESC ( usb_transfer_mode  ,
0 = Bulk 
void pd_video_exit ( struct poseidon pd)

Definition at line 1628 of file pd-video.c.

int pd_video_init ( struct poseidon pd)

Definition at line 1638 of file pd-video.c.

void set_debug_mode ( struct video_device vfd,
int  debug_mode 

Definition at line 1373 of file pd-video.c.

int stop_all_video_stream ( struct poseidon pd)

Definition at line 1211 of file pd-video.c.

struct video_device* vdev_init ( struct poseidon pd,
struct video_device tmp 

Definition at line 1598 of file pd-video.c.