Lines Matching refs:port_array
397 static int xhci_get_ports(struct usb_hcd *hcd, __le32 __iomem ***port_array) in xhci_get_ports() argument
404 *port_array = xhci->usb3_ports; in xhci_get_ports()
407 *port_array = xhci->usb2_ports; in xhci_get_ports()
413 void xhci_set_link_state(struct xhci_hcd *xhci, __le32 __iomem **port_array, in xhci_set_link_state() argument
418 temp = xhci_readl(xhci, port_array[port_id]); in xhci_set_link_state()
422 xhci_writel(xhci, temp, port_array[port_id]); in xhci_set_link_state()
426 void xhci_test_and_clear_bit(struct xhci_hcd *xhci, __le32 __iomem **port_array, in xhci_test_and_clear_bit() argument
431 temp = xhci_readl(xhci, port_array[port_id]); in xhci_test_and_clear_bit()
435 xhci_writel(xhci, temp, port_array[port_id]); in xhci_test_and_clear_bit()
447 __le32 __iomem **port_array; in xhci_hub_control() local
452 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_control()
496 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
534 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
600 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
609 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
612 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
622 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
641 xhci_set_link_state(xhci, port_array, wIndex, XDEV_U3); in xhci_hub_control()
647 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
651 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
675 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
682 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
694 port_array[wIndex]); in xhci_hub_control()
696 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
701 xhci_writel(xhci, temp, port_array[wIndex]); in xhci_hub_control()
703 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
708 xhci_writel(xhci, temp, port_array[wIndex]); in xhci_hub_control()
710 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
716 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
722 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
731 temp = xhci_readl(xhci, port_array[wIndex]); in xhci_hub_control()
740 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
745 xhci_set_link_state(xhci, port_array, wIndex, in xhci_hub_control()
767 port_array[wIndex], temp); in xhci_hub_control()
771 port_array[wIndex], temp); in xhci_hub_control()
802 __le32 __iomem **port_array; in xhci_hub_status_data() local
805 max_ports = xhci_get_ports(hcd, &port_array); in xhci_hub_status_data()
818 temp = xhci_readl(xhci, port_array[i]); in xhci_hub_status_data()
841 __le32 __iomem **port_array; in xhci_bus_suspend() local
845 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_suspend()
870 t1 = xhci_readl(xhci, port_array[port_index]); in xhci_bus_suspend()
899 xhci_writel(xhci, t2, port_array[port_index]); in xhci_bus_suspend()
909 addr = port_array[port_index] + 1; in xhci_bus_suspend()
925 __le32 __iomem **port_array; in xhci_bus_resume() local
930 max_ports = xhci_get_ports(hcd, &port_array); in xhci_bus_resume()
954 temp = xhci_readl(xhci, port_array[port_index]); in xhci_bus_resume()
962 xhci_set_link_state(xhci, port_array, in xhci_bus_resume()
965 xhci_set_link_state(xhci, port_array, in xhci_bus_resume()
972 xhci_set_link_state(xhci, port_array, in xhci_bus_resume()
983 xhci_test_and_clear_bit(xhci, port_array, port_index, in xhci_bus_resume()
991 xhci_writel(xhci, temp, port_array[port_index]); in xhci_bus_resume()
1001 addr = port_array[port_index] + 1; in xhci_bus_resume()