Lines Matching refs:port

49 	int		port;
67 port = HCS_N_PORTS(ehci->hcs_params);
68 while (port--) {
69 if (test_bit(port, &ehci->owned_ports)) {
70 reg = &ehci->regs->port_status[port];
83 port = HCS_N_PORTS(ehci->hcs_params);
84 while (port--) {
85 if (test_bit(port, &ehci->owned_ports)) {
86 reg = &ehci->regs->port_status[port];
91 clear_bit(port, &ehci->owned_ports);
92 else if (test_bit(port, &ehci->companion_ports))
97 USB_PORT_FEAT_RESET, port + 1,
110 port = HCS_N_PORTS(ehci->hcs_params);
111 while (port--) {
112 if (test_bit(port, &ehci->owned_ports)) {
115 0, port + 1,
119 /* The companion should now own the port,
120 * but if something went wrong the port must not
123 reg = &ehci->regs->port_status[port];
128 ehci_dbg(ehci, "failed handover port %d: %x\n",
129 port + 1, status);
150 * so check the individual port status registers as well
163 int port;
167 * for the controller, we must adjust all the port wakeup flags
178 port = HCS_N_PORTS(ehci->hcs_params);
179 while (port--) {
180 u32 __iomem *hostpc_reg = &ehci->regs->hostpc[port];
190 port = HCS_N_PORTS(ehci->hcs_params);
191 while (port--) {
192 u32 __iomem *reg = &ehci->regs->port_status[port];
210 port = HCS_N_PORTS(ehci->hcs_params);
211 while (port--) {
212 u32 __iomem *hostpc_reg = &ehci->regs->hostpc[port];
219 /* Does the root hub have a port wakeup pending? */
229 int port;
246 /* Once the controller is stopped, port resumes that are already
254 ehci_dbg(ehci, "suspend failed because a port is resuming\n");
268 port = HCS_N_PORTS(ehci->hcs_params);
269 while (port--) {
270 u32 __iomem *reg = &ehci->regs->port_status [port];
276 set_bit(port, &ehci->owned_ports);
279 set_bit(port, &ehci->bus_suspended);
287 * set), the port change detection will finally fix it.
322 port = HCS_N_PORTS(ehci->hcs_params);
323 while (port--) {
324 u32 __iomem *hostpc_reg = &ehci->regs->hostpc[port];
331 port, (t3 & HOSTPC_PHCD) ?
397 /* Ideally and we've got a real resume here, and no port's power
423 * According to Bugzilla #8190, the port status for some controllers
424 * will be wrong without a delay. At their wrong status, the port
476 /* msleep for 20ms only if code is trying to resume port */
524 * Sets the owner of a port
535 * The controller won't set the OWNER bit if the port is
537 * iterations: one to disable the port and one to set OWNER.
574 "Failed to enable port %d on root hub TT\n",
579 ehci_dbg (ehci, "port %d full speed --> companion\n",
591 ehci_dbg(ehci, "port %d reset complete, port enabled\n",
643 /* port N changes (bit N)? */
646 /* get per-port change detect bits */
651 /* leverage per-port change bits feature */
705 temp = 0x0008; /* per-port overcurrent reporting */
707 temp |= 0x0001; /* per-port power control */
713 temp |= 0x0080; /* per-port indicators (LEDs) */
789 static int ehset_single_step_set_feature(struct usb_hcd *hcd, int port)
799 /* Obtain udev of the rhub's child port */
800 udev = usb_hub_find_child(hcd->self.root_hub, port);
904 * Even if OWNER is set, so the port is owned by the
906 * the port-change status bits (especially
999 * Hubs should disable port power on over-current.
1001 * automatically, even if they _do_ support per-port
1024 /* check the port again */
1047 ehci_err(ehci, "port %d resume error %d\n",
1067 ehci_err (ehci, "port %d reset error %d\n",
1083 ehci_dbg(ehci, "port %d --> companion\n", wIndex + 1);
1105 /* maybe the port was unsuspended without our knowledge */
1144 /* If the debug port is active any port
1168 /* After above check the port must be connected.
1205 "port %d low speed --> companion\n",
1222 /* For downstream facing ports (these): one hub port is put