• Home
  • Raw
  • Download

Lines Matching refs:sc_st

76 	struct uhub_current_state sc_st;	/* current state */  member
562 sc->sc_st.port_status = 0; in uhub_read_port_status()
563 sc->sc_st.port_change = 0; in uhub_read_port_status()
571 sc->sc_st.port_status = UGETW(ps.wPortStatus); in uhub_read_port_status()
572 sc->sc_st.port_change = UGETW(ps.wPortChange); in uhub_read_port_status()
575 sc->sc_st.port_status = 0; in uhub_read_port_status()
576 sc->sc_st.port_change = 0; in uhub_read_port_status()
584 portno, sc->sc_st.port_status, in uhub_read_port_status()
585 sc->sc_st.port_change, usbd_errstr(err)); in uhub_read_port_status()
617 port_change = sc->sc_st.port_change; in uhub_port_debounce()
618 port_status = sc->sc_st.port_status; in uhub_port_debounce()
707 if (!(sc->sc_st.port_status & UPS_CURRENT_CONNECT_STATUS)) { in uhub_reattach_port()
737 if ((sc->sc_st.port_status & power_mask) != power_mask) { in uhub_reattach_port()
744 if (!(sc->sc_st.port_status & UPS_PORT_MODE_DEVICE)) { in uhub_reattach_port()
747 if (sc->sc_st.port_status & UPS_SUSPEND) { in uhub_reattach_port()
782 if ((sc->sc_st.port_change & UPS_C_CONNECT_STATUS) || in uhub_reattach_port()
783 (!(sc->sc_st.port_status & UPS_CURRENT_CONNECT_STATUS))) { in uhub_reattach_port()
787 portno, sc->sc_st.port_change, in uhub_reattach_port()
788 sc->sc_st.port_status); in uhub_reattach_port()
803 if (sc->sc_st.port_status & UPS_HIGH_SPEED) in uhub_reattach_port()
805 else if (sc->sc_st.port_status & UPS_LOW_SPEED) in uhub_reattach_port()
811 if (sc->sc_st.port_status & UPS_LOW_SPEED) in uhub_reattach_port()
822 switch (sc->sc_st.port_status & UPS_OTHER_SPEED) { in uhub_reattach_port()
870 } else if (sc->sc_st.port_status & UPS_PORT_MODE_DEVICE) in uhub_reattach_port()
893 if (sc->sc_st.port_status & UPS_PORT_ENABLED) { in uhub_reattach_port()
973 if (sc->sc_st.port_status & UPS_SUSPEND) { in uhub_suspend_resume_port()
979 switch (UPS_PORT_LINK_STATE_GET(sc->sc_st.port_status)) { in uhub_suspend_resume_port()
1100 if (sc->sc_st.port_change & UPS_C_OVERCURRENT_INDICATOR) { in uhub_explore()
1110 if (sc->sc_st.port_change & UPS_C_PORT_ENABLED) { in uhub_explore()
1117 if (sc->sc_st.port_change & UPS_C_CONNECT_STATUS) { in uhub_explore()
1122 } else if (sc->sc_st.port_status & UPS_PORT_ENABLED) { in uhub_explore()
1131 sc->sc_st.port_change |= in uhub_explore()
1137 if (sc->sc_st.port_change & UPS_C_CONNECT_STATUS) { in uhub_explore()
1144 if (sc->sc_st.port_change & (UPS_C_SUSPEND | in uhub_explore()
1547 DPRINTF("port_change:%x\n", sc->sc_st.port_change); in uhub_attach()
1548 if (sc->sc_st.port_change & UPS_C_CONNECT_STATUS) { in uhub_attach()