Lines Matching refs:sc_flags
490 if (sc->sc_flags.status_high_speed) in dwc_otg_update_host_frame_interval()
504 if (sc->sc_flags.clocks_off && in dwc_otg_clocks_on()
505 sc->sc_flags.port_powered) { in dwc_otg_clocks_on()
510 sc->sc_flags.clocks_off = 0; in dwc_otg_clocks_on()
517 if (!sc->sc_flags.clocks_off) { in dwc_otg_clocks_off()
522 sc->sc_flags.clocks_off = 1; in dwc_otg_clocks_off()
533 if (!sc->sc_flags.d_pulled_up && in dwc_otg_pull_up()
534 sc->sc_flags.port_powered) { in dwc_otg_pull_up()
535 sc->sc_flags.d_pulled_up = 1; in dwc_otg_pull_up()
550 if (sc->sc_flags.d_pulled_up) { in dwc_otg_pull_down()
551 sc->sc_flags.d_pulled_up = 0; in dwc_otg_pull_down()
563 if (sc->sc_flags.status_device_mode != 0) in dwc_otg_enable_sof_irq()
577 if (sc->sc_flags.status_suspend) { in dwc_otg_resume_irq()
579 sc->sc_flags.status_suspend = 0; in dwc_otg_resume_irq()
580 sc->sc_flags.change_suspend = 1; in dwc_otg_resume_irq()
582 if (sc->sc_flags.status_device_mode) { in dwc_otg_resume_irq()
600 if (!sc->sc_flags.status_suspend) { in dwc_otg_suspend_irq()
602 sc->sc_flags.status_suspend = 1; in dwc_otg_suspend_irq()
603 sc->sc_flags.change_suspend = 1; in dwc_otg_suspend_irq()
605 if (sc->sc_flags.status_device_mode) { in dwc_otg_suspend_irq()
623 if (!sc->sc_flags.status_suspend) in dwc_otg_wakeup_peer()
628 if (sc->sc_flags.status_device_mode) { in dwc_otg_wakeup_peer()
2686 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_interrupt_poll_locked()
2826 if (!sc->sc_flags.status_vbus) { in dwc_otg_vbus_interrupt()
2827 sc->sc_flags.status_vbus = 1; in dwc_otg_vbus_interrupt()
2834 if (sc->sc_flags.status_vbus) { in dwc_otg_vbus_interrupt()
2835 sc->sc_flags.status_vbus = 0; in dwc_otg_vbus_interrupt()
2836 sc->sc_flags.status_bus_reset = 0; in dwc_otg_vbus_interrupt()
2837 sc->sc_flags.status_suspend = 0; in dwc_otg_vbus_interrupt()
2838 sc->sc_flags.change_suspend = 0; in dwc_otg_vbus_interrupt()
2839 sc->sc_flags.change_connect = 1; in dwc_otg_vbus_interrupt()
2922 sc->sc_flags.status_device_mode = 1; in dwc_otg_interrupt()
2923 sc->sc_flags.status_bus_reset = 0; in dwc_otg_interrupt()
2924 sc->sc_flags.status_suspend = 0; in dwc_otg_interrupt()
2925 sc->sc_flags.change_suspend = 0; in dwc_otg_interrupt()
2926 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
2943 sc->sc_flags.status_device_mode = 1; in dwc_otg_interrupt()
2944 sc->sc_flags.status_bus_reset = 1; in dwc_otg_interrupt()
2945 sc->sc_flags.status_suspend = 0; in dwc_otg_interrupt()
2946 sc->sc_flags.change_suspend = 0; in dwc_otg_interrupt()
2947 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
2948 sc->sc_flags.status_low_speed = 0; in dwc_otg_interrupt()
2949 sc->sc_flags.port_enabled = 1; in dwc_otg_interrupt()
2960 sc->sc_flags.status_high_speed = 1; in dwc_otg_interrupt()
2962 sc->sc_flags.status_high_speed = 0; in dwc_otg_interrupt()
2989 sc->sc_flags.status_device_mode = 0; in dwc_otg_interrupt()
2992 sc->sc_flags.status_bus_reset = 1; in dwc_otg_interrupt()
2994 sc->sc_flags.status_bus_reset = 0; in dwc_otg_interrupt()
2998 sc->sc_flags.change_enabled = 1; in dwc_otg_interrupt()
3001 sc->sc_flags.port_enabled = 1; in dwc_otg_interrupt()
3003 sc->sc_flags.port_enabled = 0; in dwc_otg_interrupt()
3006 sc->sc_flags.change_over_current = 1; in dwc_otg_interrupt()
3009 sc->sc_flags.port_over_current = 1; in dwc_otg_interrupt()
3011 sc->sc_flags.port_over_current = 0; in dwc_otg_interrupt()
3014 sc->sc_flags.port_powered = 1; in dwc_otg_interrupt()
3016 sc->sc_flags.port_powered = 0; in dwc_otg_interrupt()
3020 sc->sc_flags.status_low_speed = 1; in dwc_otg_interrupt()
3022 sc->sc_flags.status_low_speed = 0; in dwc_otg_interrupt()
3026 sc->sc_flags.status_high_speed = 1; in dwc_otg_interrupt()
3028 sc->sc_flags.status_high_speed = 0; in dwc_otg_interrupt()
3031 sc->sc_flags.change_connect = 1; in dwc_otg_interrupt()
3453 if (sc->sc_flags.status_device_mode != 0) { in dwc_otg_start_standard_chain()
3481 if (sc->sc_flags.status_device_mode != 0) in dwc_otg_start_standard_chain()
4088 sc->sc_flags.port_enabled = 0; in dwc_otg_uninit()
4089 sc->sc_flags.port_powered = 0; in dwc_otg_uninit()
4090 sc->sc_flags.status_vbus = 0; in dwc_otg_uninit()
4091 sc->sc_flags.status_bus_reset = 0; in dwc_otg_uninit()
4092 sc->sc_flags.status_suspend = 0; in dwc_otg_uninit()
4093 sc->sc_flags.change_suspend = 0; in dwc_otg_uninit()
4094 sc->sc_flags.change_connect = 1; in dwc_otg_uninit()
4210 if (sc->sc_flags.status_high_speed) in dwc_otg_device_isoc_start()
4577 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4581 sc->sc_flags.port_enabled = 0; in dwc_otg_roothub_exec()
4585 sc->sc_flags.change_reset = 0; in dwc_otg_roothub_exec()
4589 sc->sc_flags.change_enabled = 0; in dwc_otg_roothub_exec()
4593 sc->sc_flags.change_over_current = 0; in dwc_otg_roothub_exec()
4602 sc->sc_flags.port_powered = 0; in dwc_otg_roothub_exec()
4613 sc->sc_flags.change_connect = 0; in dwc_otg_roothub_exec()
4617 sc->sc_flags.change_suspend = 0; in dwc_otg_roothub_exec()
4637 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4648 if (sc->sc_flags.status_device_mode == 0) { in dwc_otg_roothub_exec()
4665 sc->sc_flags.change_reset = 1; in dwc_otg_roothub_exec()
4676 sc->sc_flags.port_powered = 1; in dwc_otg_roothub_exec()
4699 if (sc->sc_flags.status_vbus) in dwc_otg_roothub_exec()
4706 if (sc->sc_flags.status_device_mode) { in dwc_otg_roothub_exec()
4714 if (sc->sc_flags.status_high_speed) in dwc_otg_roothub_exec()
4716 else if (sc->sc_flags.status_low_speed) in dwc_otg_roothub_exec()
4719 if (sc->sc_flags.port_powered) in dwc_otg_roothub_exec()
4722 if (sc->sc_flags.port_enabled) in dwc_otg_roothub_exec()
4725 if (sc->sc_flags.port_over_current) in dwc_otg_roothub_exec()
4728 if (sc->sc_flags.status_vbus && in dwc_otg_roothub_exec()
4729 sc->sc_flags.status_bus_reset) in dwc_otg_roothub_exec()
4732 if (sc->sc_flags.status_suspend) in dwc_otg_roothub_exec()
4739 if (sc->sc_flags.change_enabled) in dwc_otg_roothub_exec()
4741 if (sc->sc_flags.change_connect) in dwc_otg_roothub_exec()
4743 if (sc->sc_flags.change_suspend) in dwc_otg_roothub_exec()
4745 if (sc->sc_flags.change_reset) in dwc_otg_roothub_exec()
4747 if (sc->sc_flags.change_over_current) in dwc_otg_roothub_exec()