Lines Matching refs:x

70 	int (*read)(struct usb_phy *x, u32 reg);
71 int (*write)(struct usb_phy *x, u32 val, u32 reg);
99 int (*init)(struct usb_phy *x);
100 void (*shutdown)(struct usb_phy *x);
103 int (*set_vbus)(struct usb_phy *x, int on);
106 int (*set_power)(struct usb_phy *x,
110 int (*set_suspend)(struct usb_phy *x,
118 int (*set_wakeup)(struct usb_phy *x, bool enabled);
121 int (*notify_connect)(struct usb_phy *x,
123 int (*notify_disconnect)(struct usb_phy *x,
149 static inline int usb_phy_io_read(struct usb_phy *x, u32 reg) in usb_phy_io_read() argument
151 if (x && x->io_ops && x->io_ops->read) in usb_phy_io_read()
152 return x->io_ops->read(x, 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() argument
159 if (x && x->io_ops && x->io_ops->write) in usb_phy_io_write()
160 return x->io_ops->write(x, val, reg); in usb_phy_io_write()
166 usb_phy_init(struct usb_phy *x) in usb_phy_init() argument
168 if (x && x->init) in usb_phy_init()
169 return x->init(x); in usb_phy_init()
175 usb_phy_shutdown(struct usb_phy *x) in usb_phy_shutdown() argument
177 if (x && x->shutdown) in usb_phy_shutdown()
178 x->shutdown(x); in usb_phy_shutdown()
182 usb_phy_vbus_on(struct usb_phy *x) in usb_phy_vbus_on() argument
184 if (!x || !x->set_vbus) in usb_phy_vbus_on()
187 return x->set_vbus(x, true); in usb_phy_vbus_on()
191 usb_phy_vbus_off(struct usb_phy *x) in usb_phy_vbus_off() argument
193 if (!x || !x->set_vbus) in usb_phy_vbus_off()
196 return x->set_vbus(x, false); in usb_phy_vbus_off()
209 extern void devm_usb_put_phy(struct device *dev, struct usb_phy *x);
212 extern void usb_phy_set_event(struct usb_phy *x, unsigned long event);
241 static inline void usb_put_phy(struct usb_phy *x) in usb_put_phy() argument
245 static inline void devm_usb_put_phy(struct device *dev, struct usb_phy *x) in devm_usb_put_phy() argument
255 static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event) in usb_phy_set_event() argument
261 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power() argument
263 if (x && x->set_power) in usb_phy_set_power()
264 return x->set_power(x, mA); in usb_phy_set_power()
270 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend() argument
272 if (x && x->set_suspend != NULL) in usb_phy_set_suspend()
273 return x->set_suspend(x, suspend); in usb_phy_set_suspend()
279 usb_phy_set_wakeup(struct usb_phy *x, bool enabled) in usb_phy_set_wakeup() argument
281 if (x && x->set_wakeup) in usb_phy_set_wakeup()
282 return x->set_wakeup(x, enabled); in usb_phy_set_wakeup()
288 usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_connect() argument
290 if (x && x->notify_connect) in usb_phy_notify_connect()
291 return x->notify_connect(x, speed); in usb_phy_notify_connect()
297 usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed) in usb_phy_notify_disconnect() argument
299 if (x && x->notify_disconnect) in usb_phy_notify_disconnect()
300 return x->notify_disconnect(x, speed); in usb_phy_notify_disconnect()
307 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier() argument
309 return atomic_notifier_chain_register(&x->notifier, nb); in usb_register_notifier()
313 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier() argument
315 atomic_notifier_chain_unregister(&x->notifier, nb); in usb_unregister_notifier()