Lines Matching refs:otg
1 // include/linux/usb/otg.h
35 * the otg driver needs to interact with both device side and host side
38 * configuration information (including "board isn't wired for otg").
55 int (*set_host)(struct otg_transceiver *otg,
59 int (*set_peripheral)(struct otg_transceiver *otg,
63 int (*set_power)(struct otg_transceiver *otg,
67 int (*set_suspend)(struct otg_transceiver *otg,
71 int (*start_srp)(struct otg_transceiver *otg);
74 int (*start_hnp)(struct otg_transceiver *otg);
87 otg_start_hnp(struct otg_transceiver *otg)
89 return otg->start_hnp(otg);
95 otg_set_host(struct otg_transceiver *otg, struct usb_bus *host)
97 return otg->set_host(otg, host);
103 otg_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *periph)
105 return otg->set_peripheral(otg, periph);
109 otg_set_power(struct otg_transceiver *otg, unsigned mA)
111 return otg->set_power(otg, mA);
115 otg_set_suspend(struct otg_transceiver *otg, int suspend)
117 if (otg->set_suspend != NULL)
118 return otg->set_suspend(otg, suspend);
124 otg_start_srp(struct otg_transceiver *otg)
126 return otg->start_srp(otg);