/linux-2.6.39/drivers/usb/host/ |
D | xhci.c | 54 static int handshake(struct xhci_hcd *xhci, void __iomem *ptr, in handshake() argument 60 result = xhci_readl(xhci, ptr); in handshake() 75 void xhci_quiesce(struct xhci_hcd *xhci) in xhci_quiesce() argument 82 halted = xhci_readl(xhci, &xhci->op_regs->status) & STS_HALT; in xhci_quiesce() 86 cmd = xhci_readl(xhci, &xhci->op_regs->command); in xhci_quiesce() 88 xhci_writel(xhci, cmd, &xhci->op_regs->command); in xhci_quiesce() 99 int xhci_halt(struct xhci_hcd *xhci) in xhci_halt() argument 102 xhci_dbg(xhci, "// Halt the HC\n"); in xhci_halt() 103 xhci_quiesce(xhci); in xhci_halt() 105 ret = handshake(xhci, &xhci->op_regs->status, in xhci_halt() [all …]
|
D | xhci-dbg.c | 29 void xhci_dbg_regs(struct xhci_hcd *xhci) in xhci_dbg_regs() argument 33 xhci_dbg(xhci, "// xHCI capability registers at %p:\n", in xhci_dbg_regs() 34 xhci->cap_regs); in xhci_dbg_regs() 35 temp = xhci_readl(xhci, &xhci->cap_regs->hc_capbase); in xhci_dbg_regs() 36 xhci_dbg(xhci, "// @%p = 0x%x (CAPLENGTH AND HCIVERSION)\n", in xhci_dbg_regs() 37 &xhci->cap_regs->hc_capbase, temp); in xhci_dbg_regs() 38 xhci_dbg(xhci, "// CAPLENGTH: 0x%x\n", in xhci_dbg_regs() 41 xhci_dbg(xhci, "// HCIVERSION: 0x%x\n", in xhci_dbg_regs() 45 xhci_dbg(xhci, "// xHCI operational registers at %p:\n", xhci->op_regs); in xhci_dbg_regs() 47 temp = xhci_readl(xhci, &xhci->cap_regs->run_regs_off); in xhci_dbg_regs() [all …]
|
D | xhci-mem.c | 37 static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, gfp_t flags) in xhci_segment_alloc() argument 45 xhci_dbg(xhci, "Allocating priv segment structure at %p\n", seg); in xhci_segment_alloc() 47 seg->trbs = dma_pool_alloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() 52 xhci_dbg(xhci, "// Allocating segment at %p (virtual) 0x%llx (DMA)\n", in xhci_segment_alloc() 62 static void xhci_segment_free(struct xhci_hcd *xhci, struct xhci_segment *seg) in xhci_segment_free() argument 67 xhci_dbg(xhci, "Freeing DMA segment at %p (virtual) 0x%llx (DMA)\n", in xhci_segment_free() 69 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma); in xhci_segment_free() 72 xhci_dbg(xhci, "Freeing priv segment structure at %p\n", seg); in xhci_segment_free() 83 static void xhci_link_segments(struct xhci_hcd *xhci, struct xhci_segment *prev, in xhci_link_segments() argument 99 if (xhci_link_trb_quirk(xhci)) in xhci_link_segments() [all …]
|
D | xhci-pci.c | 34 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument 44 xhci_dbg(xhci, "MWI active\n"); in xhci_pci_reinit() 46 xhci_dbg(xhci, "Finished xhci_pci_reinit\n"); in xhci_pci_reinit() 53 struct xhci_hcd *xhci; in xhci_pci_setup() local 61 xhci = kzalloc(sizeof(struct xhci_hcd), GFP_KERNEL); in xhci_pci_setup() 62 if (!xhci) in xhci_pci_setup() 64 *((struct xhci_hcd **) hcd->hcd_priv) = xhci; in xhci_pci_setup() 65 xhci->main_hcd = hcd; in xhci_pci_setup() 81 xhci = hcd_to_xhci(hcd); in xhci_pci_setup() 82 temp = xhci_readl(xhci, &xhci->cap_regs->hcc_params); in xhci_pci_setup() [all …]
|
D | xhci-ring.c | 71 static int handle_cmd_in_cmd_wait_list(struct xhci_hcd *xhci, 96 static bool last_trb_on_last_seg(struct xhci_hcd *xhci, struct xhci_ring *ring, in last_trb_on_last_seg() argument 99 if (ring == xhci->event_ring) in last_trb_on_last_seg() 101 (seg->next == xhci->event_ring->first_seg); in last_trb_on_last_seg() 110 static int last_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, in last_trb() argument 113 if (ring == xhci->event_ring) in last_trb() 129 static void next_trb(struct xhci_hcd *xhci, in next_trb() argument 134 if (last_trb(xhci, ring, *seg, *trb)) { in next_trb() 146 static void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring, bool consumer) in inc_deq() argument 155 while (last_trb(xhci, ring, ring->deq_seg, next)) { in inc_deq() [all …]
|
D | xhci-hub.c | 31 static void xhci_common_hub_descriptor(struct xhci_hcd *xhci, in xhci_common_hub_descriptor() argument 44 if (HCC_PPC(xhci->hcc_params)) in xhci_common_hub_descriptor() 57 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() argument 66 ports = xhci->num_usb2_ports; in xhci_usb2_hub_descriptor() 68 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor() 78 portsc = xhci_readl(xhci, xhci->usb3_ports[i]); in xhci_usb2_hub_descriptor() 110 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() argument 118 ports = xhci->num_usb3_ports; in xhci_usb3_hub_descriptor() 119 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb3_hub_descriptor() 132 portsc = xhci_readl(xhci, xhci->usb3_ports[i]); in xhci_usb3_hub_descriptor() [all …]
|
D | xhci.h | 755 struct xhci_hcd *xhci; member 1302 static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci) in xhci_to_hcd() argument 1304 return xhci->main_hcd; in xhci_to_hcd() 1313 #define xhci_dbg(xhci, fmt, args...) \ argument 1314 do { if (XHCI_DEBUG) dev_dbg(xhci_to_hcd(xhci)->self.controller , fmt , ## args); } while (0) 1315 #define xhci_info(xhci, fmt, args...) \ argument 1316 do { if (XHCI_DEBUG) dev_info(xhci_to_hcd(xhci)->self.controller , fmt , ## args); } while (0) 1317 #define xhci_err(xhci, fmt, args...) \ argument 1318 dev_err(xhci_to_hcd(xhci)->self.controller , fmt , ## args) 1319 #define xhci_warn(xhci, fmt, args...) \ argument [all …]
|
D | Makefile | 14 xhci-hcd-y := xhci.o xhci-mem.o xhci-pci.o 15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o 28 obj-$(CONFIG_USB_XHCI_HCD) += xhci-hcd.o
|
D | Kconfig | 28 module will be called xhci-hcd.
|
/linux-2.6.39/ |
D | MAINTAINERS | 6609 F: drivers/usb/host/xhci*
|