Lines Matching refs:usb_phy

66 struct usb_phy;
73 int (*read)(struct usb_phy *x, u32 reg);
74 int (*write)(struct usb_phy *x, u32 val, u32 reg);
88 struct usb_phy { struct
126 int (*init)(struct usb_phy *x); argument
127 void (*shutdown)(struct usb_phy *x); argument
130 int (*set_vbus)(struct usb_phy *x, int on); argument
133 int (*set_power)(struct usb_phy *x, argument
137 int (*set_suspend)(struct usb_phy *x, argument
145 int (*set_wakeup)(struct usb_phy *x, bool enabled); argument
148 int (*notify_connect)(struct usb_phy *x, argument
150 int (*notify_disconnect)(struct usb_phy *x, argument
157 enum usb_charger_type (*charger_detect)(struct usb_phy *x); argument
161 extern int usb_add_phy(struct usb_phy *, enum usb_phy_type type);
162 extern int usb_add_phy_dev(struct usb_phy *);
163 extern void usb_remove_phy(struct usb_phy *);
166 static inline int usb_phy_io_read(struct usb_phy *x, u32 reg) in usb_phy_io_read()
174 static inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg) in usb_phy_io_write()
183 usb_phy_init(struct usb_phy *x) in usb_phy_init()
192 usb_phy_shutdown(struct usb_phy *x) in usb_phy_shutdown()
199 usb_phy_vbus_on(struct usb_phy *x) in usb_phy_vbus_on()
208 usb_phy_vbus_off(struct usb_phy *x) in usb_phy_vbus_off()
218 extern struct usb_phy *usb_get_phy(enum usb_phy_type type);
219 extern struct usb_phy *devm_usb_get_phy(struct device *dev,
221 extern struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev,
223 extern struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
225 extern void usb_put_phy(struct usb_phy *);
226 extern void usb_phy_set_event(struct usb_phy *x, unsigned long event);
227 extern void usb_phy_set_charger_current(struct usb_phy *usb_phy,
229 extern void usb_phy_get_charger_current(struct usb_phy *usb_phy,
231 extern void usb_phy_set_charger_state(struct usb_phy *usb_phy,
234 static inline struct usb_phy *usb_get_phy(enum usb_phy_type type) in usb_get_phy()
239 static inline struct usb_phy *devm_usb_get_phy(struct device *dev, in devm_usb_get_phy()
245 static inline struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev, in devm_usb_get_phy_by_phandle()
251 static inline struct usb_phy *devm_usb_get_phy_by_node(struct device *dev, in devm_usb_get_phy_by_node()
257 static inline void usb_put_phy(struct usb_phy *x) in usb_put_phy()
261 static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event) in usb_phy_set_event()
265 static inline void usb_phy_set_charger_current(struct usb_phy *usb_phy, in usb_phy_set_charger_current() argument
270 static inline void usb_phy_get_charger_current(struct usb_phy *usb_phy, in usb_phy_get_charger_current() argument
276 static inline void usb_phy_set_charger_state(struct usb_phy *usb_phy, in usb_phy_set_charger_state() argument
283 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power()
297 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend()
306 usb_phy_set_wakeup(struct usb_phy *x, bool enabled) in usb_phy_set_wakeup()
315 usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_connect()
324 usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_disconnect()
334 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier()
340 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier()