Lines Matching refs:ports

256 		struct usb_hub_descriptor *desc, int ports)  in xhci_common_hub_descriptor()  argument
262 desc->bNbrPorts = ports; in xhci_common_hub_descriptor()
281 int ports; in xhci_usb2_hub_descriptor() local
289 ports = rhub->num_ports; in xhci_usb2_hub_descriptor()
290 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor()
292 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor()
300 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor()
301 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor()
327 for (i = 0; i < (ports + 1 + 7) / 8; i++) in xhci_usb2_hub_descriptor()
336 int ports; in xhci_usb3_hub_descriptor() local
343 ports = rhub->num_ports; in xhci_usb3_hub_descriptor()
344 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb3_hub_descriptor()
357 for (i = 0; i < ports; i++) { in xhci_usb3_hub_descriptor()
358 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor()
664 port = rhub->ports[index]; in xhci_set_port_power()
697 port = xhci->usb2_rhub.ports[wIndex]; in xhci_port_set_test_mode()
1129 port = rhub->ports[wIndex]; in xhci_get_port_status()
1193 struct xhci_port **ports; in xhci_hub_control() local
1196 ports = rhub->ports; in xhci_hub_control()
1235 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1260 port_li = readl(ports[wIndex]->addr + PORTLI); in xhci_hub_control()
1278 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1288 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1291 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1301 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1320 xhci_set_link_state(xhci, ports[wIndex], XDEV_U3); in xhci_hub_control()
1326 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1330 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1343 writel(temp | PORT_PE, ports[wIndex]->addr); in xhci_hub_control()
1344 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1352 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1354 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1385 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1388 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1425 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1438 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1454 xhci_set_link_state(xhci, ports[wIndex], USB_SS_PORT_LS_U3); in xhci_hub_control()
1458 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1463 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1478 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1480 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1485 xhci_set_remote_wake_mask(xhci, ports[wIndex], in xhci_hub_control()
1487 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1493 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1494 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1499 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1502 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1507 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1510 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1526 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1532 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1542 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1553 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1558 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1584 ports[wIndex]->addr, temp); in xhci_hub_control()
1588 ports[wIndex]->addr, temp); in xhci_hub_control()
1628 struct xhci_port **ports; in xhci_hub_status_data() local
1631 ports = rhub->ports; in xhci_hub_status_data()
1651 temp = readl(ports[i]->addr); in xhci_hub_status_data()
1689 struct xhci_port **ports; in xhci_bus_suspend() local
1694 ports = rhub->ports; in xhci_bus_suspend()
1720 t1 = readl(ports[port_index]->addr); in xhci_bus_suspend()
1801 writel(portsc_buf[port_index], ports[port_index]->addr); in xhci_bus_suspend()
1852 struct xhci_port **ports; in xhci_bus_resume() local
1855 ports = rhub->ports; in xhci_bus_resume()
1881 portsc = readl(ports[port_index]->addr); in xhci_bus_resume()
1886 xhci_port_missing_cas_quirk(ports[port_index])) { in xhci_bus_resume()
1911 writel(portsc, ports[port_index]->addr); in xhci_bus_resume()
1924 xhci_test_and_clear_bit(xhci, ports[port_index], in xhci_bus_resume()
1926 xhci_set_link_state(xhci, ports[port_index], XDEV_U0); in xhci_bus_resume()
1932 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1939 xhci_test_and_clear_bit(xhci, ports[port_index], PORT_PLC); in xhci_bus_resume()