Lines Matching refs:sc_flags
491 if (sc->sc_flags.status_high_speed) in dwc_otg_update_host_frame_interval()
505 if (sc->sc_flags.clocks_off && in dwc_otg_clocks_on()
506 sc->sc_flags.port_powered) { in dwc_otg_clocks_on()
511 sc->sc_flags.clocks_off = 0; in dwc_otg_clocks_on()
518 if (!sc->sc_flags.clocks_off) { in dwc_otg_clocks_off()
523 sc->sc_flags.clocks_off = 1; in dwc_otg_clocks_off()
534 if (!sc->sc_flags.d_pulled_up && in dwc_otg_pull_up()
535 sc->sc_flags.port_powered) { in dwc_otg_pull_up()
536 sc->sc_flags.d_pulled_up = 1; in dwc_otg_pull_up()
551 if (sc->sc_flags.d_pulled_up) { in dwc_otg_pull_down()
552 sc->sc_flags.d_pulled_up = 0; in dwc_otg_pull_down()
564 if (sc->sc_flags.status_device_mode != 0) in dwc_otg_enable_sof_irq()
578 if (sc->sc_flags.status_suspend) { in dwc_otg_resume_irq()
580 sc->sc_flags.status_suspend = 0; in dwc_otg_resume_irq()
581 sc->sc_flags.change_suspend = 1; in dwc_otg_resume_irq()
583 if (sc->sc_flags.status_device_mode) { in dwc_otg_resume_irq()
601 if (!sc->sc_flags.status_suspend) { in dwc_otg_suspend_irq()
603 sc->sc_flags.status_suspend = 1; in dwc_otg_suspend_irq()
604 sc->sc_flags.change_suspend = 1; in dwc_otg_suspend_irq()
606 if (sc->sc_flags.status_device_mode) { in dwc_otg_suspend_irq()
624 if (!sc->sc_flags.status_suspend) in dwc_otg_wakeup_peer()
629 if (sc->sc_flags.status_device_mode) { in dwc_otg_wakeup_peer()
2687 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_interrupt_poll_locked()
2827 if (!sc->sc_flags.status_vbus) { in dwc_otg_vbus_interrupt()
2828 sc->sc_flags.status_vbus = 1; in dwc_otg_vbus_interrupt()
2835 if (sc->sc_flags.status_vbus) { in dwc_otg_vbus_interrupt()
2836 sc->sc_flags.status_vbus = 0; in dwc_otg_vbus_interrupt()
2837 sc->sc_flags.status_bus_reset = 0; in dwc_otg_vbus_interrupt()
2838 sc->sc_flags.status_suspend = 0; in dwc_otg_vbus_interrupt()
2839 sc->sc_flags.change_suspend = 0; in dwc_otg_vbus_interrupt()
2840 sc->sc_flags.change_connect = 1; in dwc_otg_vbus_interrupt()
2923 sc->sc_flags.status_device_mode = 1; in dwc_otg_interrupt()
2924 sc->sc_flags.status_bus_reset = 0; in dwc_otg_interrupt()
2925 sc->sc_flags.status_suspend = 0; in dwc_otg_interrupt()
2926 sc->sc_flags.change_suspend = 0; in dwc_otg_interrupt()
2927 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
2944 sc->sc_flags.status_device_mode = 1; in dwc_otg_interrupt()
2945 sc->sc_flags.status_bus_reset = 1; in dwc_otg_interrupt()
2946 sc->sc_flags.status_suspend = 0; in dwc_otg_interrupt()
2947 sc->sc_flags.change_suspend = 0; in dwc_otg_interrupt()
2948 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
2949 sc->sc_flags.status_low_speed = 0; in dwc_otg_interrupt()
2950 sc->sc_flags.port_enabled = 1; in dwc_otg_interrupt()
2961 sc->sc_flags.status_high_speed = 1; in dwc_otg_interrupt()
2963 sc->sc_flags.status_high_speed = 0; in dwc_otg_interrupt()
2990 sc->sc_flags.status_device_mode = 0; in dwc_otg_interrupt()
2993 sc->sc_flags.status_bus_reset = 1; in dwc_otg_interrupt()
2995 sc->sc_flags.status_bus_reset = 0; in dwc_otg_interrupt()
2999 sc->sc_flags.change_enabled = 1; in dwc_otg_interrupt()
3002 sc->sc_flags.port_enabled = 1; in dwc_otg_interrupt()
3004 sc->sc_flags.port_enabled = 0; in dwc_otg_interrupt()
3007 sc->sc_flags.change_over_current = 1; in dwc_otg_interrupt()
3010 sc->sc_flags.port_over_current = 1; in dwc_otg_interrupt()
3012 sc->sc_flags.port_over_current = 0; in dwc_otg_interrupt()
3015 sc->sc_flags.port_powered = 1; in dwc_otg_interrupt()
3017 sc->sc_flags.port_powered = 0; in dwc_otg_interrupt()
3021 sc->sc_flags.status_low_speed = 1; in dwc_otg_interrupt()
3023 sc->sc_flags.status_low_speed = 0; in dwc_otg_interrupt()
3027 sc->sc_flags.status_high_speed = 1; in dwc_otg_interrupt()
3029 sc->sc_flags.status_high_speed = 0; in dwc_otg_interrupt()
3032 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
3454 if (sc->sc_flags.status_device_mode != 0) { in dwc_otg_start_standard_chain()
3482 if (sc->sc_flags.status_device_mode != 0) in dwc_otg_start_standard_chain()
4089 sc->sc_flags.port_enabled = 0; in dwc_otg_uninit()
4090 sc->sc_flags.port_powered = 0; in dwc_otg_uninit()
4091 sc->sc_flags.status_vbus = 0; in dwc_otg_uninit()
4092 sc->sc_flags.status_bus_reset = 0; in dwc_otg_uninit()
4093 sc->sc_flags.status_suspend = 0; in dwc_otg_uninit()
4094 sc->sc_flags.change_suspend = 0; in dwc_otg_uninit()
4095 sc->sc_flags.change_connect = 1; in dwc_otg_uninit()
4211 if (sc->sc_flags.status_high_speed) in dwc_otg_device_isoc_start()
4578 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4582 sc->sc_flags.port_enabled = 0; in dwc_otg_roothub_exec()
4586 sc->sc_flags.change_reset = 0; in dwc_otg_roothub_exec()
4590 sc->sc_flags.change_enabled = 0; in dwc_otg_roothub_exec()
4594 sc->sc_flags.change_over_current = 0; in dwc_otg_roothub_exec()
4603 sc->sc_flags.port_powered = 0; in dwc_otg_roothub_exec()
4614 sc->sc_flags.change_connect = 0; in dwc_otg_roothub_exec()
4618 sc->sc_flags.change_suspend = 0; in dwc_otg_roothub_exec()
4638 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4649 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4666 sc->sc_flags.change_reset = 1; in dwc_otg_roothub_exec()
4677 sc->sc_flags.port_powered = 1; in dwc_otg_roothub_exec()
4700 if (sc->sc_flags.status_vbus) in dwc_otg_roothub_exec()
4707 if (sc->sc_flags.status_device_mode) { in dwc_otg_roothub_exec()
4715 if (sc->sc_flags.status_high_speed) in dwc_otg_roothub_exec()
4717 else if (sc->sc_flags.status_low_speed) in dwc_otg_roothub_exec()
4720 if (sc->sc_flags.port_powered) in dwc_otg_roothub_exec()
4723 if (sc->sc_flags.port_enabled) in dwc_otg_roothub_exec()
4726 if (sc->sc_flags.port_over_current) in dwc_otg_roothub_exec()
4729 if (sc->sc_flags.status_vbus && in dwc_otg_roothub_exec()
4730 sc->sc_flags.status_bus_reset) in dwc_otg_roothub_exec()
4733 if (sc->sc_flags.status_suspend) in dwc_otg_roothub_exec()
4740 if (sc->sc_flags.change_enabled) in dwc_otg_roothub_exec()
4742 if (sc->sc_flags.change_connect) in dwc_otg_roothub_exec()
4744 if (sc->sc_flags.change_suspend) in dwc_otg_roothub_exec()
4746 if (sc->sc_flags.change_reset) in dwc_otg_roothub_exec()
4748 if (sc->sc_flags.change_over_current) in dwc_otg_roothub_exec()