Lines Matching refs:temp
162 u32 temp; in ehci_adjust_port_wakeup_flags() local
180 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
181 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
212 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
213 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
378 u32 temp; in ehci_bus_resume() local
428 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume()
429 if ((temp & PORT_PE) && in ehci_bus_resume()
430 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume()
431 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume()
450 temp = ehci_readl(ehci, hostpc_reg); in ehci_bus_resume()
451 ehci_writel(ehci, temp & ~HOSTPC_PHCD, in ehci_bus_resume()
465 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
466 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in ehci_bus_resume()
468 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
469 temp |= PORT_RESUME; in ehci_bus_resume()
472 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
489 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
491 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_bus_resume()
492 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
612 u32 temp, status; in ehci_hub_status_data() local
655 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_hub_status_data()
657 temp = 0; in ehci_hub_status_data()
666 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend) in ehci_hub_status_data()
693 u16 temp; in ehci_hub_descriptor() local
700 temp = 1 + (ports / 8); in ehci_hub_descriptor()
701 desc->bDescLength = 7 + 2 * temp; in ehci_hub_descriptor()
704 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in ehci_hub_descriptor()
705 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in ehci_hub_descriptor()
707 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in ehci_hub_descriptor()
709 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */ in ehci_hub_descriptor()
711 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in ehci_hub_descriptor()
715 temp |= HUB_CHAR_PORTIND; /* per-port indicators (LEDs) */ in ehci_hub_descriptor()
717 desc->wHubCharacteristics = cpu_to_le16(temp); in ehci_hub_descriptor()
874 u32 temp, temp1, status; in ehci_hub_control() local
902 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
903 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
914 ehci_writel(ehci, temp & ~PORT_PE, status_reg); in ehci_hub_control()
917 ehci_writel(ehci, temp | PORT_PEC, status_reg); in ehci_hub_control()
920 if (temp & PORT_RESET) in ehci_hub_control()
931 if (!(temp & PORT_SUSPEND)) in ehci_hub_control()
933 if ((temp & PORT_PE) == 0) in ehci_hub_control()
946 temp &= ~PORT_WAKE_BITS; in ehci_hub_control()
947 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in ehci_hub_control()
964 ehci_writel(ehci, temp | PORT_CSC, status_reg); in ehci_hub_control()
967 ehci_writel(ehci, temp | PORT_OCC, status_reg); in ehci_hub_control()
991 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
994 if (temp & PORT_CSC) in ehci_hub_control()
996 if (temp & PORT_PEC) in ehci_hub_control()
999 if ((temp & PORT_OCC) && !ignore_oc){ in ehci_hub_control()
1009 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle)) in ehci_hub_control()
1014 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1022 if (temp & PORT_RESUME) { in ehci_hub_control()
1045 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_hub_control()
1046 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1055 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1063 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET), in ehci_hub_control()
1077 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
1082 if ((temp & PORT_CONNECT) && in ehci_hub_control()
1084 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1085 temp |= PORT_OWNER; in ehci_hub_control()
1086 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1088 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1097 if (temp & PORT_CONNECT) { in ehci_hub_control()
1104 status |= ehci_port_speed(ehci, temp); in ehci_hub_control()
1106 if (temp & PORT_PE) in ehci_hub_control()
1110 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in ehci_hub_control()
1116 if (temp & PORT_PE) in ehci_hub_control()
1121 if (temp & PORT_OC) in ehci_hub_control()
1123 if (temp & PORT_RESET) in ehci_hub_control()
1125 if (temp & PORT_POWER) in ehci_hub_control()
1131 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1159 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1160 if (temp & PORT_OWNER) in ehci_hub_control()
1163 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1168 if ((temp & PORT_PE) == 0 in ehci_hub_control()
1169 || (temp & PORT_RESET) != 0) in ehci_hub_control()
1176 temp &= ~PORT_WKCONN_E; in ehci_hub_control()
1177 temp |= PORT_WKDISC_E | PORT_WKOC_E; in ehci_hub_control()
1178 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in ehci_hub_control()
1201 if (temp & (PORT_SUSPEND|PORT_RESUME)) in ehci_hub_control()
1207 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT in ehci_hub_control()
1209 && PORT_USB11 (temp)) { in ehci_hub_control()
1213 temp |= PORT_OWNER; in ehci_hub_control()
1215 temp |= PORT_RESET; in ehci_hub_control()
1216 temp &= ~PORT_PE; in ehci_hub_control()
1230 temp |= (1 << PORTSC_FSL_PFSC); in ehci_hub_control()
1232 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1262 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS; in ehci_hub_control()
1263 if (temp & PORT_PE) in ehci_hub_control()
1264 ehci_writel(ehci, temp | PORT_SUSPEND, in ehci_hub_control()
1272 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1273 temp |= selector << 16; in ehci_hub_control()
1274 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1318 u32 temp = ehci_readl(ehci, status_reg) & ~PORT_RWC_BITS; in ehci_port_power() local
1321 ehci_writel(ehci, temp | PORT_POWER, status_reg); in ehci_port_power()
1323 ehci_writel(ehci, temp & ~PORT_POWER, status_reg); in ehci_port_power()