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()
377 u32 temp; in ehci_bus_resume() local
427 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume()
428 if ((temp & PORT_PE) && in ehci_bus_resume()
429 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume()
430 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume()
449 temp = ehci_readl(ehci, hostpc_reg); in ehci_bus_resume()
450 ehci_writel(ehci, temp & ~HOSTPC_PHCD, in ehci_bus_resume()
464 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
465 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in ehci_bus_resume()
467 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
468 temp |= PORT_RESUME; in ehci_bus_resume()
471 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
488 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
490 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_bus_resume()
491 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
611 u32 temp, status; in ehci_hub_status_data() local
654 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_hub_status_data()
656 temp = 0; in ehci_hub_status_data()
665 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend) in ehci_hub_status_data()
692 u16 temp; in ehci_hub_descriptor() local
699 temp = 1 + (ports / 8); in ehci_hub_descriptor()
700 desc->bDescLength = 7 + 2 * temp; in ehci_hub_descriptor()
703 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in ehci_hub_descriptor()
704 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in ehci_hub_descriptor()
706 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in ehci_hub_descriptor()
708 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */ in ehci_hub_descriptor()
710 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in ehci_hub_descriptor()
714 temp |= HUB_CHAR_PORTIND; /* per-port indicators (LEDs) */ in ehci_hub_descriptor()
716 desc->wHubCharacteristics = cpu_to_le16(temp); in ehci_hub_descriptor()
873 u32 temp, temp1, status; in ehci_hub_control() local
901 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
902 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
913 ehci_writel(ehci, temp & ~PORT_PE, status_reg); in ehci_hub_control()
916 ehci_writel(ehci, temp | PORT_PEC, status_reg); in ehci_hub_control()
919 if (temp & PORT_RESET) in ehci_hub_control()
930 if (!(temp & PORT_SUSPEND)) in ehci_hub_control()
932 if ((temp & PORT_PE) == 0) in ehci_hub_control()
945 temp &= ~PORT_WAKE_BITS; in ehci_hub_control()
946 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in ehci_hub_control()
963 ehci_writel(ehci, temp | PORT_CSC, status_reg); in ehci_hub_control()
966 ehci_writel(ehci, temp | PORT_OCC, status_reg); in ehci_hub_control()
990 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
993 if (temp & PORT_CSC) in ehci_hub_control()
995 if (temp & PORT_PEC) in ehci_hub_control()
998 if ((temp & PORT_OCC) && !ignore_oc){ in ehci_hub_control()
1008 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle)) in ehci_hub_control()
1013 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1021 if (temp & PORT_RESUME) { in ehci_hub_control()
1044 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_hub_control()
1045 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1054 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1062 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET), in ehci_hub_control()
1076 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
1081 if ((temp & PORT_CONNECT) && in ehci_hub_control()
1083 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1084 temp |= PORT_OWNER; in ehci_hub_control()
1085 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1087 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1096 if (temp & PORT_CONNECT) { in ehci_hub_control()
1103 status |= ehci_port_speed(ehci, temp); in ehci_hub_control()
1105 if (temp & PORT_PE) in ehci_hub_control()
1109 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in ehci_hub_control()
1115 if (temp & PORT_PE) in ehci_hub_control()
1120 if (temp & PORT_OC) in ehci_hub_control()
1122 if (temp & PORT_RESET) in ehci_hub_control()
1124 if (temp & PORT_POWER) in ehci_hub_control()
1130 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1158 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1159 if (temp & PORT_OWNER) in ehci_hub_control()
1162 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1167 if ((temp & PORT_PE) == 0 in ehci_hub_control()
1168 || (temp & PORT_RESET) != 0) in ehci_hub_control()
1175 temp &= ~PORT_WKCONN_E; in ehci_hub_control()
1176 temp |= PORT_WKDISC_E | PORT_WKOC_E; in ehci_hub_control()
1177 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in ehci_hub_control()
1200 if (temp & (PORT_SUSPEND|PORT_RESUME)) in ehci_hub_control()
1206 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT in ehci_hub_control()
1208 && PORT_USB11 (temp)) { in ehci_hub_control()
1212 temp |= PORT_OWNER; in ehci_hub_control()
1214 temp |= PORT_RESET; in ehci_hub_control()
1215 temp &= ~PORT_PE; in ehci_hub_control()
1224 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1254 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS; in ehci_hub_control()
1255 if (temp & PORT_PE) in ehci_hub_control()
1256 ehci_writel(ehci, temp | PORT_SUSPEND, in ehci_hub_control()
1264 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1265 temp |= selector << 16; in ehci_hub_control()
1266 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1310 u32 temp = ehci_readl(ehci, status_reg) & ~PORT_RWC_BITS; in ehci_port_power() local
1313 ehci_writel(ehci, temp | PORT_POWER, status_reg); in ehci_port_power()
1315 ehci_writel(ehci, temp & ~PORT_POWER, status_reg); in ehci_port_power()