Lines Matching refs:wIndex
1493 u16 wIndex, in fusbh200_hub_control() argument
1525 if (!wIndex || wIndex > ports) in fusbh200_hub_control()
1527 wIndex--; in fusbh200_hub_control()
1554 fusbh200->reset_done[wIndex] = jiffies in fusbh200_hub_control()
1558 clear_bit(wIndex, &fusbh200->port_c_suspend); in fusbh200_hub_control()
1584 if (!wIndex || wIndex > ports) in fusbh200_hub_control()
1586 wIndex--; in fusbh200_hub_control()
1604 if (!fusbh200->reset_done[wIndex]) { in fusbh200_hub_control()
1606 fusbh200->reset_done[wIndex] = jiffies in fusbh200_hub_control()
1610 fusbh200->reset_done[wIndex]); in fusbh200_hub_control()
1615 fusbh200->reset_done[wIndex])) { in fusbh200_hub_control()
1616 clear_bit(wIndex, &fusbh200->suspended_ports); in fusbh200_hub_control()
1617 set_bit(wIndex, &fusbh200->port_c_suspend); in fusbh200_hub_control()
1618 fusbh200->reset_done[wIndex] = 0; in fusbh200_hub_control()
1625 clear_bit(wIndex, &fusbh200->resuming_ports); in fusbh200_hub_control()
1631 wIndex + 1, retval); in fusbh200_hub_control()
1641 fusbh200->reset_done[wIndex])) { in fusbh200_hub_control()
1643 fusbh200->reset_done [wIndex] = 0; in fusbh200_hub_control()
1644 clear_bit(wIndex, &fusbh200->resuming_ports); in fusbh200_hub_control()
1656 wIndex + 1, retval); in fusbh200_hub_control()
1661 temp = check_reset_complete (fusbh200, wIndex, status_reg, in fusbh200_hub_control()
1666 fusbh200->reset_done[wIndex] = 0; in fusbh200_hub_control()
1667 clear_bit(wIndex, &fusbh200->resuming_ports); in fusbh200_hub_control()
1672 test_bit(wIndex, &fusbh200->companion_ports)) { in fusbh200_hub_control()
1675 fusbh200_dbg(fusbh200, "port %d --> companion\n", wIndex + 1); in fusbh200_hub_control()
1695 } else if (test_bit(wIndex, &fusbh200->suspended_ports)) { in fusbh200_hub_control()
1696 clear_bit(wIndex, &fusbh200->suspended_ports); in fusbh200_hub_control()
1697 clear_bit(wIndex, &fusbh200->resuming_ports); in fusbh200_hub_control()
1698 fusbh200->reset_done[wIndex] = 0; in fusbh200_hub_control()
1700 set_bit(wIndex, &fusbh200->port_c_suspend); in fusbh200_hub_control()
1708 if (test_bit(wIndex, &fusbh200->port_c_suspend)) in fusbh200_hub_control()
1712 dbg_port(fusbh200, "GetStatus", wIndex + 1, temp); in fusbh200_hub_control()
1726 selector = wIndex >> 8; in fusbh200_hub_control()
1727 wIndex &= 0xff; in fusbh200_hub_control()
1729 if (!wIndex || wIndex > ports) in fusbh200_hub_control()
1731 wIndex--; in fusbh200_hub_control()
1745 set_bit(wIndex, &fusbh200->suspended_ports); in fusbh200_hub_control()
1754 fusbh200_dbg(fusbh200, "port %d reset\n", wIndex + 1); in fusbh200_hub_control()
1762 fusbh200->reset_done [wIndex] = jiffies in fusbh200_hub_control()