Lines Matching full:otg
3 * OTG Finite State Machine from OTG spec
18 #include <linux/usb/otg.h>
19 #include <linux/usb/otg-fsm.h>
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()
151 dev_err(&udev->dev, "Get one byte OTG status failed\n"); 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()
208 if (fsm->otg->state == new_state) in otg_set_state()
211 otg_leave_state(fsm, fsm->otg->state); in otg_set_state()
251 usb_bus_start_enum(fsm->otg->host, in otg_set_state()
252 fsm->otg->host->otg_port); in otg_set_state()
322 fsm->otg->state = new_state; in otg_set_state()
334 state = fsm->otg->state; in otg_statemachine()
349 else if (fsm->b_sess_vld && fsm->otg->gadget) in otg_statemachine()
362 else if (fsm->b_bus_req && fsm->otg-> in otg_statemachine()
408 fsm->otg->host->b_hnp_enable) in otg_statemachine()
416 if (!fsm->b_conn && fsm->otg->host->b_hnp_enable) in otg_statemachine()
418 else if (!fsm->b_conn && !fsm->otg->host->b_hnp_enable) in otg_statemachine()