Lines Matching refs:otg_stat
434 u32 otg_stat, prcm_mngmt; in tusb_musb_vbus_status() local
437 otg_stat = musb_readl(tbase, TUSB_DEV_OTG_STAT); in tusb_musb_vbus_status()
448 otg_stat = musb_readl(tbase, TUSB_DEV_OTG_STAT); in tusb_musb_vbus_status()
452 if (otg_stat & TUSB_DEV_OTG_STAT_VBUS_VALID) in tusb_musb_vbus_status()
581 u32 otg_stat; in tusb_musb_set_vbus() local
586 otg_stat = musb_readl(tbase, TUSB_DEV_OTG_STAT); in tusb_musb_set_vbus()
587 if (!(otg_stat & TUSB_DEV_OTG_STAT_ID_STATUS)) { in tusb_musb_set_vbus()
636 u32 otg_stat, phy_otg_ctrl, phy_otg_ena, dev_conf; in tusb_musb_set_mode() local
638 otg_stat = musb_readl(tbase, TUSB_DEV_OTG_STAT); in tusb_musb_set_mode()
673 otg_stat = musb_readl(tbase, TUSB_DEV_OTG_STAT); in tusb_musb_set_mode()
675 !(otg_stat & TUSB_DEV_OTG_STAT_ID_STATUS)) in tusb_musb_set_mode()
677 "otg_stat: %08x\n", otg_stat); in tusb_musb_set_mode()
685 u32 otg_stat = musb_readl(tbase, TUSB_DEV_OTG_STAT); in tusb_otg_ints() local
693 default_a = !(otg_stat & TUSB_DEV_OTG_STAT_ID_STATUS); in tusb_otg_ints()
717 if (otg_stat & TUSB_DEV_OTG_STAT_SESS_END) { in tusb_otg_ints()
727 usb_otg_state_string(musb->xceiv->otg->state), otg_stat); in tusb_otg_ints()
733 usb_otg_state_string(musb->xceiv->otg->state), otg_stat); in tusb_otg_ints()
782 usb_otg_state_string(musb->xceiv->otg->state), otg_stat); in tusb_otg_ints()
790 if (otg_stat & TUSB_DEV_OTG_STAT_VBUS_VALID) { in tusb_otg_ints()