Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xhci-hub.c File Reference
#include <linux/gfp.h>
#include <asm/unaligned.h>
#include "xhci.h"

Go to the source code of this file.


#define XHCI_PORT_RO   ((1<<0) | (1<<3) | (0xf<<10) | (1<<30))
#define XHCI_PORT_RWS   ((0xf<<5) | (1<<9) | (0x3<<14) | (0x7<<25))
#define XHCI_PORT_RW1S   ((1<<4))
#define XHCI_PORT_RW1CS   ((1<<1) | (0x7f<<17))
#define XHCI_PORT_RW   ((1<<16))
#define XHCI_PORT_RZ   ((1<<2) | (1<<24) | (0xf<<28))


u32 xhci_port_state_to_neutral (u32 state)
int xhci_find_slot_id_by_port (struct usb_hcd *hcd, struct xhci_hcd *xhci, u16 port)
void xhci_ring_device (struct xhci_hcd *xhci, int slot_id)
void xhci_set_link_state (struct xhci_hcd *xhci, __le32 __iomem **port_array, int port_id, u32 link_state)
void xhci_test_and_clear_bit (struct xhci_hcd *xhci, __le32 __iomem **port_array, int port_id, u32 port_bit)
void xhci_del_comp_mod_timer (struct xhci_hcd *xhci, u32 status, u16 wIndex)
int xhci_hub_control (struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength)
int xhci_hub_status_data (struct usb_hcd *hcd, char *buf)

Macro Definition Documentation


Definition at line 29 of file xhci-hub.c.


Definition at line 28 of file xhci-hub.c.

#define XHCI_PORT_RO   ((1<<0) | (1<<3) | (0xf<<10) | (1<<30))

Definition at line 190 of file xhci-hub.c.

#define XHCI_PORT_RW   ((1<<16))

Definition at line 214 of file xhci-hub.c.

#define XHCI_PORT_RW1CS   ((1<<1) | (0x7f<<17))

Definition at line 209 of file xhci-hub.c.

#define XHCI_PORT_RW1S   ((1<<4))

Definition at line 201 of file xhci-hub.c.

#define XHCI_PORT_RWS   ((0xf<<5) | (1<<9) | (0x3<<14) | (0x7<<25))

Definition at line 196 of file xhci-hub.c.

#define XHCI_PORT_RZ   ((1<<2) | (1<<24) | (0xf<<28))

Definition at line 219 of file xhci-hub.c.

Function Documentation

void xhci_del_comp_mod_timer ( struct xhci_hcd xhci,
u32  status,
u16  wIndex 

Definition at line 519 of file xhci-hub.c.

int xhci_find_slot_id_by_port ( struct usb_hcd *  hcd,
struct xhci_hcd xhci,
u16  port 

Definition at line 239 of file xhci-hub.c.

int xhci_hub_control ( struct usb_hcd *  hcd,
u16  typeReq,
u16  wValue,
u16  wIndex,
char buf,
u16  wLength 

Definition at line 537 of file xhci-hub.c.

int xhci_hub_status_data ( struct usb_hcd *  hcd,
char buf 

Definition at line 950 of file xhci-hub.c.

u32 xhci_port_state_to_neutral ( u32  state)

Definition at line 229 of file xhci-hub.c.

void xhci_ring_device ( struct xhci_hcd xhci,
int  slot_id 

Definition at line 321 of file xhci-hub.c.

void xhci_set_link_state ( struct xhci_hcd xhci,
__le32 __iomem **  port_array,
int  port_id,
u32  link_state 

Definition at line 412 of file xhci-hub.c.

void xhci_test_and_clear_bit ( struct xhci_hcd xhci,
__le32 __iomem **  port_array,
int  port_id,
u32  port_bit 

Definition at line 451 of file xhci-hub.c.