Lines Matching refs:port_array
506 static int xhci_get_ports(struct usb_hcd *hcd, __le32 __iomem ***port_array) in xhci_get_ports() argument
513 *port_array = xhci->usb3_ports; in xhci_get_ports()
516 *port_array = xhci->usb2_ports; in xhci_get_ports()
522 void xhci_set_link_state(struct xhci_hcd *xhci, __le32 __iomem **port_array, in xhci_set_link_state() argument
527 temp = readl(port_array[port_id]); in xhci_set_link_state()
531 writel(temp, port_array[port_id]); in xhci_set_link_state()
535 __le32 __iomem **port_array, int port_id, u16 wake_mask) in xhci_set_remote_wake_mask() argument
539 temp = readl(port_array[port_id]); in xhci_set_remote_wake_mask()
557 writel(temp, port_array[port_id]); in xhci_set_remote_wake_mask()
561 void xhci_test_and_clear_bit(struct xhci_hcd *xhci, __le32 __iomem **port_array, in xhci_test_and_clear_bit() argument
566 temp = readl(port_array[port_id]); in xhci_test_and_clear_bit()
570 writel(temp, port_array[port_id]); in xhci_test_and_clear_bit()
690 __le32 __iomem **port_array, in xhci_get_port_status() argument
768 xhci_set_link_state(xhci, port_array, wIndex, in xhci_get_port_status()
787 int port_status = readl(port_array[wIndex]); in xhci_get_port_status()
871 __le32 __iomem **port_array; in xhci_hub_control() local
878 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_control()
916 temp = readl(port_array[wIndex]); in xhci_hub_control()
921 status = xhci_get_port_status(hcd, bus_state, port_array, in xhci_hub_control()
940 port_li = readl(port_array[wIndex] + PORTLI); in xhci_hub_control()
956 temp = readl(port_array[wIndex]); in xhci_hub_control()
965 temp = readl(port_array[wIndex]); in xhci_hub_control()
968 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
978 temp = readl(port_array[wIndex]); in xhci_hub_control()
997 xhci_set_link_state(xhci, port_array, wIndex, XDEV_U3); in xhci_hub_control()
1003 temp = readl(port_array[wIndex]); in xhci_hub_control()
1007 temp = readl(port_array[wIndex]); in xhci_hub_control()
1020 writel(temp | PORT_PE, port_array[wIndex]); in xhci_hub_control()
1021 temp = readl(port_array[wIndex]); in xhci_hub_control()
1028 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
1030 temp = readl(port_array[wIndex]); in xhci_hub_control()
1057 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
1064 temp = readl(port_array[wIndex]); in xhci_hub_control()
1075 writel(temp | PORT_POWER, port_array[wIndex]); in xhci_hub_control()
1077 temp = readl(port_array[wIndex]); in xhci_hub_control()
1090 writel(temp, port_array[wIndex]); in xhci_hub_control()
1092 temp = readl(port_array[wIndex]); in xhci_hub_control()
1096 xhci_set_remote_wake_mask(xhci, port_array, in xhci_hub_control()
1098 temp = readl(port_array[wIndex]); in xhci_hub_control()
1105 writel(temp, port_array[wIndex]); in xhci_hub_control()
1107 temp = readl(port_array[wIndex]); in xhci_hub_control()
1112 temp = readl(port_array[wIndex] + PORTPMSC); in xhci_hub_control()
1115 writel(temp, port_array[wIndex] + PORTPMSC); in xhci_hub_control()
1120 temp = readl(port_array[wIndex] + PORTPMSC); in xhci_hub_control()
1123 writel(temp, port_array[wIndex] + PORTPMSC); in xhci_hub_control()
1129 temp = readl(port_array[wIndex]); in xhci_hub_control()
1135 temp = readl(port_array[wIndex]); in xhci_hub_control()
1144 temp = readl(port_array[wIndex]); in xhci_hub_control()
1154 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
1159 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
1183 port_array[wIndex], temp); in xhci_hub_control()
1187 port_array[wIndex], temp); in xhci_hub_control()
1190 writel(temp & ~PORT_POWER, port_array[wIndex]); in xhci_hub_control()
1229 __le32 __iomem **port_array; in xhci_hub_status_data() local
1233 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_status_data()
1251 temp = readl(port_array[i]); in xhci_hub_status_data()
1280 __le32 __iomem **port_array; in xhci_bus_suspend() local
1284 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_suspend()
1305 t1 = readl(port_array[port_index]); in xhci_bus_suspend()
1338 writel(t2, port_array[port_index]); in xhci_bus_suspend()
1350 __le32 __iomem **port_array; in xhci_bus_resume() local
1359 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_resume()
1382 temp = readl(port_array[port_index]); in xhci_bus_resume()
1391 xhci_set_link_state(xhci, port_array, in xhci_bus_resume()
1396 writel(temp, port_array[port_index]); in xhci_bus_resume()
1410 xhci_test_and_clear_bit(xhci, port_array, port_index, PORT_PLC); in xhci_bus_resume()
1411 xhci_set_link_state(xhci, port_array, port_index, XDEV_U0); in xhci_bus_resume()
1419 sret = xhci_handshake(port_array[port_index], PORT_PLC, in xhci_bus_resume()
1424 xhci_test_and_clear_bit(xhci, port_array, port_index, PORT_PLC); in xhci_bus_resume()