Lines Matching refs:temp

151 	u32		temp;  in ehci_adjust_port_wakeup_flags()  local
169 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
170 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
201 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
202 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()
619 u32 temp, status; in ehci_hub_status_data() local
662 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_hub_status_data()
664 temp = 0; in ehci_hub_status_data()
673 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend) in ehci_hub_status_data()
700 u16 temp; in ehci_hub_descriptor() local
707 temp = 1 + (ports / 8); in ehci_hub_descriptor()
708 desc->bDescLength = 7 + 2 * temp; in ehci_hub_descriptor()
711 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in ehci_hub_descriptor()
712 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in ehci_hub_descriptor()
714 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in ehci_hub_descriptor()
716 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */ in ehci_hub_descriptor()
718 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in ehci_hub_descriptor()
722 temp |= HUB_CHAR_PORTIND; /* per-port indicators (LEDs) */ in ehci_hub_descriptor()
724 desc->wHubCharacteristics = cpu_to_le16(temp); in ehci_hub_descriptor()
879 u32 temp, temp1, status; in ehci_hub_control() local
889 temp = wIndex & 0xff; in ehci_hub_control()
890 temp -= (temp > 0); in ehci_hub_control()
891 status_reg = &ehci->regs->port_status[temp]; in ehci_hub_control()
892 hostpc_reg = &ehci->regs->hostpc[temp]; in ehci_hub_control()
917 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
918 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
929 ehci_writel(ehci, temp & ~PORT_PE, status_reg); in ehci_hub_control()
932 ehci_writel(ehci, temp | PORT_PEC, status_reg); in ehci_hub_control()
935 if (temp & PORT_RESET) in ehci_hub_control()
946 if (!(temp & PORT_SUSPEND)) in ehci_hub_control()
948 if ((temp & PORT_PE) == 0) in ehci_hub_control()
961 temp &= ~PORT_WAKE_BITS; in ehci_hub_control()
962 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in ehci_hub_control()
979 ehci_writel(ehci, temp | PORT_CSC, status_reg); in ehci_hub_control()
982 ehci_writel(ehci, temp | PORT_OCC, status_reg); in ehci_hub_control()
1006 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1009 if (temp & PORT_CSC) in ehci_hub_control()
1011 if (temp & PORT_PEC) in ehci_hub_control()
1014 if ((temp & PORT_OCC) && !ignore_oc){ in ehci_hub_control()
1024 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle)) in ehci_hub_control()
1029 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1037 if (temp & PORT_RESUME) { in ehci_hub_control()
1060 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_hub_control()
1061 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1070 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1078 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET), in ehci_hub_control()
1092 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
1097 if ((temp & PORT_CONNECT) && in ehci_hub_control()
1099 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1100 temp |= PORT_OWNER; in ehci_hub_control()
1101 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1103 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1112 if (temp & PORT_CONNECT) { in ehci_hub_control()
1119 status |= ehci_port_speed(ehci, temp); in ehci_hub_control()
1121 if (temp & PORT_PE) in ehci_hub_control()
1125 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in ehci_hub_control()
1131 if (temp & PORT_PE) in ehci_hub_control()
1136 if (temp & PORT_OC) in ehci_hub_control()
1138 if (temp & PORT_RESET) in ehci_hub_control()
1140 if (temp & PORT_POWER) in ehci_hub_control()
1146 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1174 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1175 if (temp & PORT_OWNER) in ehci_hub_control()
1178 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1183 if ((temp & PORT_PE) == 0 in ehci_hub_control()
1184 || (temp & PORT_RESET) != 0) in ehci_hub_control()
1191 temp &= ~PORT_WKCONN_E; in ehci_hub_control()
1192 temp |= PORT_WKDISC_E | PORT_WKOC_E; in ehci_hub_control()
1193 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in ehci_hub_control()
1222 if (temp & (PORT_SUSPEND|PORT_RESUME)) in ehci_hub_control()
1228 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT in ehci_hub_control()
1230 && PORT_USB11 (temp)) { in ehci_hub_control()
1234 temp |= PORT_OWNER; in ehci_hub_control()
1236 temp |= PORT_RESET; in ehci_hub_control()
1237 temp &= ~PORT_PE; in ehci_hub_control()
1251 temp |= (1 << PORTSC_FSL_PFSC); in ehci_hub_control()
1253 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1283 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS; in ehci_hub_control()
1284 if (temp & PORT_PE) in ehci_hub_control()
1285 ehci_writel(ehci, temp | PORT_SUSPEND, in ehci_hub_control()
1293 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1294 temp |= selector << 16; in ehci_hub_control()
1295 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1339 u32 temp = ehci_readl(ehci, status_reg) & ~PORT_RWC_BITS; in ehci_port_power() local
1342 ehci_writel(ehci, temp | PORT_POWER, status_reg); in ehci_port_power()
1344 ehci_writel(ehci, temp & ~PORT_POWER, status_reg); in ehci_port_power()