• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/host/

Lines Matching refs:xhci

25 #include "xhci.h"
27 static void xhci_hub_descriptor(struct xhci_hcd *xhci,
33 ports = HCS_MAX_PORTS(xhci->hcs_params1);
37 desc->bPwrOn2PwrGood = 10; /* xhci section 5.4.9 says 20ms max */
51 if (HCC_PPC(xhci->hcc_params))
126 static void xhci_disable_port(struct xhci_hcd *xhci, u16 wIndex,
130 if (xhci->port_array[wIndex] == 0x03) {
131 xhci_dbg(xhci, "Ignoring request to disable "
137 xhci_writel(xhci, port_status | PORT_PE, addr);
138 port_status = xhci_readl(xhci, addr);
139 xhci_dbg(xhci, "disable port, actual port %d status = 0x%x\n",
143 static void xhci_clear_port_change_bit(struct xhci_hcd *xhci, u16 wValue,
171 xhci_writel(xhci, port_status | status, addr);
172 port_status = xhci_readl(xhci, addr);
173 xhci_dbg(xhci, "clear port %s change, actual port %d status = 0x%x\n",
180 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
187 ports = HCS_MAX_PORTS(xhci->hcs_params1);
189 spin_lock_irqsave(&xhci->lock, flags);
196 xhci_hub_descriptor(xhci, (struct usb_hub_descriptor *) buf);
203 addr = &xhci->op_regs->port_status_base + NUM_PORT_REGS*(wIndex & 0xff);
204 temp = xhci_readl(xhci, addr);
205 xhci_dbg(xhci, "get port status, actual port %d status = 0x%x\n", wIndex, temp);
226 xhci_dbg(xhci, "Get port status returned 0x%x\n", status);
234 addr = &xhci->op_regs->port_status_base + NUM_PORT_REGS*(wIndex & 0xff);
235 temp = xhci_readl(xhci, addr);
245 xhci_writel(xhci, temp | PORT_POWER, addr);
247 temp = xhci_readl(xhci, addr);
248 xhci_dbg(xhci, "set port power, actual port %d status = 0x%x\n", wIndex, temp);
252 xhci_writel(xhci, temp, addr);
254 temp = xhci_readl(xhci, addr);
255 xhci_dbg(xhci, "set port reset, actual port %d status = 0x%x\n", wIndex, temp);
260 temp = xhci_readl(xhci, addr); /* unblock any posted writes */
266 addr = &xhci->op_regs->port_status_base +
268 temp = xhci_readl(xhci, addr);
275 xhci_clear_port_change_bit(xhci, wValue, wIndex,
279 xhci_disable_port(xhci, wIndex, addr, temp);
290 spin_unlock_irqrestore(&xhci->lock, flags);
307 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
311 ports = HCS_MAX_PORTS(xhci->hcs_params1);
318 spin_lock_irqsave(&xhci->lock, flags);
321 addr = &xhci->op_regs->port_status_base +
323 temp = xhci_readl(xhci, addr);
329 spin_unlock_irqrestore(&xhci->lock, flags);