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)
678 || ehci_has_ci_pec_bug(ehci, temp)) {
703 u16 temp;
710 temp = 1 + (ports / 8);
711 desc->bDescLength = 7 + 2 * temp;
714 memset(&desc->u.hs.DeviceRemovable[0], 0, temp);
715 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp);
717 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */
719 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */
721 temp |= HUB_CHAR_NO_LPSM; /* no power switching */
725 temp |= HUB_CHAR_PORTIND; /* per-port indicators (LEDs) */
727 desc->wHubCharacteristics = cpu_to_le16(temp);
743 u32 temp, temp1, status;
753 temp = (wIndex - 1) & 0xff;
754 if (temp >= HCS_N_PORTS_MAX)
755 temp = 0;
756 status_reg = &ehci->regs->port_status[temp];
757 hostpc_reg = &ehci->regs->hostpc[temp];
782 temp = ehci_readl(ehci, status_reg);
783 temp &= ~PORT_RWC_BITS;
794 ehci_writel(ehci, temp & ~PORT_PE, status_reg);
797 ehci_writel(ehci, temp | PORT_PEC, status_reg);
800 if (temp & PORT_RESET)
811 if (!(temp & PORT_SUSPEND))
813 if ((temp & PORT_PE) == 0)
826 temp &= ~PORT_WAKE_BITS;
827 ehci_writel(ehci, temp | PORT_RESUME, status_reg);
844 ehci_writel(ehci, temp | PORT_CSC, status_reg);
847 ehci_writel(ehci, temp | PORT_OCC, status_reg);
871 temp = ehci_readl(ehci, status_reg);
874 if (temp & PORT_CSC)
876 if (temp & PORT_PEC)
879 if (ehci_has_ci_pec_bug(ehci, temp)) {
883 wIndex + 1, temp);
886 if ((temp & PORT_OCC) && (!ignore_oc && !ehci->spurious_oc)){
896 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle))
901 temp = ehci_readl(ehci, status_reg);
909 if (temp & PORT_RESUME) {
932 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME);
933 ehci_writel(ehci, temp, status_reg);
942 temp = ehci_readl(ehci, status_reg);
950 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET),
964 temp = check_reset_complete (ehci, wIndex, status_reg,
969 if ((temp & PORT_CONNECT) &&
971 temp &= ~PORT_RWC_BITS;
972 temp |= PORT_OWNER;
973 ehci_writel(ehci, temp, status_reg);
975 temp = ehci_readl(ehci, status_reg);
984 if (temp & PORT_CONNECT) {
991 status |= ehci_port_speed(ehci, temp);
993 if (temp & PORT_PE)
997 if (temp & (PORT_SUSPEND|PORT_RESUME)) {
1003 if (temp & PORT_PE)
1008 if (temp & PORT_OC)
1010 if (temp & PORT_RESET)
1012 if (temp & PORT_POWER)
1018 dbg_port(ehci, "GetStatus", wIndex + 1, temp);
1046 temp = ehci_readl(ehci, status_reg);
1047 if (temp & PORT_OWNER)
1050 temp &= ~PORT_RWC_BITS;
1055 if ((temp & PORT_PE) == 0
1056 || (temp & PORT_RESET) != 0)
1063 temp &= ~PORT_WKCONN_E;
1064 temp |= PORT_WKDISC_E | PORT_WKOC_E;
1065 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg);
1094 if (temp & (PORT_SUSPEND|PORT_RESUME))
1100 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT
1102 && PORT_USB11 (temp)) {
1106 temp |= PORT_OWNER;
1108 temp |= PORT_RESET;
1109 temp &= ~PORT_PE;
1123 temp |= (1 << PORTSC_FSL_PFSC);
1125 ehci_writel(ehci, temp, status_reg);
1155 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS;
1156 if (temp & PORT_PE)
1157 ehci_writel(ehci, temp | PORT_SUSPEND,
1165 temp = ehci_readl(ehci, status_reg);
1166 temp |= selector << 16;
1167 ehci_writel(ehci, temp, status_reg);
1211 u32 temp = ehci_readl(ehci, status_reg) & ~PORT_RWC_BITS;
1214 ehci_writel(ehci, temp | PORT_POWER, status_reg);
1216 ehci_writel(ehci, temp & ~PORT_POWER, status_reg);