Lines Matching refs:otg
74 if (fsm->otg->gadget) in otg_leave_state()
75 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
105 if (fsm->otg->gadget) in otg_leave_state()
106 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
125 enum usb_otg_state state = fsm->otg->state; in otg_hnp_polling_work()
132 udev = usb_hub_find_child(fsm->otg->host->root_hub, 1); in otg_hnp_polling_work()
134 dev_err(fsm->otg->host->controller, in otg_hnp_polling_work()
169 if (!fsm->otg->host->b_hnp_enable) { in otg_hnp_polling_work()
177 fsm->otg->host->b_hnp_enable = 1; in otg_hnp_polling_work()
204 if (fsm->otg->state == new_state) in otg_set_state()
207 otg_leave_state(fsm, fsm->otg->state); in otg_set_state()
247 usb_bus_start_enum(fsm->otg->host, in otg_set_state()
248 fsm->otg->host->otg_port); in otg_set_state()
318 fsm->otg->state = new_state; in otg_set_state()
330 state = fsm->otg->state; in otg_statemachine()
345 else if (fsm->b_sess_vld && fsm->otg->gadget) in otg_statemachine()
358 else if (fsm->b_bus_req && fsm->otg-> in otg_statemachine()
404 fsm->otg->host->b_hnp_enable) in otg_statemachine()
412 if (!fsm->b_conn && fsm->otg->host->b_hnp_enable) in otg_statemachine()
414 else if (!fsm->b_conn && !fsm->otg->host->b_hnp_enable) in otg_statemachine()