Lines Matching defs:otg
46 musb->xceiv->otg->state = OTG_STATE_A_HOST;
53 struct usb_otg *otg = musb->xceiv->otg;
88 switch (musb->xceiv->otg->state) {
90 musb->xceiv->otg->state = OTG_STATE_A_SUSPEND;
91 musb->is_active = otg->host->b_hnp_enable;
99 musb->xceiv->otg->state = OTG_STATE_B_WAIT_ACON;
100 musb->is_active = otg->host->b_hnp_enable;
105 usb_otg_state_string(musb->xceiv->otg->state));
126 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) {
199 struct usb_otg *otg = musb->xceiv->otg;
207 switch (musb->xceiv->otg->state) {
209 if (otg->host->b_hnp_enable) {
210 musb->xceiv->otg->state = OTG_STATE_A_PERIPHERAL;
216 musb->xceiv->otg->state = OTG_STATE_A_WAIT_BCON;
220 musb->xceiv->otg->state = OTG_STATE_B_IDLE;
224 usb_otg_state_string(musb->xceiv->otg->state));