Lines Matching refs:otg
72 musb->xceiv->otg->state = OTG_STATE_A_HOST; in musb_host_finish_resume()
79 struct usb_otg *otg = musb->xceiv->otg; in musb_port_suspend() local
110 switch (musb->xceiv->otg->state) { in musb_port_suspend()
112 musb->xceiv->otg->state = OTG_STATE_A_SUSPEND; in musb_port_suspend()
113 musb->is_active = otg->host->b_hnp_enable; in musb_port_suspend()
121 musb->xceiv->otg->state = OTG_STATE_B_WAIT_ACON; in musb_port_suspend()
122 musb->is_active = otg->host->b_hnp_enable; in musb_port_suspend()
127 usb_otg_state_string(musb->xceiv->otg->state)); in musb_port_suspend()
148 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) { in musb_port_reset()
219 struct usb_otg *otg = musb->xceiv->otg; in musb_root_disconnect() local
227 switch (musb->xceiv->otg->state) { in musb_root_disconnect()
229 if (otg->host->b_hnp_enable) { in musb_root_disconnect()
230 musb->xceiv->otg->state = OTG_STATE_A_PERIPHERAL; in musb_root_disconnect()
236 musb->xceiv->otg->state = OTG_STATE_A_WAIT_BCON; in musb_root_disconnect()
240 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in musb_root_disconnect()
244 usb_otg_state_string(musb->xceiv->otg->state)); in musb_root_disconnect()