Lines Matching full: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 devm_usb_put_phy(struct device *dev, struct usb_phy *x);
227 extern void usb_phy_set_event(struct usb_phy *x, unsigned long event);
228 extern void usb_phy_set_charger_current(struct usb_phy *usb_phy,
230 extern void usb_phy_get_charger_current(struct usb_phy *usb_phy,
232 extern void usb_phy_set_charger_state(struct usb_phy *usb_phy,
235 static inline struct usb_phy *usb_get_phy(enum usb_phy_type type) in usb_get_phy()
240 static inline struct usb_phy *devm_usb_get_phy(struct device *dev, in devm_usb_get_phy()
246 static inline struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev, in devm_usb_get_phy_by_phandle()
252 static inline struct usb_phy *devm_usb_get_phy_by_node(struct device *dev, in devm_usb_get_phy_by_node()
258 static inline void usb_put_phy(struct usb_phy *x) in usb_put_phy()
262 static inline void devm_usb_put_phy(struct device *dev, struct usb_phy *x) in devm_usb_put_phy()
266 static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event) in usb_phy_set_event()
270 static inline void usb_phy_set_charger_current(struct usb_phy *usb_phy, in usb_phy_set_charger_current() argument
275 static inline void usb_phy_get_charger_current(struct usb_phy *usb_phy, in usb_phy_get_charger_current() argument
281 static inline void usb_phy_set_charger_state(struct usb_phy *usb_phy, in usb_phy_set_charger_state() argument
288 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power()
302 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend()
311 usb_phy_set_wakeup(struct usb_phy *x, bool enabled) in usb_phy_set_wakeup()
320 usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_connect()
329 usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_disconnect()
339 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier()
345 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier()