Lines Matching full:usb_phy
67 struct usb_phy;
74 int (*read)(struct usb_phy *x, u32 reg);
75 int (*write)(struct usb_phy *x, u32 val, u32 reg);
89 struct usb_phy { struct
127 int (*init)(struct usb_phy *x); argument
128 void (*shutdown)(struct usb_phy *x); argument
131 int (*set_vbus)(struct usb_phy *x, int on); argument
134 int (*set_power)(struct usb_phy *x, argument
138 int (*set_suspend)(struct usb_phy *x, argument
146 int (*set_wakeup)(struct usb_phy *x, bool enabled); argument
149 int (*notify_connect)(struct usb_phy *x, argument
151 int (*notify_disconnect)(struct usb_phy *x, argument
158 enum usb_charger_type (*charger_detect)(struct usb_phy *x); argument
164 extern int usb_add_phy(struct usb_phy *, enum usb_phy_type type);
165 extern int usb_add_phy_dev(struct usb_phy *);
166 extern void usb_remove_phy(struct usb_phy *);
169 static inline int usb_phy_io_read(struct usb_phy *x, u32 reg) in usb_phy_io_read()
177 static inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg) in usb_phy_io_write()
186 usb_phy_init(struct usb_phy *x) in usb_phy_init()
195 usb_phy_shutdown(struct usb_phy *x) in usb_phy_shutdown()
202 usb_phy_vbus_on(struct usb_phy *x) in usb_phy_vbus_on()
211 usb_phy_vbus_off(struct usb_phy *x) in usb_phy_vbus_off()
221 extern struct usb_phy *usb_get_phy(enum usb_phy_type type);
222 extern struct usb_phy *devm_usb_get_phy(struct device *dev,
224 extern struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev,
226 extern struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
228 extern void usb_put_phy(struct usb_phy *);
229 extern void devm_usb_put_phy(struct device *dev, struct usb_phy *x);
230 extern void usb_phy_set_event(struct usb_phy *x, unsigned long event);
231 extern void usb_phy_set_charger_current(struct usb_phy *usb_phy,
233 extern void usb_phy_get_charger_current(struct usb_phy *usb_phy,
235 extern void usb_phy_set_charger_state(struct usb_phy *usb_phy,
238 static inline struct usb_phy *usb_get_phy(enum usb_phy_type type) in usb_get_phy()
243 static inline struct usb_phy *devm_usb_get_phy(struct device *dev, in devm_usb_get_phy()
249 static inline struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev, in devm_usb_get_phy_by_phandle()
255 static inline struct usb_phy *devm_usb_get_phy_by_node(struct device *dev, in devm_usb_get_phy_by_node()
261 static inline void usb_put_phy(struct usb_phy *x) in usb_put_phy()
265 static inline void devm_usb_put_phy(struct device *dev, struct usb_phy *x) in devm_usb_put_phy()
269 static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event) in usb_phy_set_event()
273 static inline void usb_phy_set_charger_current(struct usb_phy *usb_phy, in usb_phy_set_charger_current() argument
278 static inline void usb_phy_get_charger_current(struct usb_phy *usb_phy, in usb_phy_get_charger_current() argument
284 static inline void usb_phy_set_charger_state(struct usb_phy *usb_phy, in usb_phy_set_charger_state() argument
291 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power()
305 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend()
314 usb_phy_set_wakeup(struct usb_phy *x, bool enabled) in usb_phy_set_wakeup()
323 usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_connect()
332 usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_disconnect()
342 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier()
348 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier()