Lines Matching refs:otg_transceiver
46 struct otg_transceiver;
52 int (*read)(struct otg_transceiver *otg, u32 reg);
53 int (*write)(struct otg_transceiver *otg, u32 val, u32 reg);
62 struct otg_transceiver { struct
85 int (*init)(struct otg_transceiver *otg); argument
86 void (*shutdown)(struct otg_transceiver *otg); argument
89 int (*set_host)(struct otg_transceiver *otg, argument
93 int (*set_peripheral)(struct otg_transceiver *otg, argument
97 int (*set_power)(struct otg_transceiver *otg, argument
101 int (*set_vbus)(struct otg_transceiver *otg, argument
105 int (*set_suspend)(struct otg_transceiver *otg, argument
109 int (*start_srp)(struct otg_transceiver *otg); argument
112 int (*start_hnp)(struct otg_transceiver *otg); argument
118 extern int otg_set_transceiver(struct otg_transceiver *);
135 static inline int otg_io_read(struct otg_transceiver *otg, u32 reg) in otg_io_read()
143 static inline int otg_io_write(struct otg_transceiver *otg, u32 val, u32 reg) in otg_io_write()
152 otg_init(struct otg_transceiver *otg) in otg_init()
161 otg_shutdown(struct otg_transceiver *otg) in otg_shutdown()
169 extern struct otg_transceiver *otg_get_transceiver(void);
170 extern void otg_put_transceiver(struct otg_transceiver *);
172 static inline struct otg_transceiver *otg_get_transceiver(void) in otg_get_transceiver()
177 static inline void otg_put_transceiver(struct otg_transceiver *x) in otg_put_transceiver()
184 otg_start_hnp(struct otg_transceiver *otg) in otg_start_hnp()
191 otg_set_vbus(struct otg_transceiver *otg, bool enabled) in otg_set_vbus()
198 otg_set_host(struct otg_transceiver *otg, struct usb_bus *host) in otg_set_host()
207 otg_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *periph) in otg_set_peripheral()
213 otg_set_power(struct otg_transceiver *otg, unsigned mA) in otg_set_power()
220 otg_set_suspend(struct otg_transceiver *otg, int suspend) in otg_set_suspend()
229 otg_start_srp(struct otg_transceiver *otg) in otg_start_srp()
236 otg_register_notifier(struct otg_transceiver *otg, struct notifier_block *nb) in otg_register_notifier()
242 otg_unregister_notifier(struct otg_transceiver *otg, struct notifier_block *nb) in otg_unregister_notifier()