Lines Matching refs:gadget
309 isp->phy.otg->gadget->b_hnp_enable = 0; in gadget_suspend()
310 isp->phy.otg->gadget->a_hnp_support = 0; in gadget_suspend()
311 isp->phy.otg->gadget->a_alt_hnp_support = 0; in gadget_suspend()
312 return usb_gadget_vbus_disconnect(isp->phy.otg->gadget); in gadget_suspend()
350 if (isp->phy.otg->gadget) { in a_idle()
351 isp->phy.otg->gadget->is_a_peripheral = 1; in a_idle()
374 if (isp->phy.otg->gadget) { in b_idle()
375 isp->phy.otg->gadget->is_a_peripheral = 0; in b_idle()
557 if (isp->phy.otg->gadget->b_hnp_enable) { in otg_update_isp()
929 usb_gadget_vbus_connect(isp->phy.otg->gadget); in b_peripheral()
989 usb_gadget_vbus_disconnect(otg->gadget); in isp_update_otg()
1055 if (otg->gadget && (isp_bstat & OTG_B_SESS_VLD)) { in isp_update_otg()
1293 if (otg->gadget) in isp1301_set_host()
1331 isp1301_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) in isp1301_set_peripheral() argument
1338 if (!gadget) { in isp1301_set_peripheral()
1342 usb_gadget_vbus_disconnect(otg->gadget); in isp1301_set_peripheral()
1343 otg->gadget = NULL; in isp1301_set_peripheral()
1349 otg->gadget = gadget; in isp1301_set_peripheral()
1357 otg->gadget = gadget; in isp1301_set_peripheral()
1447 if (!otg->default_a && (otg->gadget == NULL in isp1301_start_hnp()
1448 || !otg->gadget->b_hnp_enable)) in isp1301_start_hnp()
1466 usb_gadget_vbus_connect(otg->gadget); in isp1301_start_hnp()