Lines Matching refs:port

45 	int port;  in any_ports_active()  local
47 for (port = 0; port < uhci->rh_numports; ++port) { in any_ports_active()
48 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) & in any_ports_active()
50 test_bit(port, &uhci->port_c_suspend)) in any_ports_active()
58 int port; in get_hub_status_data() local
71 for (port = 0; port < uhci->rh_numports; ++port) { in get_hub_status_data()
72 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) & mask) || in get_hub_status_data()
73 test_bit(port, &uhci->port_c_suspend)) in get_hub_status_data()
74 *buf |= (1 << (port + 1)); in get_hub_status_data()
95 static void uhci_finish_suspend(struct uhci_hcd *uhci, int port, in uhci_finish_suspend() argument
103 if (test_bit(port, &uhci->resuming_ports)) in uhci_finish_suspend()
104 set_bit(port, &uhci->port_c_suspend); in uhci_finish_suspend()
117 clear_bit(port, &uhci->resuming_ports); in uhci_finish_suspend()
118 usb_hcd_end_port_resume(&uhci_to_hcd(uhci)->self, port); in uhci_finish_suspend()
138 unsigned int port; in uhci_check_ports() local
142 for (port = 0; port < uhci->rh_numports; ++port) { in uhci_check_ports()
143 port_addr = USBPORTSC1 + 2 * port; in uhci_check_ports()
164 if (!test_bit(port, &uhci->resuming_ports)) { in uhci_check_ports()
167 set_bit(port, &uhci->resuming_ports); in uhci_check_ports()
171 &uhci_to_hcd(uhci)->self, port); in uhci_check_ports()
179 uhci_finish_suspend(uhci, port, port_addr); in uhci_check_ports()
247 unsigned int port = wIndex - 1; in uhci_hub_control() local
248 unsigned long port_addr = USBPORTSC1 + 2 * port; in uhci_hub_control()
263 if (port >= uhci->rh_numports) in uhci_hub_control()
285 if (test_bit(port, &uhci->port_c_suspend)) { in uhci_hub_control()
289 if (test_bit(port, &uhci->resuming_ports)) in uhci_hub_control()
327 if (port >= uhci->rh_numports) in uhci_hub_control()
338 uhci_finish_suspend(uhci, port, port_addr); in uhci_hub_control()
352 if (port >= uhci->rh_numports) in uhci_hub_control()
360 uhci_finish_suspend(uhci, port, port_addr); in uhci_hub_control()
369 uhci_finish_suspend(uhci, port, port_addr); in uhci_hub_control()
370 } else if (!test_and_set_bit(port, in uhci_hub_control()
380 uhci_finish_suspend(uhci, port, in uhci_hub_control()
389 clear_bit(port, &uhci->port_c_suspend); in uhci_hub_control()