Lines Matching refs:sc_flags
494 if (sc->sc_flags.status_high_speed) in dwc_otg_update_host_frame_interval()
508 if (sc->sc_flags.clocks_off && in dwc_otg_clocks_on()
509 sc->sc_flags.port_powered) { in dwc_otg_clocks_on()
515 sc->sc_flags.clocks_off = 0; in dwc_otg_clocks_on()
522 if (!sc->sc_flags.clocks_off) { in dwc_otg_clocks_off()
528 sc->sc_flags.clocks_off = 1; in dwc_otg_clocks_off()
539 if (!sc->sc_flags.d_pulled_up && in dwc_otg_pull_up()
540 sc->sc_flags.port_powered) { in dwc_otg_pull_up()
541 sc->sc_flags.d_pulled_up = 1; in dwc_otg_pull_up()
556 if (sc->sc_flags.d_pulled_up) { in dwc_otg_pull_down()
557 sc->sc_flags.d_pulled_up = 0; in dwc_otg_pull_down()
569 if (sc->sc_flags.status_device_mode != 0) in dwc_otg_enable_sof_irq()
583 if (sc->sc_flags.status_suspend) { in dwc_otg_resume_irq()
585 sc->sc_flags.status_suspend = 0; in dwc_otg_resume_irq()
586 sc->sc_flags.change_suspend = 1; in dwc_otg_resume_irq()
588 if (sc->sc_flags.status_device_mode) { in dwc_otg_resume_irq()
606 if (!sc->sc_flags.status_suspend) { in dwc_otg_suspend_irq()
608 sc->sc_flags.status_suspend = 1; in dwc_otg_suspend_irq()
609 sc->sc_flags.change_suspend = 1; in dwc_otg_suspend_irq()
611 if (sc->sc_flags.status_device_mode) { in dwc_otg_suspend_irq()
629 if (!sc->sc_flags.status_suspend) in dwc_otg_wakeup_peer()
634 if (sc->sc_flags.status_device_mode) { in dwc_otg_wakeup_peer()
2701 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_interrupt_poll_locked()
2844 if (!sc->sc_flags.status_vbus) { in dwc_otg_vbus_interrupt()
2845 sc->sc_flags.status_vbus = 1; in dwc_otg_vbus_interrupt()
2852 if (sc->sc_flags.status_vbus) { in dwc_otg_vbus_interrupt()
2853 sc->sc_flags.status_vbus = 0; in dwc_otg_vbus_interrupt()
2854 sc->sc_flags.status_bus_reset = 0; in dwc_otg_vbus_interrupt()
2855 sc->sc_flags.status_suspend = 0; in dwc_otg_vbus_interrupt()
2856 sc->sc_flags.change_suspend = 0; in dwc_otg_vbus_interrupt()
2857 sc->sc_flags.change_connect = 1; in dwc_otg_vbus_interrupt()
2941 sc->sc_flags.status_device_mode = 1; in dwc_otg_interrupt()
2942 sc->sc_flags.status_bus_reset = 0; in dwc_otg_interrupt()
2943 sc->sc_flags.status_suspend = 0; in dwc_otg_interrupt()
2944 sc->sc_flags.change_suspend = 0; in dwc_otg_interrupt()
2945 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
2963 sc->sc_flags.status_device_mode = 1; in dwc_otg_interrupt()
2964 sc->sc_flags.status_bus_reset = 1; in dwc_otg_interrupt()
2965 sc->sc_flags.status_suspend = 0; in dwc_otg_interrupt()
2966 sc->sc_flags.change_suspend = 0; in dwc_otg_interrupt()
2967 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
2968 sc->sc_flags.status_low_speed = 0; in dwc_otg_interrupt()
2969 sc->sc_flags.port_enabled = 1; in dwc_otg_interrupt()
2980 sc->sc_flags.status_high_speed = 1; in dwc_otg_interrupt()
2982 sc->sc_flags.status_high_speed = 0; in dwc_otg_interrupt()
3009 sc->sc_flags.status_device_mode = 0; in dwc_otg_interrupt()
3012 sc->sc_flags.status_bus_reset = 1; in dwc_otg_interrupt()
3014 sc->sc_flags.status_bus_reset = 0; in dwc_otg_interrupt()
3018 sc->sc_flags.change_enabled = 1; in dwc_otg_interrupt()
3021 sc->sc_flags.port_enabled = 1; in dwc_otg_interrupt()
3023 sc->sc_flags.port_enabled = 0; in dwc_otg_interrupt()
3026 sc->sc_flags.change_over_current = 1; in dwc_otg_interrupt()
3029 sc->sc_flags.port_over_current = 1; in dwc_otg_interrupt()
3031 sc->sc_flags.port_over_current = 0; in dwc_otg_interrupt()
3034 sc->sc_flags.port_powered = 1; in dwc_otg_interrupt()
3036 sc->sc_flags.port_powered = 0; in dwc_otg_interrupt()
3040 sc->sc_flags.status_low_speed = 1; in dwc_otg_interrupt()
3042 sc->sc_flags.status_low_speed = 0; in dwc_otg_interrupt()
3046 sc->sc_flags.status_high_speed = 1; in dwc_otg_interrupt()
3048 sc->sc_flags.status_high_speed = 0; in dwc_otg_interrupt()
3051 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
3483 if (sc->sc_flags.status_device_mode != 0) { in dwc_otg_start_standard_chain()
3511 if (sc->sc_flags.status_device_mode != 0) in dwc_otg_start_standard_chain()
4098 sc->sc_flags.port_enabled = 0; in dwc_otg_uninit()
4099 sc->sc_flags.port_powered = 0; in dwc_otg_uninit()
4100 sc->sc_flags.status_vbus = 0; in dwc_otg_uninit()
4101 sc->sc_flags.status_bus_reset = 0; in dwc_otg_uninit()
4102 sc->sc_flags.status_suspend = 0; in dwc_otg_uninit()
4103 sc->sc_flags.change_suspend = 0; in dwc_otg_uninit()
4104 sc->sc_flags.change_connect = 1; in dwc_otg_uninit()
4222 if (sc->sc_flags.status_high_speed) in dwc_otg_device_isoc_start()
4629 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4633 sc->sc_flags.port_enabled = 0; in dwc_otg_roothub_exec()
4637 sc->sc_flags.change_reset = 0; in dwc_otg_roothub_exec()
4641 sc->sc_flags.change_enabled = 0; in dwc_otg_roothub_exec()
4645 sc->sc_flags.change_over_current = 0; in dwc_otg_roothub_exec()
4654 sc->sc_flags.port_powered = 0; in dwc_otg_roothub_exec()
4665 sc->sc_flags.change_connect = 0; in dwc_otg_roothub_exec()
4669 sc->sc_flags.change_suspend = 0; in dwc_otg_roothub_exec()
4689 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4700 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4718 sc->sc_flags.change_reset = 1; in dwc_otg_roothub_exec()
4729 sc->sc_flags.port_powered = 1; in dwc_otg_roothub_exec()
4752 if (sc->sc_flags.status_vbus) in dwc_otg_roothub_exec()
4759 if (sc->sc_flags.status_device_mode) { in dwc_otg_roothub_exec()
4767 if (sc->sc_flags.status_high_speed) in dwc_otg_roothub_exec()
4769 else if (sc->sc_flags.status_low_speed) in dwc_otg_roothub_exec()
4772 if (sc->sc_flags.port_powered) in dwc_otg_roothub_exec()
4775 if (sc->sc_flags.port_enabled) in dwc_otg_roothub_exec()
4778 if (sc->sc_flags.port_over_current) in dwc_otg_roothub_exec()
4781 if (sc->sc_flags.status_vbus && in dwc_otg_roothub_exec()
4782 sc->sc_flags.status_bus_reset) in dwc_otg_roothub_exec()
4785 if (sc->sc_flags.status_suspend) in dwc_otg_roothub_exec()
4792 if (sc->sc_flags.change_enabled) in dwc_otg_roothub_exec()
4794 if (sc->sc_flags.change_connect) in dwc_otg_roothub_exec()
4796 if (sc->sc_flags.change_suspend) in dwc_otg_roothub_exec()
4798 if (sc->sc_flags.change_reset) in dwc_otg_roothub_exec()
4800 if (sc->sc_flags.change_over_current) in dwc_otg_roothub_exec()