Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
pvrusb2-io.h File Reference
#include <linux/usb.h>
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  pvr2_stream_stats
 

Typedefs

typedef void(* pvr2_stream_callback )(void *)
 

Enumerations

enum  pvr2_buffer_state { pvr2_buffer_state_none = 0, pvr2_buffer_state_idle = 1, pvr2_buffer_state_queued = 2, pvr2_buffer_state_ready = 3 }
 

Functions

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

Typedef Documentation

typedef void(* pvr2_stream_callback)(void *)

Definition at line 26 of file pvrusb2-io.h.

Enumeration Type Documentation

Enumerator:
pvr2_buffer_state_none 
pvr2_buffer_state_idle 
pvr2_buffer_state_queued 
pvr2_buffer_state_ready 

Definition at line 28 of file pvrusb2-io.h.

Function Documentation

unsigned int pvr2_buffer_get_count ( struct pvr2_buffer )

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

int pvr2_buffer_get_id ( struct pvr2_buffer )

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

int pvr2_buffer_get_status ( struct pvr2_buffer )

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

int pvr2_buffer_queue ( struct pvr2_buffer )

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

int pvr2_buffer_set_buffer ( struct pvr2_buffer ,
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 )

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 )

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

struct pvr2_buffer* pvr2_stream_get_idle_buffer ( struct pvr2_stream )
read

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

struct pvr2_buffer* pvr2_stream_get_ready_buffer ( struct pvr2_stream )
read

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

int pvr2_stream_get_ready_count ( struct pvr2_stream )

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

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

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

void pvr2_stream_kill ( struct pvr2_stream )

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

int pvr2_stream_set_buffer_count ( struct pvr2_stream ,
unsigned  int 
)

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

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

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

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

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