Lines Matching refs:temp
194 u32 temp; in ehci_bus_resume() local
239 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
240 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in ehci_bus_resume()
242 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
243 temp |= PORT_RESUME; in ehci_bus_resume()
246 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
258 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
260 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
261 temp &= ~(PORT_RWC_BITS | PORT_RESUME); in ehci_bus_resume()
262 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
269 temp = 0; in ehci_bus_resume()
271 temp |= CMD_ASE; in ehci_bus_resume()
273 temp |= CMD_PSE; in ehci_bus_resume()
274 if (temp) { in ehci_bus_resume()
275 ehci->command |= temp; in ehci_bus_resume()
459 u32 temp, status = 0; in ehci_hub_status_data() local
493 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_hub_status_data()
502 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend) in ehci_hub_status_data()
525 u16 temp; in ehci_hub_descriptor() local
532 temp = 1 + (ports / 8); in ehci_hub_descriptor()
533 desc->bDescLength = 7 + 2 * temp; in ehci_hub_descriptor()
536 memset (&desc->bitmap [0], 0, temp); in ehci_hub_descriptor()
537 memset (&desc->bitmap [temp], 0xff, temp); in ehci_hub_descriptor()
539 temp = 0x0008; /* per-port overcurrent reporting */ in ehci_hub_descriptor()
541 temp |= 0x0001; /* per-port power control */ in ehci_hub_descriptor()
543 temp |= 0x0002; /* no power switching */ in ehci_hub_descriptor()
547 temp |= 0x0080; /* per-port indicators (LEDs) */ in ehci_hub_descriptor()
549 desc->wHubCharacteristics = cpu_to_le16(temp); in ehci_hub_descriptor()
566 u32 temp, status; in ehci_hub_control() local
594 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
605 ehci_writel(ehci, temp & ~PORT_PE, status_reg); in ehci_hub_control()
608 ehci_writel(ehci, (temp & ~PORT_RWC_BITS) | PORT_PEC, in ehci_hub_control()
612 if (temp & PORT_RESET) in ehci_hub_control()
616 if (temp & PORT_SUSPEND) { in ehci_hub_control()
617 if ((temp & PORT_PE) == 0) in ehci_hub_control()
620 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in ehci_hub_control()
621 ehci_writel(ehci, temp | PORT_RESUME, in ehci_hub_control()
633 temp & ~(PORT_RWC_BITS | PORT_POWER), in ehci_hub_control()
637 ehci_writel(ehci, (temp & ~PORT_RWC_BITS) | PORT_CSC, in ehci_hub_control()
641 ehci_writel(ehci, (temp & ~PORT_RWC_BITS) | PORT_OCC, in ehci_hub_control()
666 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
669 if (temp & PORT_CSC) in ehci_hub_control()
671 if (temp & PORT_PEC) in ehci_hub_control()
674 if ((temp & PORT_OCC) && !ignore_oc){ in ehci_hub_control()
686 temp & ~(PORT_RWC_BITS | PORT_POWER), in ehci_hub_control()
692 if (temp & PORT_RESUME) { in ehci_hub_control()
712 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
714 temp & ~(PORT_RWC_BITS | PORT_RESUME), in ehci_hub_control()
724 temp &= ~(PORT_SUSPEND|PORT_RESUME|(3<<10)); in ehci_hub_control()
729 if ((temp & PORT_RESET) in ehci_hub_control()
736 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET), in ehci_hub_control()
750 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
754 if (!(temp & (PORT_RESUME|PORT_RESET))) in ehci_hub_control()
758 if ((temp & PORT_CONNECT) && in ehci_hub_control()
760 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
761 temp |= PORT_OWNER; in ehci_hub_control()
762 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
764 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
773 if (temp & PORT_CONNECT) { in ehci_hub_control()
776 status |= ehci_port_speed(ehci, temp); in ehci_hub_control()
778 if (temp & PORT_PE) in ehci_hub_control()
782 if (temp & (PORT_SUSPEND|PORT_RESUME)) { in ehci_hub_control()
787 if (temp & PORT_PE) in ehci_hub_control()
791 if (temp & PORT_OC) in ehci_hub_control()
793 if (temp & PORT_RESET) in ehci_hub_control()
795 if (temp & PORT_POWER) in ehci_hub_control()
803 dbg_port (ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
822 temp = ehci_readl(ehci, status_reg); in ehci_hub_control()
823 if (temp & PORT_OWNER) in ehci_hub_control()
826 temp &= ~PORT_RWC_BITS; in ehci_hub_control()
831 if ((temp & PORT_PE) == 0 in ehci_hub_control()
832 || (temp & PORT_RESET) != 0) in ehci_hub_control()
834 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg); in ehci_hub_control()
839 ehci_writel(ehci, temp | PORT_POWER, in ehci_hub_control()
843 if (temp & PORT_RESUME) in ehci_hub_control()
849 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT in ehci_hub_control()
851 && PORT_USB11 (temp)) { in ehci_hub_control()
855 temp |= PORT_OWNER; in ehci_hub_control()
858 temp |= PORT_RESET; in ehci_hub_control()
859 temp &= ~PORT_PE; in ehci_hub_control()
868 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()
882 temp |= selector << 16; in ehci_hub_control()
883 ehci_writel(ehci, temp, status_reg); in ehci_hub_control()