Lines Matching defs:temp

150 	u32		temp;
168 temp = ehci_readl(ehci, hostpc_reg);
169 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg);
200 temp = ehci_readl(ehci, hostpc_reg);
201 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg);
379 u32 temp;
429 temp = ehci_readl(ehci, &ehci->regs->port_status[i]);
430 if ((temp & PORT_PE) &&
431 !(temp & (PORT_SUSPEND | PORT_RESUME))) {
432 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp);
451 temp = ehci_readl(ehci, hostpc_reg);
452 ehci_writel(ehci, temp & ~HOSTPC_PHCD,
466 temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
467 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS);
469 (temp & PORT_SUSPEND)) {
470 temp |= PORT_RESUME;
473 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);
490 temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
492 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME);
493 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);
621 u32 temp, status;
664 temp = ehci_readl(ehci, &ehci->regs->port_status[i]);
666 temp = 0;
675 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend)
702 u16 temp;
709 temp = 1 + (ports / 8);
710 desc->bDescLength = 7 + 2 * temp;
713 memset(&desc->u.hs.DeviceRemovable[0], 0, temp);
714 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp);
716 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */
718 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */
720 temp |= HUB_CHAR_NO_LPSM; /* no power switching */
724 temp |= HUB_CHAR_PORTIND; /* per-port indicators (LEDs) */
726 desc->wHubCharacteristics = cpu_to_le16(temp);
881 u32 temp, temp1, status;
891 temp = wIndex & 0xff;
892 temp -= (temp > 0);
893 status_reg = &ehci->regs->port_status[temp];
894 hostpc_reg = &ehci->regs->hostpc[temp];
919 temp = ehci_readl(ehci, status_reg);
920 temp &= ~PORT_RWC_BITS;
931 ehci_writel(ehci, temp & ~PORT_PE, status_reg);
934 ehci_writel(ehci, temp | PORT_PEC, status_reg);
937 if (temp & PORT_RESET)
948 if (!(temp & PORT_SUSPEND))
950 if ((temp & PORT_PE) == 0)
963 temp &= ~PORT_WAKE_BITS;
964 ehci_writel(ehci, temp | PORT_RESUME, status_reg);
981 ehci_writel(ehci, temp | PORT_CSC, status_reg);
984 ehci_writel(ehci, temp | PORT_OCC, status_reg);
1008 temp = ehci_readl(ehci, status_reg);
1011 if (temp & PORT_CSC)
1013 if (temp & PORT_PEC)
1016 if ((temp & PORT_OCC) && !ignore_oc){
1026 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle))
1031 temp = ehci_readl(ehci, status_reg);
1039 if (temp & PORT_RESUME) {
1062 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME);
1063 ehci_writel(ehci, temp, status_reg);
1072 temp = ehci_readl(ehci, status_reg);
1080 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET),
1094 temp = check_reset_complete (ehci, wIndex, status_reg,
1099 if ((temp & PORT_CONNECT) &&
1101 temp &= ~PORT_RWC_BITS;
1102 temp |= PORT_OWNER;
1103 ehci_writel(ehci, temp, status_reg);
1105 temp = ehci_readl(ehci, status_reg);
1114 if (temp & PORT_CONNECT) {
1121 status |= ehci_port_speed(ehci, temp);
1123 if (temp & PORT_PE)
1127 if (temp & (PORT_SUSPEND|PORT_RESUME)) {
1133 if (temp & PORT_PE)
1138 if (temp & PORT_OC)
1140 if (temp & PORT_RESET)
1142 if (temp & PORT_POWER)
1148 dbg_port(ehci, "GetStatus", wIndex + 1, temp);
1176 temp = ehci_readl(ehci, status_reg);
1177 if (temp & PORT_OWNER)
1180 temp &= ~PORT_RWC_BITS;
1185 if ((temp & PORT_PE) == 0
1186 || (temp & PORT_RESET) != 0)
1193 temp &= ~PORT_WKCONN_E;
1194 temp |= PORT_WKDISC_E | PORT_WKOC_E;
1195 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg);
1224 if (temp & (PORT_SUSPEND|PORT_RESUME))
1230 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT
1232 && PORT_USB11 (temp)) {
1236 temp |= PORT_OWNER;
1238 temp |= PORT_RESET;
1239 temp &= ~PORT_PE;
1253 temp |= (1 << PORTSC_FSL_PFSC);
1255 ehci_writel(ehci, temp, status_reg);
1285 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS;
1286 if (temp & PORT_PE)
1287 ehci_writel(ehci, temp | PORT_SUSPEND,
1295 temp = ehci_readl(ehci, status_reg);
1296 temp |= selector << 16;
1297 ehci_writel(ehci, temp, status_reg);
1341 u32 temp = ehci_readl(ehci, status_reg) & ~PORT_RWC_BITS;
1344 ehci_writel(ehci, temp | PORT_POWER, status_reg);
1346 ehci_writel(ehci, temp & ~PORT_POWER, status_reg);