Lines Matching refs:wIndex
440 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_disable_port() argument
453 wIndex, port_status); in xhci_disable_port()
457 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_clear_port_change_bit() argument
503 port_change_bit, wIndex, port_status); in xhci_clear_port_change_bit()
642 u16 wIndex) in xhci_del_comp_mod_timer() argument
651 xhci->port_status_u0 |= 1 << wIndex; in xhci_del_comp_mod_timer()
691 u16 wIndex, u32 raw_port_status, in xhci_get_port_status() argument
737 if (!bus_state->resume_done[wIndex]) { in xhci_get_port_status()
739 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_get_port_status()
753 set_bit(wIndex, &bus_state->resuming_ports); in xhci_get_port_status()
754 bus_state->resume_done[wIndex] = timeout; in xhci_get_port_status()
759 bus_state->resume_done[wIndex])) { in xhci_get_port_status()
763 wIndex + 1); in xhci_get_port_status()
764 bus_state->resume_done[wIndex] = 0; in xhci_get_port_status()
765 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_get_port_status()
767 set_bit(wIndex, &bus_state->rexit_ports); in xhci_get_port_status()
768 xhci_set_link_state(xhci, port_array, wIndex, in xhci_get_port_status()
773 &bus_state->rexit_done[wIndex], in xhci_get_port_status()
780 xhci, wIndex + 1); in xhci_get_port_status()
787 int port_status = readl(port_array[wIndex]); in xhci_get_port_status()
792 clear_bit(wIndex, &bus_state->rexit_ports); in xhci_get_port_status()
795 bus_state->port_c_suspend |= 1 << wIndex; in xhci_get_port_status()
796 bus_state->suspended_ports &= ~(1 << wIndex); in xhci_get_port_status()
811 if ((bus_state->resume_done[wIndex] || in xhci_get_port_status()
812 test_bit(wIndex, &bus_state->resuming_ports)) && in xhci_get_port_status()
815 bus_state->resume_done[wIndex] = 0; in xhci_get_port_status()
816 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_get_port_status()
822 if (bus_state->suspended_ports & (1 << wIndex)) { in xhci_get_port_status()
823 bus_state->suspended_ports &= ~(1 << wIndex); in xhci_get_port_status()
825 bus_state->port_c_suspend |= 1 << wIndex; in xhci_get_port_status()
827 bus_state->resume_done[wIndex] = 0; in xhci_get_port_status()
828 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_get_port_status()
853 xhci_del_comp_mod_timer(xhci, raw_port_status, wIndex); in xhci_get_port_status()
857 if (bus_state->port_c_suspend & (1 << wIndex)) in xhci_get_port_status()
864 u16 wIndex, char *buf, u16 wLength) in xhci_hub_control() argument
913 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
915 wIndex--; in xhci_hub_control()
916 temp = readl(port_array[wIndex]); in xhci_hub_control()
922 wIndex, temp, flags); in xhci_hub_control()
927 wIndex, temp); in xhci_hub_control()
940 port_li = readl(port_array[wIndex] + PORTLI); in xhci_hub_control()
947 link_state = (wIndex & 0xff00) >> 3; in xhci_hub_control()
949 wake_mask = wIndex & 0xff00; in xhci_hub_control()
951 timeout = (wIndex & 0xff00) >> 8; in xhci_hub_control()
952 wIndex &= 0xff; in xhci_hub_control()
953 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
955 wIndex--; 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()
987 wIndex + 1); 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()
1004 bus_state->suspended_ports |= 1 << wIndex; in xhci_hub_control()
1007 temp = readl(port_array[wIndex]); in xhci_hub_control()
1011 xhci_dbg(xhci, "Disable port %d\n", 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()
1027 xhci_dbg(xhci, "Enable port %d\n", 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()
1046 wIndex + 1); 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()
1066 bus_state->suspended_ports |= 1 << 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()
1078 xhci_dbg(xhci, "set port power, actual port %d status = 0x%x\n", wIndex, temp); in xhci_hub_control()
1082 wIndex); in xhci_hub_control()
1085 wIndex, true); in xhci_hub_control()
1090 writel(temp, port_array[wIndex]); in xhci_hub_control()
1092 temp = readl(port_array[wIndex]); in xhci_hub_control()
1093 xhci_dbg(xhci, "set port reset, actual port %d status = 0x%x\n", wIndex, temp); in xhci_hub_control()
1097 wIndex, wake_mask); in xhci_hub_control()
1098 temp = readl(port_array[wIndex]); in xhci_hub_control()
1101 wIndex, temp); 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()
1132 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
1134 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()
1153 set_bit(wIndex, &bus_state->resuming_ports); 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()
1161 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_hub_control()
1163 bus_state->port_c_suspend |= 1 << wIndex; in xhci_hub_control()
1166 wIndex + 1); in xhci_hub_control()
1174 bus_state->port_c_suspend &= ~(1 << wIndex); in xhci_hub_control()
1182 xhci_clear_port_change_bit(xhci, wValue, wIndex, in xhci_hub_control()
1183 port_array[wIndex], temp); in xhci_hub_control()
1186 xhci_disable_port(hcd, xhci, wIndex, 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()
1194 wIndex); in xhci_hub_control()
1197 wIndex, false); in xhci_hub_control()