Lines Matching refs:otg
35 #include <linux/usb/otg.h>
148 struct otg_transceiver otg;
169 #define xceiv_to_twl(x) container_of((x), struct twl4030_usb, otg);
286 twl->otg.default_a = true;
287 twl->otg.state = OTG_STATE_A_IDLE;
289 twl->otg.default_a = false;
290 twl->otg.state = OTG_STATE_B_IDLE;
491 blocking_notifier_call_chain(&twl->otg.notifier, status,
492 twl->otg.gadget);
513 blocking_notifier_call_chain(&twl->otg.notifier, status,
514 twl->otg.gadget);
540 twl->otg.gadget = gadget;
542 twl->otg.state = OTG_STATE_UNDEFINED;
555 twl->otg.host = host;
557 twl->otg.state = OTG_STATE_UNDEFINED;
579 twl->otg.dev = twl->dev;
580 twl->otg.label = "twl4030";
581 twl->otg.set_host = twl4030_set_host;
582 twl->otg.set_peripheral = twl4030_set_peripheral;
583 twl->otg.set_suspend = twl4030_set_suspend;
596 otg_set_transceiver(&twl->otg);
602 BLOCKING_INIT_NOTIFIER_HEAD(&twl->otg.notifier);