Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pvrusb2-ioread.c File Reference
#include "pvrusb2-ioread.h"
#include "pvrusb2-debug.h"
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  pvr2_ioread
 

Macros

#define BUFFER_COUNT   32
 
#define BUFFER_SIZE   PAGE_ALIGN(0x4000)
 

Functions

struct pvr2_ioreadpvr2_ioread_create (void)
 
void pvr2_ioread_destroy (struct pvr2_ioread *cp)
 
void pvr2_ioread_set_sync_key (struct pvr2_ioread *cp, const char *sync_key_ptr, unsigned int sync_key_len)
 
struct pvr2_streampvr2_ioread_get_stream (struct pvr2_ioread *cp)
 
int pvr2_ioread_setup (struct pvr2_ioread *cp, struct pvr2_stream *sp)
 
int pvr2_ioread_set_enabled (struct pvr2_ioread *cp, int fl)
 
int pvr2_ioread_avail (struct pvr2_ioread *cp)
 
int pvr2_ioread_read (struct pvr2_ioread *cp, void __user *buf, unsigned int cnt)
 

Macro Definition Documentation

#define BUFFER_COUNT   32

Definition at line 30 of file pvrusb2-ioread.c.

#define BUFFER_SIZE   PAGE_ALIGN(0x4000)

Definition at line 31 of file pvrusb2-ioread.c.

Function Documentation

int pvr2_ioread_avail ( struct pvr2_ioread cp)

Definition at line 368 of file pvrusb2-ioread.c.

struct pvr2_ioread* pvr2_ioread_create ( void  )
read

Definition at line 87 of file pvrusb2-ioread.c.

void pvr2_ioread_destroy ( struct pvr2_ioread cp)

Definition at line 100 of file pvrusb2-ioread.c.

struct pvr2_stream* pvr2_ioread_get_stream ( struct pvr2_ioread cp)
read

Definition at line 197 of file pvrusb2-ioread.c.

int pvr2_ioread_read ( struct pvr2_ioread cp,
void __user buf,
unsigned int  cnt 
)

Definition at line 404 of file pvrusb2-ioread.c.

int pvr2_ioread_set_enabled ( struct pvr2_ioread cp,
int  fl 
)

Definition at line 243 of file pvrusb2-ioread.c.

void pvr2_ioread_set_sync_key ( struct pvr2_ioread cp,
const char sync_key_ptr,
unsigned int  sync_key_len 
)

Definition at line 112 of file pvrusb2-ioread.c.

int pvr2_ioread_setup ( struct pvr2_ioread cp,
struct pvr2_stream sp 
)

Definition at line 202 of file pvrusb2-ioread.c.