• Home
  • Raw
  • Download

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()
567 port = rhub->ports[index]; in xhci_set_port_power()
600 port = xhci->usb2_rhub.ports[wIndex]; in xhci_port_set_test_mode()
1029 port = rhub->ports[wIndex]; in xhci_get_port_status()
1093 struct xhci_port **ports; in xhci_hub_control() local
1096 ports = rhub->ports; in xhci_hub_control()
1135 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1160 port_li = readl(ports[wIndex]->addr + PORTLI); in xhci_hub_control()
1178 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1188 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1191 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1201 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1220 xhci_set_link_state(xhci, ports[wIndex], XDEV_U3); in xhci_hub_control()
1226 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1230 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1242 writel(temp | PORT_PE, ports[wIndex]->addr); in xhci_hub_control()
1243 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1250 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1252 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1283 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1286 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1313 xhci_set_link_state(xhci, ports[wIndex], link_state); in xhci_hub_control()
1319 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1334 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1336 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1340 xhci_set_remote_wake_mask(xhci, ports[wIndex], in xhci_hub_control()
1342 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1349 writel(temp, ports[wIndex]->addr); in xhci_hub_control()
1350 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1355 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1358 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1363 temp = readl(ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1366 writel(temp, ports[wIndex]->addr + PORTPMSC); in xhci_hub_control()
1381 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1387 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1397 temp = readl(ports[wIndex]->addr); in xhci_hub_control()
1408 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1413 xhci_set_link_state(xhci, ports[wIndex], in xhci_hub_control()
1439 ports[wIndex]->addr, temp); in xhci_hub_control()
1443 ports[wIndex]->addr, temp); in xhci_hub_control()
1483 struct xhci_port **ports; in xhci_hub_status_data() local
1486 ports = rhub->ports; in xhci_hub_status_data()
1505 temp = readl(ports[i]->addr); in xhci_hub_status_data()
1540 struct xhci_port **ports; in xhci_bus_suspend() local
1545 ports = rhub->ports; in xhci_bus_suspend()
1570 t1 = readl(ports[port_index]->addr); in xhci_bus_suspend()
1643 writel(portsc_buf[port_index], ports[port_index]->addr); in xhci_bus_suspend()
1690 struct xhci_port **ports; in xhci_bus_resume() local
1693 ports = rhub->ports; in xhci_bus_resume()
1719 portsc = readl(ports[port_index]->addr); in xhci_bus_resume()
1724 xhci_port_missing_cas_quirk(ports[port_index])) { in xhci_bus_resume()
1748 writel(portsc, ports[port_index]->addr); in xhci_bus_resume()
1761 xhci_test_and_clear_bit(xhci, ports[port_index], in xhci_bus_resume()
1763 xhci_set_link_state(xhci, ports[port_index], XDEV_U0); in xhci_bus_resume()
1769 sret = xhci_handshake(ports[port_index]->addr, PORT_PLC, in xhci_bus_resume()
1776 xhci_test_and_clear_bit(xhci, ports[port_index], PORT_PLC); in xhci_bus_resume()