Lines Matching refs:ports

161 		struct usb_hub_descriptor *desc, int ports)  in xhci_common_hub_descriptor()  argument
168 desc->bNbrPorts = ports; in xhci_common_hub_descriptor()
187 int ports; in xhci_usb2_hub_descriptor() local
195 ports = rhub->num_ports; in xhci_usb2_hub_descriptor()
196 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor()
198 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor()
205 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor()
206 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor()
232 for (i = 0; i < (ports + 1 + 7) / 8; i++) in xhci_usb2_hub_descriptor()
241 int ports; in xhci_usb3_hub_descriptor() local
248 ports = rhub->num_ports; in xhci_usb3_hub_descriptor()
249 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb3_hub_descriptor()
261 for (i = 0; i < ports; i++) { in xhci_usb3_hub_descriptor()
262 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor()
566 port = rhub->ports[index]; in xhci_set_port_power()
596 port = xhci->usb2_rhub.ports[wIndex]; in xhci_port_set_test_mode()
845 port = rhub->ports[wIndex]; in xhci_get_port_status()
1026 struct xhci_port **ports; in xhci_hub_control() local
1029 ports = rhub->ports; in xhci_hub_control()
1068 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1094 port_li = readl(ports[wIndex]->addr + PORTLI); in xhci_hub_control()
1112 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1122 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1125 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1135 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1153 xhci_set_link_state(xhci, ports[wIndex], XDEV_U3); in xhci_hub_control()
1159 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1163 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1175 writel(temp | PORT_PE, ports[wIndex]->addr); in xhci_hub_control()
1176 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1183 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1185 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1216 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1219 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1246 xhci_set_link_state(xhci, ports[wIndex], link_state); in xhci_hub_control()
1252 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1267 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1269 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1273 xhci_set_remote_wake_mask(xhci, ports[wIndex], in xhci_hub_control()
1275 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1282 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1283 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1288 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1291 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1296 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1299 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1314 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1320 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1330 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1340 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1345 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1370 ports[wIndex]->addr, temp); in xhci_hub_control()
1374 ports[wIndex]->addr, temp); in xhci_hub_control()
1414 struct xhci_port **ports; in xhci_hub_status_data() local
1417 ports = rhub->ports; in xhci_hub_status_data()
1436 temp = readl(ports[i]->addr); in xhci_hub_status_data()
1471 struct xhci_port **ports; in xhci_bus_suspend() local
1474 ports = rhub->ports; in xhci_bus_suspend()
1496 t1 = readl(ports[port_index]->addr); in xhci_bus_suspend()
1536 writel(t2, ports[port_index]->addr); in xhci_bus_suspend()
1583 struct xhci_port **ports; in xhci_bus_resume() local
1586 ports = rhub->ports; in xhci_bus_resume()
1612 portsc = readl(ports[port_index]->addr); in xhci_bus_resume()
1617 xhci_port_missing_cas_quirk(ports[port_index])) { in xhci_bus_resume()
1641 writel(portsc, ports[port_index]->addr); in xhci_bus_resume()
1654 xhci_test_and_clear_bit(xhci, ports[port_index], in xhci_bus_resume()
1656 xhci_set_link_state(xhci, ports[port_index], XDEV_U0); in xhci_bus_resume()
1662 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1669 xhci_test_and_clear_bit(xhci, ports[port_index], PORT_PLC); in xhci_bus_resume()