Lines Matching refs:x

73 	int (*read)(struct usb_phy *x, u32 reg);
74 int (*write)(struct usb_phy *x, u32 val, u32 reg);
126 int (*init)(struct usb_phy *x);
127 void (*shutdown)(struct usb_phy *x);
130 int (*set_vbus)(struct usb_phy *x, int on);
133 int (*set_power)(struct usb_phy *x,
137 int (*set_suspend)(struct usb_phy *x,
145 int (*set_wakeup)(struct usb_phy *x, bool enabled);
148 int (*notify_connect)(struct usb_phy *x,
150 int (*notify_disconnect)(struct usb_phy *x,
157 enum usb_charger_type (*charger_detect)(struct usb_phy *x);
166 static inline int usb_phy_io_read(struct usb_phy *x, u32 reg) in usb_phy_io_read() argument
168 if (x && x->io_ops && x->io_ops->read) in usb_phy_io_read()
169 return x->io_ops->read(x, 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() argument
176 if (x && x->io_ops && x->io_ops->write) in usb_phy_io_write()
177 return x->io_ops->write(x, val, reg); in usb_phy_io_write()
183 usb_phy_init(struct usb_phy *x) in usb_phy_init() argument
185 if (x && x->init) in usb_phy_init()
186 return x->init(x); in usb_phy_init()
192 usb_phy_shutdown(struct usb_phy *x) in usb_phy_shutdown() argument
194 if (x && x->shutdown) in usb_phy_shutdown()
195 x->shutdown(x); in usb_phy_shutdown()
199 usb_phy_vbus_on(struct usb_phy *x) in usb_phy_vbus_on() argument
201 if (!x || !x->set_vbus) in usb_phy_vbus_on()
204 return x->set_vbus(x, true); in usb_phy_vbus_on()
208 usb_phy_vbus_off(struct usb_phy *x) in usb_phy_vbus_off() argument
210 if (!x || !x->set_vbus) in usb_phy_vbus_off()
213 return x->set_vbus(x, false); in usb_phy_vbus_off()
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);
258 static inline void usb_put_phy(struct usb_phy *x) in usb_put_phy() argument
262 static inline void devm_usb_put_phy(struct device *dev, struct usb_phy *x) in devm_usb_put_phy() argument
266 static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event) in usb_phy_set_event() argument
288 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power() argument
290 if (!x) in usb_phy_set_power()
293 usb_phy_set_charger_current(x, mA); in usb_phy_set_power()
295 if (x->set_power) in usb_phy_set_power()
296 return x->set_power(x, mA); in usb_phy_set_power()
302 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend() argument
304 if (x && x->set_suspend != NULL) in usb_phy_set_suspend()
305 return x->set_suspend(x, suspend); in usb_phy_set_suspend()
311 usb_phy_set_wakeup(struct usb_phy *x, bool enabled) in usb_phy_set_wakeup() argument
313 if (x && x->set_wakeup) in usb_phy_set_wakeup()
314 return x->set_wakeup(x, 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() argument
322 if (x && x->notify_connect) in usb_phy_notify_connect()
323 return x->notify_connect(x, 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() argument
331 if (x && x->notify_disconnect) in usb_phy_notify_disconnect()
332 return x->notify_disconnect(x, speed); in usb_phy_notify_disconnect()
339 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier() argument
341 return atomic_notifier_chain_register(&x->notifier, nb); in usb_register_notifier()
345 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier() argument
347 atomic_notifier_chain_unregister(&x->notifier, nb); in usb_unregister_notifier()