Lines Matching full:temp
150 u32 temp; in ehci_adjust_port_wakeup_flags() local
168 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
169 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
200 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags()
201 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags()
376 u32 temp; in ehci_bus_resume() local
426 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume()
427 if ((temp & PORT_PE) && in ehci_bus_resume()
428 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume()
429 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume()
448 temp = ehci_readl(ehci, hostpc_reg); in ehci_bus_resume()
449 ehci_writel(ehci, temp & ~HOSTPC_PHCD, in ehci_bus_resume()
463 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
464 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in ehci_bus_resume()
466 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
467 temp |= PORT_RESUME; in ehci_bus_resume()
470 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
487 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
489 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_bus_resume()
490 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
618 u32 temp, status; in ehci_hub_status_data() local
661 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_hub_status_data()
663 temp = 0; in ehci_hub_status_data()
672 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend) in ehci_hub_status_data()
699 u16 temp; in ehci_hub_descriptor() local
706 temp = 1 + (ports / 8); in ehci_hub_descriptor()
707 desc->bDescLength = 7 + 2 * temp; in ehci_hub_descriptor()
710 memset(&desc->u.hs.DeviceRemovable[0], 0, temp); in ehci_hub_descriptor()
711 memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); in ehci_hub_descriptor()
713 temp = HUB_CHAR_INDV_PORT_OCPM; /* per-port overcurrent reporting */ in ehci_hub_descriptor()
715 temp |= HUB_CHAR_INDV_PORT_LPSM; /* per-port power control */ in ehci_hub_descriptor()
717 temp |= HUB_CHAR_NO_LPSM; /* no power switching */ in ehci_hub_descriptor()
721 temp |= HUB_CHAR_PORTIND; /* per-port indicators (LEDs) */ in ehci_hub_descriptor()
723 desc->wHubCharacteristics = cpu_to_le16(temp); in ehci_hub_descriptor()
878 u32 temp, temp1, status; in ehci_hub_control() local
888 temp = wIndex & 0xff; in ehci_hub_control()
889 temp -= (temp > 0); in ehci_hub_control()
890 status_reg = &ehci->regs->port_status[temp]; in ehci_hub_control()
891 hostpc_reg = &ehci->regs->hostpc[temp]; in ehci_hub_control()
916 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
917 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
928 ehci_writel(ehci, temp & ~PORT_PE, status_reg); in ehci_hub_control()
931 ehci_writel(ehci, temp | PORT_PEC, status_reg); in ehci_hub_control()
934 if (temp & PORT_RESET) in ehci_hub_control()
945 if (!(temp & PORT_SUSPEND)) in ehci_hub_control()
947 if ((temp & PORT_PE) == 0) in ehci_hub_control()
960 temp &= ~PORT_WAKE_BITS; in ehci_hub_control()
961 ehci_writel(ehci, temp | PORT_RESUME, status_reg); in ehci_hub_control()
978 ehci_writel(ehci, temp | PORT_CSC, status_reg); in ehci_hub_control()
981 ehci_writel(ehci, temp | PORT_OCC, status_reg); in ehci_hub_control()
1005 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1008 if (temp & PORT_CSC) in ehci_hub_control()
1010 if (temp & PORT_PEC) in ehci_hub_control()
1013 if ((temp & PORT_OCC) && !ignore_oc){ in ehci_hub_control()
1023 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle)) in ehci_hub_control()
1028 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1036 if (temp & PORT_RESUME) { in ehci_hub_control()
1059 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); in ehci_hub_control()
1060 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1069 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1077 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET), in ehci_hub_control()
1091 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
1096 if ((temp & PORT_CONNECT) && in ehci_hub_control()
1098 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1099 temp |= PORT_OWNER; in ehci_hub_control()
1100 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1102 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1111 if (temp & PORT_CONNECT) { in ehci_hub_control()
1118 status |= ehci_port_speed(ehci, temp); in ehci_hub_control()
1120 if (temp & PORT_PE) in ehci_hub_control()
1124 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in ehci_hub_control()
1130 if (temp & PORT_PE) in ehci_hub_control()
1135 if (temp & PORT_OC) in ehci_hub_control()
1137 if (temp & PORT_RESET) in ehci_hub_control()
1139 if (temp & PORT_POWER) in ehci_hub_control()
1145 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1173 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1174 if (temp & PORT_OWNER) in ehci_hub_control()
1177 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
1182 if ((temp & PORT_PE) == 0 in ehci_hub_control()
1183 || (temp & PORT_RESET) != 0) in ehci_hub_control()
1190 temp &= ~PORT_WKCONN_E; in ehci_hub_control()
1191 temp |= PORT_WKDISC_E | PORT_WKOC_E; in ehci_hub_control()
1192 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in ehci_hub_control()
1221 if (temp & (PORT_SUSPEND|PORT_RESUME)) in ehci_hub_control()
1227 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT in ehci_hub_control()
1229 && PORT_USB11 (temp)) { in ehci_hub_control()
1233 temp |= PORT_OWNER; in ehci_hub_control()
1235 temp |= PORT_RESET; in ehci_hub_control()
1236 temp &= ~PORT_PE; in ehci_hub_control()
1250 temp |= (1 << PORTSC_FSL_PFSC); in ehci_hub_control()
1252 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1282 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS; in ehci_hub_control()
1283 if (temp & PORT_PE) in ehci_hub_control()
1284 ehci_writel(ehci, temp | PORT_SUSPEND, in ehci_hub_control()
1292 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
1293 temp |= selector << 16; in ehci_hub_control()
1294 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
1338 u32 temp = ehci_readl(ehci, status_reg) & ~PORT_RWC_BITS; in ehci_port_power() local
1341 ehci_writel(ehci, temp | PORT_POWER, status_reg); in ehci_port_power()
1343 ehci_writel(ehci, temp & ~PORT_POWER, status_reg); in ehci_port_power()