Lines Matching refs:temp

20 		label, num, temp, \
21 (temp & RH_PS_PRSC) ? " PRSC" : "", \
22 (temp & RH_PS_OCIC) ? " OCIC" : "", \
23 (temp & RH_PS_PSSC) ? " PSSC" : "", \
24 (temp & RH_PS_PESC) ? " PESC" : "", \
25 (temp & RH_PS_CSC) ? " CSC" : "", \
27 (temp & RH_PS_LSDA) ? " LSDA" : "", \
28 (temp & RH_PS_PPS) ? " PPS" : "", \
29 (temp & RH_PS_PRS) ? " PRS" : "", \
30 (temp & RH_PS_POCI) ? " POCI" : "", \
31 (temp & RH_PS_PSS) ? " PSS" : "", \
33 (temp & RH_PS_PES) ? " PES" : "", \
34 (temp & RH_PS_CCS) ? " CCS" : "" \
101 unsigned temp; in ohci_rh_suspend() local
104 temp = ohci_readl(ohci, portstat); in ohci_rh_suspend()
105 if ((temp & (RH_PS_PES | RH_PS_PSS)) == in ohci_rh_suspend()
153 u32 temp, enables; in ohci_rh_resume() local
214 temp = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_resume()
215 temp &= OHCI_CTRL_HCFS; in ohci_rh_resume()
216 if (temp != OHCI_USB_RESUME) { in ohci_rh_resume()
250 temp = ohci->hc_control; in ohci_rh_resume()
251 temp &= OHCI_CTRL_RWC; in ohci_rh_resume()
252 temp |= OHCI_CONTROL_INIT | OHCI_USB_OPER; in ohci_rh_resume()
253 ohci->hc_control = temp; in ohci_rh_resume()
254 ohci_writel (ohci, temp, &ohci->regs->control); in ohci_rh_resume()
269 temp = 0; in ohci_rh_resume()
276 temp |= OHCI_CLF; in ohci_rh_resume()
282 temp |= OHCI_BLF; in ohci_rh_resume()
291 if (temp) in ohci_rh_resume()
292 ohci_writel (ohci, temp, &ohci->regs->cmdstatus); in ohci_rh_resume()
537 u16 temp; in ohci_hub_descriptor() local
544 temp = 1 + (ohci->num_ports / 8); in ohci_hub_descriptor()
545 desc->bDescLength = 7 + 2 * temp; in ohci_hub_descriptor()
547 temp = HUB_CHAR_COMMON_LPSM | HUB_CHAR_COMMON_OCPM; in ohci_hub_descriptor()
549 temp |= HUB_CHAR_NO_LPSM; in ohci_hub_descriptor()
551 temp |= HUB_CHAR_INDV_PORT_LPSM; in ohci_hub_descriptor()
553 temp |= HUB_CHAR_NO_OCPM; in ohci_hub_descriptor()
555 temp |= HUB_CHAR_INDV_PORT_OCPM; in ohci_hub_descriptor()
556 desc->wHubCharacteristics = cpu_to_le16(temp); in ohci_hub_descriptor()
617 u32 temp = 0; in root_port_reset() local
632 temp = ohci_readl (ohci, portstat); in root_port_reset()
634 if (temp == ~(u32)0) in root_port_reset()
636 if (!(temp & RH_PS_PRS)) in root_port_reset()
648 port, temp); in root_port_reset()
652 if (!(temp & RH_PS_CCS)) in root_port_reset()
654 if (temp & RH_PS_PRSC) in root_port_reset()
680 u32 temp; in ohci_hub_control() local
705 temp = RH_PS_CCS; in ohci_hub_control()
708 temp = RH_PS_PESC; in ohci_hub_control()
711 temp = RH_PS_POCI; in ohci_hub_control()
714 temp = RH_PS_PSSC; in ohci_hub_control()
717 temp = RH_PS_LSDA; in ohci_hub_control()
720 temp = RH_PS_CSC; in ohci_hub_control()
723 temp = RH_PS_OCIC; in ohci_hub_control()
726 temp = RH_PS_PRSC; in ohci_hub_control()
731 ohci_writel (ohci, temp, in ohci_hub_control()
739 temp = roothub_status (ohci) & ~(RH_HS_CRWE | RH_HS_DRWE); in ohci_hub_control()
740 put_unaligned_le32(temp, buf); in ohci_hub_control()
746 temp = roothub_portstatus (ohci, wIndex); in ohci_hub_control()
747 put_unaligned_le32(temp, buf); in ohci_hub_control()
750 dbg_port(ohci, "GetStatus", wIndex, temp); in ohci_hub_control()