Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
xhci-ring.c File Reference
#include <linux/scatterlist.h>
#include <linux/slab.h>
#include "xhci.h"

Go to the source code of this file.

Functions

dma_addr_t xhci_trb_virt_to_dma (struct xhci_segment *seg, union xhci_trb *trb)
 
void xhci_ring_cmd_db (struct xhci_hcd *xhci)
 
int xhci_cancel_cmd (struct xhci_hcd *xhci, struct xhci_command *command, union xhci_trb *cmd_trb)
 
void xhci_ring_ep_doorbell (struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id)
 
void xhci_find_new_dequeue_state (struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *cur_td, struct xhci_dequeue_state *state)
 
void xhci_queue_new_dequeue_state (struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_dequeue_state *deq_state)
 
void xhci_stop_endpoint_command_watchdog (unsigned long arg)
 
struct xhci_segmenttrb_in_td (struct xhci_segment *start_seg, union xhci_trb *start_trb, union xhci_trb *end_trb, dma_addr_t suspect_dma)
 
int xhci_is_vendor_info_code (struct xhci_hcd *xhci, unsigned int trb_comp_code)
 
irqreturn_t xhci_irq (struct usb_hcd *hcd)
 
irqreturn_t xhci_msi_irq (int irq, struct usb_hcd *hcd)
 
int xhci_queue_intr_tx (struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index)
 
int xhci_queue_bulk_tx (struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index)
 
int xhci_queue_ctrl_tx (struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index)
 
int xhci_queue_isoc_tx_prepare (struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index)
 
int xhci_queue_slot_control (struct xhci_hcd *xhci, u32 trb_type, u32 slot_id)
 
int xhci_queue_address_device (struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, u32 slot_id)
 
int xhci_queue_vendor_command (struct xhci_hcd *xhci, u32 field1, u32 field2, u32 field3, u32 field4)
 
int xhci_queue_reset_device (struct xhci_hcd *xhci, u32 slot_id)
 
int xhci_queue_configure_endpoint (struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed)
 
int xhci_queue_evaluate_context (struct xhci_hcd *xhci, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed)
 
int xhci_queue_stop_endpoint (struct xhci_hcd *xhci, int slot_id, unsigned int ep_index, int suspend)
 
int xhci_queue_reset_ep (struct xhci_hcd *xhci, int slot_id, unsigned int ep_index)
 

Function Documentation

struct xhci_segment* trb_in_td ( struct xhci_segment start_seg,
union xhci_trb start_trb,
union xhci_trb end_trb,
dma_addr_t  suspect_dma 
)
read

Definition at line 1740 of file xhci-ring.c.

int xhci_cancel_cmd ( struct xhci_hcd xhci,
struct xhci_command command,
union xhci_trb cmd_trb 
)

Definition at line 361 of file xhci-ring.c.

void xhci_find_new_dequeue_state ( struct xhci_hcd xhci,
unsigned int  slot_id,
unsigned int  ep_index,
unsigned int  stream_id,
struct xhci_td cur_td,
struct xhci_dequeue_state state 
)

Definition at line 538 of file xhci-ring.c.

irqreturn_t xhci_irq ( struct usb_hcd *  hcd)

Definition at line 2696 of file xhci-ring.c.

int xhci_is_vendor_info_code ( struct xhci_hcd xhci,
unsigned int  trb_comp_code 
)

Definition at line 1838 of file xhci-ring.c.

irqreturn_t xhci_msi_irq ( int  irq,
struct usb_hcd *  hcd 
)

Definition at line 2784 of file xhci-ring.c.

int xhci_queue_address_device ( struct xhci_hcd xhci,
dma_addr_t  in_ctx_ptr,
u32  slot_id 
)

Definition at line 3881 of file xhci-ring.c.

int xhci_queue_bulk_tx ( struct xhci_hcd xhci,
gfp_t  mem_flags,
struct urb urb,
int  slot_id,
unsigned int  ep_index 
)

Definition at line 3261 of file xhci-ring.c.

int xhci_queue_configure_endpoint ( struct xhci_hcd xhci,
dma_addr_t  in_ctx_ptr,
u32  slot_id,
bool  command_must_succeed 
)

Definition at line 3905 of file xhci-ring.c.

int xhci_queue_ctrl_tx ( struct xhci_hcd xhci,
gfp_t  mem_flags,
struct urb urb,
int  slot_id,
unsigned int  ep_index 
)

Definition at line 3399 of file xhci-ring.c.

int xhci_queue_evaluate_context ( struct xhci_hcd xhci,
dma_addr_t  in_ctx_ptr,
u32  slot_id,
bool  command_must_succeed 
)

Definition at line 3915 of file xhci-ring.c.

int xhci_queue_intr_tx ( struct xhci_hcd xhci,
gfp_t  mem_flags,
struct urb urb,
int  slot_id,
unsigned int  ep_index 
)

Definition at line 3023 of file xhci-ring.c.

int xhci_queue_isoc_tx_prepare ( struct xhci_hcd xhci,
gfp_t  mem_flags,
struct urb urb,
int  slot_id,
unsigned int  ep_index 
)

Definition at line 3774 of file xhci-ring.c.

void xhci_queue_new_dequeue_state ( struct xhci_hcd xhci,
unsigned int  slot_id,
unsigned int  ep_index,
unsigned int  stream_id,
struct xhci_dequeue_state deq_state 
)

Definition at line 668 of file xhci-ring.c.

int xhci_queue_reset_device ( struct xhci_hcd xhci,
u32  slot_id 
)

Definition at line 3897 of file xhci-ring.c.

int xhci_queue_reset_ep ( struct xhci_hcd xhci,
int  slot_id,
unsigned int  ep_index 
)

Definition at line 3975 of file xhci-ring.c.

int xhci_queue_slot_control ( struct xhci_hcd xhci,
u32  trb_type,
u32  slot_id 
)

Definition at line 3874 of file xhci-ring.c.

int xhci_queue_stop_endpoint ( struct xhci_hcd xhci,
int  slot_id,
unsigned int  ep_index,
int  suspend 
)

Definition at line 3928 of file xhci-ring.c.

int xhci_queue_vendor_command ( struct xhci_hcd xhci,
u32  field1,
u32  field2,
u32  field3,
u32  field4 
)

Definition at line 3890 of file xhci-ring.c.

void xhci_ring_cmd_db ( struct xhci_hcd xhci)

Definition at line 281 of file xhci-ring.c.

void xhci_ring_ep_doorbell ( struct xhci_hcd xhci,
unsigned int  slot_id,
unsigned int  ep_index,
unsigned int  stream_id 
)

Definition at line 400 of file xhci-ring.c.

void xhci_stop_endpoint_command_watchdog ( unsigned long  arg)

Definition at line 899 of file xhci-ring.c.

dma_addr_t xhci_trb_virt_to_dma ( struct xhci_segment seg,
union xhci_trb trb 
)

Definition at line 79 of file xhci-ring.c.