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

Go to the source code of this file.

Data Structures

struct  pvr2_stream
 
struct  pvr2_buffer
 

Macros

#define BUFFER_SIG   0x47653271
 
#define BUFFER_CHECK(bp)   do {} while(0)
 

Functions

struct pvr2_streampvr2_stream_create (void)
 
void pvr2_stream_destroy (struct pvr2_stream *sp)
 
void pvr2_stream_setup (struct pvr2_stream *sp, struct usb_device *dev, int endpoint, unsigned int tolerance)
 
void pvr2_stream_set_callback (struct pvr2_stream *sp, pvr2_stream_callback func, void *data)
 
void pvr2_stream_get_stats (struct pvr2_stream *sp, struct pvr2_stream_stats *stats, int zero_counts)
 
int pvr2_stream_get_buffer_count (struct pvr2_stream *sp)
 
int pvr2_stream_set_buffer_count (struct pvr2_stream *sp, unsigned int cnt)
 
struct pvr2_bufferpvr2_stream_get_idle_buffer (struct pvr2_stream *sp)
 
struct pvr2_bufferpvr2_stream_get_ready_buffer (struct pvr2_stream *sp)
 
struct pvr2_bufferpvr2_stream_get_buffer (struct pvr2_stream *sp, int id)
 
int pvr2_stream_get_ready_count (struct pvr2_stream *sp)
 
void pvr2_stream_kill (struct pvr2_stream *sp)
 
int pvr2_buffer_queue (struct pvr2_buffer *bp)
 
int pvr2_buffer_set_buffer (struct pvr2_buffer *bp, void *ptr, unsigned int cnt)
 
unsigned int pvr2_buffer_get_count (struct pvr2_buffer *bp)
 
int pvr2_buffer_get_status (struct pvr2_buffer *bp)
 
int pvr2_buffer_get_id (struct pvr2_buffer *bp)
 

Macro Definition Documentation

#define BUFFER_CHECK (   bp)    do {} while(0)

Definition at line 46 of file pvrusb2-io.c.

#define BUFFER_SIG   0x47653271

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

Function Documentation

unsigned int pvr2_buffer_get_count ( struct pvr2_buffer bp)

Definition at line 671 of file pvrusb2-io.c.

int pvr2_buffer_get_id ( struct pvr2_buffer bp)

Definition at line 681 of file pvrusb2-io.c.

int pvr2_buffer_get_status ( struct pvr2_buffer bp)

Definition at line 676 of file pvrusb2-io.c.

int pvr2_buffer_queue ( struct pvr2_buffer bp)

Definition at line 604 of file pvrusb2-io.c.

int pvr2_buffer_set_buffer ( struct pvr2_buffer bp,
void ptr,
unsigned int  cnt 
)

Definition at line 643 of file pvrusb2-io.c.

struct pvr2_stream* pvr2_stream_create ( void  )
read

Definition at line 481 of file pvrusb2-io.c.

void pvr2_stream_destroy ( struct pvr2_stream sp)

Definition at line 491 of file pvrusb2-io.c.

struct pvr2_buffer* pvr2_stream_get_buffer ( struct pvr2_stream sp,
int  id 
)
read

Definition at line 578 of file pvrusb2-io.c.

int pvr2_stream_get_buffer_count ( struct pvr2_stream sp)

Definition at line 548 of file pvrusb2-io.c.

struct pvr2_buffer* pvr2_stream_get_idle_buffer ( struct pvr2_stream sp)
read

Definition at line 564 of file pvrusb2-io.c.

struct pvr2_buffer* pvr2_stream_get_ready_buffer ( struct pvr2_stream sp)
read

Definition at line 571 of file pvrusb2-io.c.

int pvr2_stream_get_ready_count ( struct pvr2_stream sp)

Definition at line 585 of file pvrusb2-io.c.

void pvr2_stream_get_stats ( struct pvr2_stream sp,
struct pvr2_stream_stats stats,
int  zero_counts 
)

Definition at line 525 of file pvrusb2-io.c.

void pvr2_stream_kill ( struct pvr2_stream sp)

Definition at line 590 of file pvrusb2-io.c.

int pvr2_stream_set_buffer_count ( struct pvr2_stream sp,
unsigned int  cnt 
)

Definition at line 553 of file pvrusb2-io.c.

void pvr2_stream_set_callback ( struct pvr2_stream sp,
pvr2_stream_callback  func,
void data 
)

Definition at line 512 of file pvrusb2-io.c.

void pvr2_stream_setup ( struct pvr2_stream sp,
struct usb_device *  dev,
int  endpoint,
unsigned int  tolerance 
)

Definition at line 499 of file pvrusb2-io.c.