Lines Matching defs:temp
113 u32 temp;
134 temp = ehci_readl(ehci, hostpc_reg);
135 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg);
170 temp = ehci_readl(ehci, hostpc_reg);
171 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg);
321 u32 temp;
379 temp = ehci_readl(ehci, hostpc_reg);
380 ehci_writel(ehci, temp & ~HOSTPC_PHCD,
392 temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
393 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS);
395 (temp & PORT_SUSPEND)) {
396 temp |= PORT_RESUME;
399 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);
411 temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
413 (temp & PORT_SUSPEND)) {
414 temp &= ~(PORT_RWC_BITS | PORT_RESUME);
415 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);
422 temp = 0;
424 temp |= CMD_ASE;
426 temp |= CMD_PSE;
427 if (temp) {
428 ehci->command |= temp;
612 u32 temp, status = 0;
655 temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
664 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend)
686 u16 temp;
693 temp = 1 + (ports / 8);
694 desc->bDescLength = 7 + 2 * temp;
697 memset (&desc->bitmap [0], 0, temp);
698 memset (&desc->bitmap [temp], 0xff, temp);
700 temp = 0x0008; /* per-port overcurrent reporting */
702 temp |= 0x0001; /* per-port power control */
704 temp |= 0x0002; /* no power switching */
705 desc->wHubCharacteristics = cpu_to_le16(temp);
723 u32 temp, temp1, status;
748 temp = ehci_readl(ehci, status_reg);
759 ehci_writel(ehci, temp & ~PORT_PE, status_reg);
762 ehci_writel(ehci, (temp & ~PORT_RWC_BITS) | PORT_PEC,
766 if (temp & PORT_RESET)
770 if (!(temp & PORT_SUSPEND))
772 if ((temp & PORT_PE) == 0)
785 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS);
786 ehci_writel(ehci, temp | PORT_RESUME, status_reg);
796 temp & ~(PORT_RWC_BITS | PORT_POWER),
802 temp &= ~PORT_LPM;
803 temp &= ~PORT_DEV_ADDR;
805 ehci_writel(ehci, (temp & ~PORT_RWC_BITS) | PORT_CSC,
809 ehci_writel(ehci, (temp & ~PORT_RWC_BITS) | PORT_OCC,
834 temp = ehci_readl(ehci, status_reg);
837 if (temp & PORT_CSC)
839 if (temp & PORT_PEC)
842 if ((temp & PORT_OCC) && !ignore_oc){
854 temp & ~(PORT_RWC_BITS | PORT_POWER),
860 if (temp & PORT_RESUME) {
880 temp = ehci_readl(ehci, status_reg);
882 temp & ~(PORT_RWC_BITS | PORT_RESUME),
892 temp &= ~(PORT_SUSPEND|PORT_RESUME|(3<<10));
897 if ((temp & PORT_RESET)
904 ehci_writel(ehci, temp & ~(PORT_RWC_BITS | PORT_RESET),
918 temp = check_reset_complete (ehci, wIndex, status_reg,
922 if (!(temp & (PORT_RESUME|PORT_RESET)))
926 if ((temp & PORT_CONNECT) &&
928 temp &= ~PORT_RWC_BITS;
929 temp |= PORT_OWNER;
930 ehci_writel(ehci, temp, status_reg);
932 temp = ehci_readl(ehci, status_reg);
941 if (temp & PORT_CONNECT) {
948 status |= ehci_port_speed(ehci, temp);
950 if (temp & PORT_PE)
954 if (temp & (PORT_SUSPEND|PORT_RESUME)) {
959 if (temp & PORT_PE)
963 if (temp & PORT_OC)
965 if (temp & PORT_RESET)
967 if (temp & PORT_POWER)
975 dbg_port (ehci, "GetStatus", wIndex + 1, temp);
1003 temp = ehci_readl(ehci, status_reg);
1004 if (temp & PORT_OWNER)
1007 temp &= ~PORT_RWC_BITS;
1012 if ((temp & PORT_PE) == 0
1013 || (temp & PORT_RESET) != 0)
1020 temp &= ~PORT_WKCONN_E;
1021 temp |= PORT_WKDISC_E | PORT_WKOC_E;
1022 ehci_writel(ehci, temp | PORT_SUSPEND, status_reg);
1039 ehci_writel(ehci, temp | PORT_POWER,
1043 if (temp & PORT_RESUME)
1049 if ((temp & (PORT_PE|PORT_CONNECT)) == PORT_CONNECT
1051 && PORT_USB11 (temp)) {
1055 temp |= PORT_OWNER;
1058 temp |= PORT_RESET;
1059 temp &= ~PORT_PE;
1068 ehci_writel(ehci, temp, status_reg);
1082 temp |= selector << 16;
1083 ehci_writel(ehci, temp, status_reg);