Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
wa-hc.h File Reference
#include <linux/completion.h>
#include <linux/usb.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/uwb.h>
#include <linux/usb/wusb.h>
#include <linux/usb/wusb-wa.h>

Go to the source code of this file.

Data Structures

struct  wa_rpipe
 
struct  wahc
 

Enumerations

enum  { HWAHC_EPROTO_MAX = 16, HWAHC_EPROTO_PERIOD = 4 * HZ }
 

Functions

void wa_urb_enqueue_run (struct work_struct *ws)
 
int wa_create (struct wahc *wa, struct usb_interface *iface)
 
void __wa_destroy (struct wahc *wa)
 
void wa_reset_all (struct wahc *wa)
 
int wa_nep_create (struct wahc *, struct usb_interface *)
 
void wa_nep_destroy (struct wahc *)
 
void rpipe_destroy (struct kref *_rpipe)
 
int rpipe_get_by_ep (struct wahc *, struct usb_host_endpoint *, struct urb *, gfp_t)
 
void rpipe_ep_disable (struct wahc *, struct usb_host_endpoint *)
 
int wa_rpipes_create (struct wahc *)
 
void wa_rpipes_destroy (struct wahc *)
 
int wa_urb_enqueue (struct wahc *, struct usb_host_endpoint *, struct urb *, gfp_t)
 
int wa_urb_dequeue (struct wahc *, struct urb *)
 
void wa_handle_notif_xfer (struct wahc *, struct wa_notif_hdr *)
 

Variables

struct wa_rpipe __attribute__
 

Enumeration Type Documentation

anonymous enum
Enumerator:
HWAHC_EPROTO_MAX 

Max number of EPROTO errors we tolerate on the NEP in a period of time

HWAHC_EPROTO_PERIOD 

Period of time for EPROTO errors (in jiffies)

Definition at line 205 of file wa-hc.h.

Function Documentation

void __wa_destroy ( struct wahc wa)

Definition at line 71 of file wa-hc.c.

void rpipe_destroy ( struct kref _rpipe)

Definition at line 170 of file wa-rpipe.c.

void rpipe_ep_disable ( struct wahc ,
struct usb_host_endpoint *   
)

Definition at line 512 of file wa-rpipe.c.

int rpipe_get_by_ep ( struct wahc ,
struct usb_host_endpoint *  ,
struct urb ,
gfp_t   
)

Definition at line 432 of file wa-rpipe.c.

int wa_create ( struct wahc wa,
struct usb_interface iface 
)

Assumes

wa->usb_dev and wa->usb_iface initialized and refcounted, wa->wa_descr initialized.

Definition at line 36 of file wa-hc.c.

void wa_handle_notif_xfer ( struct wahc ,
struct wa_notif_hdr  
)

Definition at line 1560 of file wa-xfer.c.

int wa_nep_create ( struct wahc ,
struct usb_interface  
)

Definition at line 261 of file wa-nep.c.

void wa_nep_destroy ( struct wahc )

Definition at line 300 of file wa-nep.c.

void wa_reset_all ( struct wahc wa)

wa_reset_all - reset the WA device : the WA to be reset

For HWAs the radio controller and all other PALs are also reset.

Definition at line 91 of file wa-hc.c.

int wa_rpipes_create ( struct wahc )

Definition at line 479 of file wa-rpipe.c.

void wa_rpipes_destroy ( struct wahc )

Definition at line 489 of file wa-rpipe.c.

int wa_urb_dequeue ( struct wahc ,
struct urb  
)

Definition at line 1093 of file wa-xfer.c.

int wa_urb_enqueue ( struct wahc ,
struct usb_host_endpoint *  ,
struct urb ,
gfp_t   
)

Definition at line 1020 of file wa-xfer.c.

void wa_urb_enqueue_run ( struct work_struct ws)

Definition at line 986 of file wa-xfer.c.

Variable Documentation