Lines Matching refs:temp
102 unsigned temp; in ohci_rh_suspend() local
105 temp = ohci_readl(ohci, portstat); in ohci_rh_suspend()
106 if ((temp & (RH_PS_PES | RH_PS_PSS)) == in ohci_rh_suspend()
154 u32 temp, enables; in ohci_rh_resume() local
215 temp = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_resume()
216 temp &= OHCI_CTRL_HCFS; in ohci_rh_resume()
217 if (temp != OHCI_USB_RESUME) { in ohci_rh_resume()
251 temp = ohci->hc_control; in ohci_rh_resume()
252 temp &= OHCI_CTRL_RWC; in ohci_rh_resume()
253 temp |= OHCI_CONTROL_INIT | OHCI_USB_OPER; in ohci_rh_resume()
254 ohci->hc_control = temp; in ohci_rh_resume()
255 ohci_writel (ohci, temp, &ohci->regs->control); in ohci_rh_resume()
270 temp = 0; in ohci_rh_resume()
277 temp |= OHCI_CLF; in ohci_rh_resume()
283 temp |= OHCI_BLF; in ohci_rh_resume()
292 if (temp) in ohci_rh_resume()
293 ohci_writel (ohci, temp, &ohci->regs->cmdstatus); in ohci_rh_resume()
540 u16 temp; in ohci_hub_descriptor() local
547 temp = 1 + (ohci->num_ports / 8); in ohci_hub_descriptor()
548 desc->bDescLength = 7 + 2 * temp; in ohci_hub_descriptor()
550 temp = HUB_CHAR_COMMON_LPSM | HUB_CHAR_COMMON_OCPM; in ohci_hub_descriptor()
552 temp |= HUB_CHAR_NO_LPSM; in ohci_hub_descriptor()
554 temp |= HUB_CHAR_INDV_PORT_LPSM; in ohci_hub_descriptor()
556 temp |= HUB_CHAR_NO_OCPM; in ohci_hub_descriptor()
558 temp |= HUB_CHAR_INDV_PORT_OCPM; in ohci_hub_descriptor()
559 desc->wHubCharacteristics = cpu_to_le16(temp); in ohci_hub_descriptor()
620 u32 temp = 0; in root_port_reset() local
635 temp = ohci_readl (ohci, portstat); in root_port_reset()
637 if (temp == ~(u32)0) in root_port_reset()
639 if (!(temp & RH_PS_PRS)) in root_port_reset()
651 port, temp); in root_port_reset()
655 if (!(temp & RH_PS_CCS)) in root_port_reset()
657 if (temp & RH_PS_PRSC) in root_port_reset()
683 u32 temp; in ohci_hub_control() local
708 temp = RH_PS_CCS; in ohci_hub_control()
711 temp = RH_PS_PESC; in ohci_hub_control()
714 temp = RH_PS_POCI; in ohci_hub_control()
717 temp = RH_PS_PSSC; in ohci_hub_control()
720 temp = RH_PS_LSDA; in ohci_hub_control()
723 temp = RH_PS_CSC; in ohci_hub_control()
726 temp = RH_PS_OCIC; in ohci_hub_control()
729 temp = RH_PS_PRSC; in ohci_hub_control()
734 ohci_writel (ohci, temp, in ohci_hub_control()
742 temp = roothub_status (ohci) & ~(RH_HS_CRWE | RH_HS_DRWE); in ohci_hub_control()
743 put_unaligned_le32(temp, buf); in ohci_hub_control()
749 temp = roothub_portstatus (ohci, wIndex); in ohci_hub_control()
750 put_unaligned_le32(temp, buf); in ohci_hub_control()
753 dbg_port(ohci, "GetStatus", wIndex, temp); in ohci_hub_control()