Lines Matching refs:otg
29 int (*set_host)(struct usb_otg *otg, struct usb_bus *host);
32 int (*set_peripheral)(struct usb_otg *otg,
36 int (*set_vbus)(struct usb_otg *otg, bool enabled);
39 int (*start_srp)(struct usb_otg *otg);
42 int (*start_hnp)(struct usb_otg *otg);
66 otg_start_hnp(struct usb_otg *otg) in otg_start_hnp() argument
68 if (otg && otg->start_hnp) in otg_start_hnp()
69 return otg->start_hnp(otg); in otg_start_hnp()
76 otg_set_vbus(struct usb_otg *otg, bool enabled) in otg_set_vbus() argument
78 if (otg && otg->set_vbus) in otg_set_vbus()
79 return otg->set_vbus(otg, enabled); in otg_set_vbus()
86 otg_set_host(struct usb_otg *otg, struct usb_bus *host) in otg_set_host() argument
88 if (otg && otg->set_host) in otg_set_host()
89 return otg->set_host(otg, host); in otg_set_host()
98 otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *periph) in otg_set_peripheral() argument
100 if (otg && otg->set_peripheral) in otg_set_peripheral()
101 return otg->set_peripheral(otg, periph); in otg_set_peripheral()
107 otg_start_srp(struct usb_otg *otg) in otg_start_srp() argument
109 if (otg && otg->start_srp) in otg_start_srp()
110 return otg->start_srp(otg); in otg_start_srp()