Lines Matching refs:gadget
30 #include <linux/usb/gadget.h>
331 isp->otg.gadget->b_hnp_enable = 0;
332 isp->otg.gadget->a_hnp_support = 0;
333 isp->otg.gadget->a_alt_hnp_support = 0;
334 return usb_gadget_vbus_disconnect(isp->otg.gadget);
372 if (isp->otg.gadget) {
373 isp->otg.gadget->is_a_peripheral = 1;
396 if (isp->otg.gadget) {
397 isp->otg.gadget->is_a_peripheral = 0;
580 if (isp->otg.gadget->b_hnp_enable) {
693 /* gadget drivers that care should monitor all kinds of
787 ? "gadget" : "host",
952 usb_gadget_vbus_connect(isp->otg.gadget);
1011 usb_gadget_vbus_disconnect(isp->otg.gadget);
1077 if (isp->otg.gadget && (isp_bstat & OTG_B_SESS_VLD)) {
1313 if (isp->otg.gadget)
1350 isp1301_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *gadget)
1360 if (!gadget) {
1364 usb_gadget_vbus_disconnect(isp->otg.gadget);
1365 isp->otg.gadget = NULL;
1371 isp->otg.gadget = gadget;
1372 dev_dbg(&isp->client->dev, "registered gadget\n");
1373 /* gadget driver may be suspended until vbus_connect () */
1379 isp->otg.gadget = gadget;
1466 if (!isp->otg.default_a && (isp->otg.gadget == NULL
1467 || !isp->otg.gadget->b_hnp_enable))
1480 usb_gadget_vbus_connect(isp->otg.gadget);