Lines Matching defs:port

22 		HUB_CHAR_INDV_PORT_OCPM, /* (per-port OC, no power switching) */
38 /* suspend/resume bits: port suspended or port resuming */
41 /* A port that either is connected or has a changed-bit set will prevent
46 int port;
48 for (port = 0; port < uhci->rh_numports; ++port) {
49 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) &
51 test_bit(port, &uhci->port_c_suspend))
59 int port;
72 for (port = 0; port < uhci->rh_numports; ++port) {
73 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) & mask) ||
74 test_bit(port, &uhci->port_c_suspend))
75 *buf |= (1 << (port + 1));
96 static void uhci_finish_suspend(struct uhci_hcd *uhci, int port,
104 if (test_bit(port, &uhci->resuming_ports))
105 set_bit(port, &uhci->port_c_suspend);
118 clear_bit(port, &uhci->resuming_ports);
119 usb_hcd_end_port_resume(&uhci_to_hcd(uhci)->self, port);
139 unsigned int port;
143 for (port = 0; port < uhci->rh_numports; ++port) {
144 port_addr = USBPORTSC1 + 2 * port;
156 /* If the port was enabled before, turning
157 * reset on caused a port enable change.
158 * Turning reset off causes a port connect
165 if (!test_bit(port, &uhci->resuming_ports)) {
168 set_bit(port, &uhci->resuming_ports);
172 &uhci_to_hcd(uhci)->self, port);
174 /* Make sure we see the port again
180 uhci_finish_suspend(uhci, port, port_addr);
203 /* if port change, ask to be resumed */
211 /* if port change, auto start */
248 unsigned int port = wIndex - 1;
249 unsigned long port_addr = USBPORTSC1 + 2 * port;
264 if (port >= uhci->rh_numports)
286 if (test_bit(port, &uhci->port_c_suspend)) {
290 if (test_bit(port, &uhci->resuming_ports))
310 dev_dbg(uhci_dev(uhci), "port %d portsc %04x,%02x\n",
328 if (port >= uhci->rh_numports)
339 uhci_finish_suspend(uhci, port, port_addr);
353 if (port >= uhci->rh_numports)
361 uhci_finish_suspend(uhci, port, port_addr);
369 /* Make certain the port isn't suspended */
370 uhci_finish_suspend(uhci, port, port_addr);
371 } else if (!test_and_set_bit(port,
376 * if the port is disabled. When this happens
381 uhci_finish_suspend(uhci, port,
390 clear_bit(port, &uhci->port_c_suspend);