Lines Matching refs:ports

170 		struct usb_hub_descriptor *desc, int ports)  in xhci_common_hub_descriptor()  argument
176 desc->bNbrPorts = ports; in xhci_common_hub_descriptor()
195 int ports; in xhci_usb2_hub_descriptor() local
203 ports = rhub->num_ports; in xhci_usb2_hub_descriptor()
204 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor()
206 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor()
214 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor()
215 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor()
241 for (i = 0; i < (ports + 1 + 7) / 8; i++) in xhci_usb2_hub_descriptor()
250 int ports; in xhci_usb3_hub_descriptor() local
257 ports = rhub->num_ports; in xhci_usb3_hub_descriptor()
258 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb3_hub_descriptor()
271 for (i = 0; i < ports; i++) { in xhci_usb3_hub_descriptor()
272 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor()
583 port = rhub->ports[index]; in xhci_set_port_power()
616 port = xhci->usb2_rhub.ports[wIndex]; in xhci_port_set_test_mode()
1051 port = rhub->ports[wIndex]; in xhci_get_port_status()
1115 struct xhci_port **ports; in xhci_hub_control() local
1118 ports = rhub->ports; in xhci_hub_control()
1157 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1182 port_li = readl(ports[wIndex]->addr + PORTLI); in xhci_hub_control()
1200 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1210 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1213 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1223 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1242 xhci_set_link_state(xhci, ports[wIndex], XDEV_U3); in xhci_hub_control()
1248 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1252 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1265 writel(temp | PORT_PE, ports[wIndex]->addr); in xhci_hub_control()
1266 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1274 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1276 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1307 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1310 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1347 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1360 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1376 xhci_set_link_state(xhci, ports[wIndex], USB_SS_PORT_LS_U3); in xhci_hub_control()
1380 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1385 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1400 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1402 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1407 xhci_set_remote_wake_mask(xhci, ports[wIndex], in xhci_hub_control()
1409 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1415 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1416 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1421 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1424 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1429 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1432 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1448 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1454 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1464 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1475 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1480 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1506 ports[wIndex]->addr, temp); in xhci_hub_control()
1510 ports[wIndex]->addr, temp); in xhci_hub_control()
1550 struct xhci_port **ports; in xhci_hub_status_data() local
1553 ports = rhub->ports; in xhci_hub_status_data()
1573 temp = readl(ports[i]->addr); in xhci_hub_status_data()
1611 struct xhci_port **ports; in xhci_bus_suspend() local
1616 ports = rhub->ports; in xhci_bus_suspend()
1642 t1 = readl(ports[port_index]->addr); in xhci_bus_suspend()
1737 writel(portsc_buf[port_index], ports[port_index]->addr); in xhci_bus_suspend()
1789 struct xhci_port **ports; in xhci_bus_resume() local
1792 ports = rhub->ports; in xhci_bus_resume()
1818 portsc = readl(ports[port_index]->addr); in xhci_bus_resume()
1823 xhci_port_missing_cas_quirk(ports[port_index])) { in xhci_bus_resume()
1848 writel(portsc, ports[port_index]->addr); in xhci_bus_resume()
1861 xhci_test_and_clear_bit(xhci, ports[port_index], in xhci_bus_resume()
1863 xhci_set_link_state(xhci, ports[port_index], XDEV_U0); in xhci_bus_resume()
1869 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1876 xhci_test_and_clear_bit(xhci, ports[port_index], PORT_PLC); in xhci_bus_resume()