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);
63 otg_start_hnp(struct usb_otg *otg) in otg_start_hnp() argument
65 if (otg && otg->start_hnp) in otg_start_hnp()
66 return otg->start_hnp(otg); in otg_start_hnp()
73 otg_set_vbus(struct usb_otg *otg, bool enabled) in otg_set_vbus() argument
75 if (otg && otg->set_vbus) in otg_set_vbus()
76 return otg->set_vbus(otg, enabled); in otg_set_vbus()
83 otg_set_host(struct usb_otg *otg, struct usb_bus *host) in otg_set_host() argument
85 if (otg && otg->set_host) in otg_set_host()
86 return otg->set_host(otg, host); in otg_set_host()
95 otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *periph) in otg_set_peripheral() argument
97 if (otg && otg->set_peripheral) in otg_set_peripheral()
98 return otg->set_peripheral(otg, periph); in otg_set_peripheral()
104 otg_start_srp(struct usb_otg *otg) in otg_start_srp() argument
106 if (otg && otg->start_srp) in otg_start_srp()
107 return otg->start_srp(otg); in otg_start_srp()