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_port_status)(struct usb_phy *x, int port, argument
152 int (*notify_connect)(struct usb_phy *x, argument
154 int (*notify_disconnect)(struct usb_phy *x, argument
161 enum usb_charger_type (*charger_detect)(struct usb_phy *x); argument
165 extern int usb_add_phy(struct usb_phy *, enum usb_phy_type type);
166 extern int usb_add_phy_dev(struct usb_phy *);
167 extern void usb_remove_phy(struct usb_phy *);
170 static inline int usb_phy_io_read(struct usb_phy *x, u32 reg) in usb_phy_io_read()
178 static inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg) in usb_phy_io_write()
187 usb_phy_init(struct usb_phy *x) in usb_phy_init()
196 usb_phy_shutdown(struct usb_phy *x) in usb_phy_shutdown()
203 usb_phy_vbus_on(struct usb_phy *x) in usb_phy_vbus_on()
212 usb_phy_vbus_off(struct usb_phy *x) in usb_phy_vbus_off()
222 extern struct usb_phy *usb_get_phy(enum usb_phy_type type);
223 extern struct usb_phy *devm_usb_get_phy(struct device *dev,
225 extern struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev,
227 extern struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
229 extern void usb_put_phy(struct usb_phy *);
230 extern void devm_usb_put_phy(struct device *dev, struct usb_phy *x);
231 extern void usb_phy_set_event(struct usb_phy *x, unsigned long event);
232 extern void usb_phy_set_charger_current(struct usb_phy *usb_phy,
234 extern void usb_phy_get_charger_current(struct usb_phy *usb_phy,
236 extern void usb_phy_set_charger_state(struct usb_phy *usb_phy,
239 static inline struct usb_phy *usb_get_phy(enum usb_phy_type type) in usb_get_phy()
244 static inline struct usb_phy *devm_usb_get_phy(struct device *dev, in devm_usb_get_phy()
250 static inline struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev, in devm_usb_get_phy_by_phandle()
256 static inline struct usb_phy *devm_usb_get_phy_by_node(struct device *dev, in devm_usb_get_phy_by_node()
262 static inline void usb_put_phy(struct usb_phy *x) in usb_put_phy()
266 static inline void devm_usb_put_phy(struct device *dev, struct usb_phy *x) in devm_usb_put_phy()
270 static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event) in usb_phy_set_event()
274 static inline void usb_phy_set_charger_current(struct usb_phy *usb_phy, in usb_phy_set_charger_current() argument
279 static inline void usb_phy_get_charger_current(struct usb_phy *usb_phy, in usb_phy_get_charger_current() argument
285 static inline void usb_phy_set_charger_state(struct usb_phy *usb_phy, in usb_phy_set_charger_state() argument
292 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power()
306 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend()
315 usb_phy_set_wakeup(struct usb_phy *x, bool enabled) in usb_phy_set_wakeup()
324 usb_phy_notify_port_status(struct usb_phy *x, int port, u16 portstatus, u16 portchange) in usb_phy_notify_port_status()
333 usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_connect()
342 usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_disconnect()
352 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier()
358 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier()