Lines Matching full:otg
3 * MUSB OTG driver virtual root hub support
46 musb->xceiv->otg->state = OTG_STATE_A_HOST; in musb_host_finish_resume()
53 struct usb_otg *otg = musb->xceiv->otg; in musb_port_suspend() local
88 switch (musb->xceiv->otg->state) { in musb_port_suspend()
90 musb->xceiv->otg->state = OTG_STATE_A_SUSPEND; in musb_port_suspend()
91 musb->is_active = otg->host->b_hnp_enable; in musb_port_suspend()
99 musb->xceiv->otg->state = OTG_STATE_B_WAIT_ACON; in musb_port_suspend()
100 musb->is_active = otg->host->b_hnp_enable; in musb_port_suspend()
105 usb_otg_state_string(musb->xceiv->otg->state)); in musb_port_suspend()
126 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) { in musb_port_reset()
199 struct usb_otg *otg = musb->xceiv->otg; in musb_root_disconnect() local
207 switch (musb->xceiv->otg->state) { in musb_root_disconnect()
209 if (otg->host->b_hnp_enable) { in musb_root_disconnect()
210 musb->xceiv->otg->state = OTG_STATE_A_PERIPHERAL; in musb_root_disconnect()
216 musb->xceiv->otg->state = OTG_STATE_A_WAIT_BCON; in musb_root_disconnect()
220 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in musb_root_disconnect()
224 usb_otg_state_string(musb->xceiv->otg->state)); in musb_root_disconnect()
249 * In host-only mode we start a connection right away. In OTG mode in musb_has_gadget()
370 * initialization logic, e.g. for OTG, or change any in musb_hub_control()