Lines Matching refs:otg
27 int (*set_host)(struct usb_otg *otg, struct usb_bus *host);
30 int (*set_peripheral)(struct usb_otg *otg,
34 int (*set_vbus)(struct usb_otg *otg, bool enabled);
37 int (*start_srp)(struct usb_otg *otg);
40 int (*start_hnp)(struct usb_otg *otg);
48 otg_start_hnp(struct usb_otg *otg) in otg_start_hnp() argument
50 if (otg && otg->start_hnp) in otg_start_hnp()
51 return otg->start_hnp(otg); in otg_start_hnp()
58 otg_set_vbus(struct usb_otg *otg, bool enabled) in otg_set_vbus() argument
60 if (otg && otg->set_vbus) in otg_set_vbus()
61 return otg->set_vbus(otg, enabled); in otg_set_vbus()
68 otg_set_host(struct usb_otg *otg, struct usb_bus *host) in otg_set_host() argument
70 if (otg && otg->set_host) in otg_set_host()
71 return otg->set_host(otg, host); in otg_set_host()
80 otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *periph) in otg_set_peripheral() argument
82 if (otg && otg->set_peripheral) in otg_set_peripheral()
83 return otg->set_peripheral(otg, periph); in otg_set_peripheral()
89 otg_start_srp(struct usb_otg *otg) in otg_start_srp() argument
91 if (otg && otg->start_srp) in otg_start_srp()
92 return otg->start_srp(otg); in otg_start_srp()