Lines Matching refs:usb_phy

63 struct usb_phy;
70 int (*read)(struct usb_phy *x, u32 reg);
71 int (*write)(struct usb_phy *x, u32 val, u32 reg);
74 struct usb_phy { struct
99 int (*init)(struct usb_phy *x); argument
100 void (*shutdown)(struct usb_phy *x); argument
103 int (*set_vbus)(struct usb_phy *x, int on); argument
106 int (*set_power)(struct usb_phy *x, argument
110 int (*set_suspend)(struct usb_phy *x, argument
118 int (*set_wakeup)(struct usb_phy *x, bool enabled); argument
121 int (*notify_connect)(struct usb_phy *x, argument
123 int (*notify_disconnect)(struct usb_phy *x, argument
139 struct usb_phy *phy;
144 extern int usb_add_phy(struct usb_phy *, enum usb_phy_type type);
145 extern int usb_add_phy_dev(struct usb_phy *);
146 extern void usb_remove_phy(struct usb_phy *);
149 static inline int usb_phy_io_read(struct usb_phy *x, u32 reg) in usb_phy_io_read()
157 static inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg) in usb_phy_io_write()
166 usb_phy_init(struct usb_phy *x) in usb_phy_init()
175 usb_phy_shutdown(struct usb_phy *x) in usb_phy_shutdown()
182 usb_phy_vbus_on(struct usb_phy *x) in usb_phy_vbus_on()
191 usb_phy_vbus_off(struct usb_phy *x) in usb_phy_vbus_off()
201 extern struct usb_phy *usb_get_phy(enum usb_phy_type type);
202 extern struct usb_phy *devm_usb_get_phy(struct device *dev,
204 extern struct usb_phy *usb_get_phy_dev(struct device *dev, u8 index);
205 extern struct usb_phy *devm_usb_get_phy_dev(struct device *dev, u8 index);
206 extern struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev,
208 extern struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
210 extern void usb_put_phy(struct usb_phy *);
211 extern void devm_usb_put_phy(struct device *dev, struct usb_phy *x);
214 extern void usb_phy_set_event(struct usb_phy *x, unsigned long event);
216 static inline struct usb_phy *usb_get_phy(enum usb_phy_type type) in usb_get_phy()
221 static inline struct usb_phy *devm_usb_get_phy(struct device *dev, in devm_usb_get_phy()
227 static inline struct usb_phy *usb_get_phy_dev(struct device *dev, u8 index) in usb_get_phy_dev()
232 static inline struct usb_phy *devm_usb_get_phy_dev(struct device *dev, u8 index) in devm_usb_get_phy_dev()
237 static inline struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev, in devm_usb_get_phy_by_phandle()
243 static inline struct usb_phy *devm_usb_get_phy_by_node(struct device *dev, in devm_usb_get_phy_by_node()
249 static inline void usb_put_phy(struct usb_phy *x) in usb_put_phy()
253 static inline void devm_usb_put_phy(struct device *dev, struct usb_phy *x) in devm_usb_put_phy()
263 static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event) in usb_phy_set_event()
269 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power()
278 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend()
287 usb_phy_set_wakeup(struct usb_phy *x, bool enabled) in usb_phy_set_wakeup()
296 usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_connect()
305 usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_disconnect()
315 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier()
321 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier()