Lines Matching full:temp
105 unsigned temp; in ohci_rh_suspend() local
108 temp = ohci_readl(ohci, portstat); in ohci_rh_suspend()
109 if ((temp & (RH_PS_PES | RH_PS_PSS)) == in ohci_rh_suspend()
157 u32 temp, enables; in ohci_rh_resume() local
218 temp = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_resume()
219 temp &= OHCI_CTRL_HCFS; in ohci_rh_resume()
220 if (temp != OHCI_USB_RESUME) { in ohci_rh_resume()
254 temp = ohci->hc_control; in ohci_rh_resume()
255 temp &= OHCI_CTRL_RWC; in ohci_rh_resume()
256 temp |= OHCI_CONTROL_INIT | OHCI_USB_OPER; in ohci_rh_resume()
257 ohci->hc_control = temp; in ohci_rh_resume()
258 ohci_writel (ohci, temp, &ohci->regs->control); in ohci_rh_resume()
273 temp = 0; in ohci_rh_resume()
280 temp |= OHCI_CLF; in ohci_rh_resume()
286 temp |= OHCI_BLF; in ohci_rh_resume()
295 if (temp) in ohci_rh_resume()
296 ohci_writel (ohci, temp, &ohci->regs->cmdstatus); in ohci_rh_resume()
543 u16 temp; in ohci_hub_descriptor() local
550 temp = 1 + (ohci->num_ports / 8); in ohci_hub_descriptor()
551 desc->bDescLength = 7 + 2 * temp; in ohci_hub_descriptor()
553 temp = HUB_CHAR_COMMON_LPSM | HUB_CHAR_COMMON_OCPM; in ohci_hub_descriptor()
555 temp |= HUB_CHAR_NO_LPSM; in ohci_hub_descriptor()
557 temp |= HUB_CHAR_INDV_PORT_LPSM; in ohci_hub_descriptor()
559 temp |= HUB_CHAR_NO_OCPM; in ohci_hub_descriptor()
561 temp |= HUB_CHAR_INDV_PORT_OCPM; in ohci_hub_descriptor()
562 desc->wHubCharacteristics = cpu_to_le16(temp); in ohci_hub_descriptor()
623 u32 temp = 0; in root_port_reset() local
638 temp = ohci_readl (ohci, portstat); in root_port_reset()
640 if (temp == ~(u32)0) in root_port_reset()
642 if (!(temp & RH_PS_PRS)) in root_port_reset()
654 port, temp); in root_port_reset()
658 if (!(temp & RH_PS_CCS)) in root_port_reset()
660 if (temp & RH_PS_PRSC) in root_port_reset()
686 u32 temp; in ohci_hub_control() local
712 temp = RH_PS_CCS; in ohci_hub_control()
715 temp = RH_PS_PESC; in ohci_hub_control()
718 temp = RH_PS_POCI; in ohci_hub_control()
721 temp = RH_PS_PSSC; in ohci_hub_control()
724 temp = RH_PS_LSDA; in ohci_hub_control()
727 temp = RH_PS_CSC; in ohci_hub_control()
730 temp = RH_PS_OCIC; in ohci_hub_control()
733 temp = RH_PS_PRSC; in ohci_hub_control()
738 ohci_writel (ohci, temp, in ohci_hub_control()
746 temp = roothub_status (ohci) & ~(RH_HS_CRWE | RH_HS_DRWE); in ohci_hub_control()
747 put_unaligned_le32(temp, buf); in ohci_hub_control()
753 temp = roothub_portstatus (ohci, wIndex); in ohci_hub_control()
754 put_unaligned_le32(temp, buf); in ohci_hub_control()
757 dbg_port(ohci, "GetStatus", wIndex, temp); in ohci_hub_control()