Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
musb_gadget.c File Reference
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include "musb_core.h"

Go to the source code of this file.

Data Structures

struct  free_record
 

Macros

#define is_buffer_mapped(req)
 

Functions

void musb_g_giveback (struct musb_ep *ep, struct usb_request *request, int status) __releases(ep-> musb->lock) __acquires(ep->musb->lock)
 
void musb_g_tx (struct musb *musb, u8 epnum)
 
void musb_g_rx (struct musb *musb, u8 epnum)
 
struct usb_requestmusb_alloc_request (struct usb_ep *ep, gfp_t gfp_flags)
 
void musb_free_request (struct usb_ep *ep, struct usb_request *req)
 
void musb_ep_restart (struct musb *musb, struct musb_request *req)
 
int __devinit musb_gadget_setup (struct musb *musb)
 
void musb_gadget_cleanup (struct musb *musb)
 
void musb_g_resume (struct musb *musb)
 
void musb_g_suspend (struct musb *musb)
 
void musb_g_wakeup (struct musb *musb)
 
void musb_g_disconnect (struct musb *musb)
 
void musb_g_reset (struct musb *musb) __releases(musb-> lock) __acquires(musb->lock)
 

Macro Definition Documentation

#define is_buffer_mapped (   req)
Value:
(req->map_state != UN_MAPPED))

Definition at line 93 of file musb_gadget.c.

Function Documentation

struct usb_request* musb_alloc_request ( struct usb_ep ep,
gfp_t  gfp_flags 
)
read

Definition at line 1264 of file musb_gadget.c.

void musb_ep_restart ( struct musb musb,
struct musb_request req 
)

Definition at line 1304 of file musb_gadget.c.

void musb_free_request ( struct usb_ep ep,
struct usb_request req 
)

Definition at line 1287 of file musb_gadget.c.

void musb_g_disconnect ( struct musb musb)

Definition at line 2127 of file musb_gadget.c.

void musb_g_giveback ( struct musb_ep ep,
struct usb_request request,
int  status 
) -> musb->lock) __acquires(ep->musb->lock)

Definition at line 178 of file musb_gadget.c.

void musb_g_reset ( struct musb musb) -> lock) __acquires(musb->lock)

Definition at line 2171 of file musb_gadget.c.

void musb_g_resume ( struct musb musb)

Definition at line 2069 of file musb_gadget.c.

void musb_g_rx ( struct musb musb,
u8  epnum 
)

Definition at line 908 of file musb_gadget.c.

void musb_g_suspend ( struct musb musb)

Definition at line 2091 of file musb_gadget.c.

void musb_g_tx ( struct musb musb,
u8  epnum 
)

Definition at line 492 of file musb_gadget.c.

void musb_g_wakeup ( struct musb musb)

Definition at line 2121 of file musb_gadget.c.

void musb_gadget_cleanup ( struct musb musb)

Definition at line 1908 of file musb_gadget.c.

int __devinit musb_gadget_setup ( struct musb musb)

Definition at line 1865 of file musb_gadget.c.