Lines Matching refs:port_array

405 static int xhci_get_ports(struct usb_hcd *hcd, __le32 __iomem ***port_array)  in xhci_get_ports()  argument
412 *port_array = xhci->usb3_ports; in xhci_get_ports()
415 *port_array = xhci->usb2_ports; in xhci_get_ports()
421 void xhci_set_link_state(struct xhci_hcd *xhci, __le32 __iomem **port_array, in xhci_set_link_state() argument
426 temp = readl(port_array[port_id]); in xhci_set_link_state()
430 writel(temp, port_array[port_id]); in xhci_set_link_state()
434 __le32 __iomem **port_array, int port_id, u16 wake_mask) in xhci_set_remote_wake_mask() argument
438 temp = readl(port_array[port_id]); in xhci_set_remote_wake_mask()
456 writel(temp, port_array[port_id]); in xhci_set_remote_wake_mask()
460 void xhci_test_and_clear_bit(struct xhci_hcd *xhci, __le32 __iomem **port_array, in xhci_test_and_clear_bit() argument
465 temp = readl(port_array[port_id]); in xhci_test_and_clear_bit()
469 writel(temp, port_array[port_id]); in xhci_test_and_clear_bit()
573 __le32 __iomem **port_array, in xhci_get_port_status() argument
629 xhci_set_link_state(xhci, port_array, wIndex, in xhci_get_port_status()
648 int port_status = readl(port_array[wIndex]); in xhci_get_port_status()
716 __le32 __iomem **port_array; in xhci_hub_control() local
723 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_control()
774 temp = readl(port_array[wIndex]); in xhci_hub_control()
779 status = xhci_get_port_status(hcd, bus_state, port_array, in xhci_hub_control()
801 temp = readl(port_array[wIndex]); in xhci_hub_control()
810 temp = readl(port_array[wIndex]); in xhci_hub_control()
813 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
823 temp = readl(port_array[wIndex]); in xhci_hub_control()
842 xhci_set_link_state(xhci, port_array, wIndex, XDEV_U3); in xhci_hub_control()
848 temp = readl(port_array[wIndex]); in xhci_hub_control()
852 temp = readl(port_array[wIndex]); in xhci_hub_control()
865 writel(temp | PORT_PE, port_array[wIndex]); in xhci_hub_control()
866 temp = readl(port_array[wIndex]); in xhci_hub_control()
873 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
875 temp = readl(port_array[wIndex]); in xhci_hub_control()
902 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
909 temp = readl(port_array[wIndex]); in xhci_hub_control()
920 writel(temp | PORT_POWER, port_array[wIndex]); in xhci_hub_control()
922 temp = readl(port_array[wIndex]); in xhci_hub_control()
935 writel(temp, port_array[wIndex]); in xhci_hub_control()
937 temp = readl(port_array[wIndex]); in xhci_hub_control()
941 xhci_set_remote_wake_mask(xhci, port_array, in xhci_hub_control()
943 temp = readl(port_array[wIndex]); in xhci_hub_control()
950 writel(temp, port_array[wIndex]); in xhci_hub_control()
952 temp = readl(port_array[wIndex]); in xhci_hub_control()
957 temp = readl(port_array[wIndex] + PORTPMSC); in xhci_hub_control()
960 writel(temp, port_array[wIndex] + PORTPMSC); in xhci_hub_control()
965 temp = readl(port_array[wIndex] + PORTPMSC); in xhci_hub_control()
968 writel(temp, port_array[wIndex] + PORTPMSC); in xhci_hub_control()
974 temp = readl(port_array[wIndex]); in xhci_hub_control()
980 temp = readl(port_array[wIndex]); in xhci_hub_control()
989 temp = readl(port_array[wIndex]); in xhci_hub_control()
998 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
1003 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
1026 port_array[wIndex], temp); in xhci_hub_control()
1030 port_array[wIndex], temp); in xhci_hub_control()
1033 writel(temp & ~PORT_POWER, port_array[wIndex]); in xhci_hub_control()
1072 __le32 __iomem **port_array; in xhci_hub_status_data() local
1076 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_status_data()
1094 temp = readl(port_array[i]); in xhci_hub_status_data()
1123 __le32 __iomem **port_array; in xhci_bus_suspend() local
1127 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_suspend()
1148 t1 = readl(port_array[port_index]); in xhci_bus_suspend()
1181 writel(t2, port_array[port_index]); in xhci_bus_suspend()
1193 __le32 __iomem **port_array; in xhci_bus_resume() local
1198 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_resume()
1222 temp = readl(port_array[port_index]); in xhci_bus_resume()
1230 xhci_set_link_state(xhci, port_array, in xhci_bus_resume()
1233 xhci_set_link_state(xhci, port_array, in xhci_bus_resume()
1240 xhci_set_link_state(xhci, port_array, in xhci_bus_resume()
1251 xhci_test_and_clear_bit(xhci, port_array, port_index, in xhci_bus_resume()
1259 writel(temp, port_array[port_index]); in xhci_bus_resume()