Lines Matching refs:temp
150 u32 temp; in ehci_adjust_port_wakeup_flags() local
168 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
169 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
200 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
201 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
379 u32 temp; in ehci_bus_resume() local
429 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume()
430 if ((temp & PORT_PE) && in ehci_bus_resume()
431 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume()
432 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume()
451 temp = ehci_readl(ehci, hostpc_reg); in ehci_bus_resume()
452 ehci_writel(ehci, temp & ~HOSTPC_PHCD, in ehci_bus_resume()
466 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
467 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in ehci_bus_resume()
469 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
470 temp |= PORT_RESUME; in ehci_bus_resume()
473 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
490 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
492 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_bus_resume()
493 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
621 u32 temp, status; in ehci_hub_status_data() local
664 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_hub_status_data()
666 temp = 0; in ehci_hub_status_data()
675 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend) in ehci_hub_status_data()
678 || ehci_has_ci_pec_bug(ehci, temp)) { in ehci_hub_status_data()
703 u16 temp; in ehci_hub_descriptor() local
710 temp = 1 + (ports / 8); in ehci_hub_descriptor()
711 desc->bDescLength = 7 + 2 * temp; in ehci_hub_descriptor()
714 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in ehci_hub_descriptor()
715 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in ehci_hub_descriptor()
717 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in ehci_hub_descriptor()
719 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */ in ehci_hub_descriptor()
721 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in ehci_hub_descriptor()
725 temp |= HUB_CHAR_PORTIND; /* per-port indicators (LEDs) */ in ehci_hub_descriptor()
727 desc->wHubCharacteristics = cpu_to_le16(temp); in ehci_hub_descriptor()
743 u32 temp, temp1, status; in ehci_hub_control() local
753 temp = (wIndex - 1) & 0xff; in ehci_hub_control()
754 if (temp >= HCS_N_PORTS_MAX) in ehci_hub_control()
755 temp = 0; in ehci_hub_control()
756 status_reg = &ehci->regs->port_status[temp]; in ehci_hub_control()
757 hostpc_reg = &ehci->regs->hostpc[temp]; in ehci_hub_control()
782 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
783 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
794 ehci_writel(ehci, temp & ~PORT_PE, status_reg); in ehci_hub_control()
797 ehci_writel(ehci, temp | PORT_PEC, status_reg); in ehci_hub_control()
800 if (temp & PORT_RESET) in ehci_hub_control()
811 if (!(temp & PORT_SUSPEND)) in ehci_hub_control()
813 if ((temp & PORT_PE) == 0) in ehci_hub_control()
826 temp &= ~PORT_WAKE_BITS; in ehci_hub_control()
827 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in ehci_hub_control()
844 ehci_writel(ehci, temp | PORT_CSC, status_reg); in ehci_hub_control()
847 ehci_writel(ehci, temp | PORT_OCC, status_reg); in ehci_hub_control()
871 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
874 if (temp & PORT_CSC) in ehci_hub_control()
876 if (temp & PORT_PEC) in ehci_hub_control()
879 if (ehci_has_ci_pec_bug(ehci, temp)) { in ehci_hub_control()
883 wIndex + 1, temp); in ehci_hub_control()
886 if ((temp & PORT_OCC) && (!ignore_oc && !ehci->spurious_oc)){ in ehci_hub_control()
896 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle)) in ehci_hub_control()
901 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
909 if (temp & PORT_RESUME) { in ehci_hub_control()
932 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_hub_control()
933 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
942 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
950 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET), in ehci_hub_control()
964 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
969 if ((temp & PORT_CONNECT) && in ehci_hub_control()
971 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
972 temp |= PORT_OWNER; in ehci_hub_control()
973 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
975 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
984 if (temp & PORT_CONNECT) { in ehci_hub_control()
991 status |= ehci_port_speed(ehci, temp); in ehci_hub_control()
993 if (temp & PORT_PE) in ehci_hub_control()
997 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in ehci_hub_control()
1003 if (temp & PORT_PE) in ehci_hub_control()
1008 if (temp & PORT_OC) in ehci_hub_control()
1010 if (temp & PORT_RESET) in ehci_hub_control()
1012 if (temp & PORT_POWER) in ehci_hub_control()
1018 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1046 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1047 if (temp & PORT_OWNER) in ehci_hub_control()
1050 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1055 if ((temp & PORT_PE) == 0 in ehci_hub_control()
1056 || (temp & PORT_RESET) != 0) in ehci_hub_control()
1063 temp &= ~PORT_WKCONN_E; in ehci_hub_control()
1064 temp |= PORT_WKDISC_E | PORT_WKOC_E; in ehci_hub_control()
1065 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in ehci_hub_control()
1094 if (temp & (PORT_SUSPEND|PORT_RESUME)) in ehci_hub_control()
1100 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT in ehci_hub_control()
1102 && PORT_USB11 (temp)) { in ehci_hub_control()
1106 temp |= PORT_OWNER; in ehci_hub_control()
1108 temp |= PORT_RESET; in ehci_hub_control()
1109 temp &= ~PORT_PE; in ehci_hub_control()
1123 temp |= (1 << PORTSC_FSL_PFSC); in ehci_hub_control()
1125 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1155 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS; in ehci_hub_control()
1156 if (temp & PORT_PE) in ehci_hub_control()
1157 ehci_writel(ehci, temp | PORT_SUSPEND, in ehci_hub_control()
1165 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1166 temp |= selector << 16; in ehci_hub_control()
1167 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1211 u32 temp = ehci_readl(ehci, status_reg) & ~PORT_RWC_BITS; in ehci_port_power() local
1214 ehci_writel(ehci, temp | PORT_POWER, status_reg); in ehci_port_power()
1216 ehci_writel(ehci, temp & ~PORT_POWER, status_reg); in ehci_port_power()