Lines Matching refs:x
52 int (*read)(struct usb_phy *x, u32 reg);
53 int (*write)(struct usb_phy *x, u32 val, u32 reg);
109 int (*init)(struct usb_phy *x);
110 void (*shutdown)(struct usb_phy *x);
113 int (*set_power)(struct usb_phy *x,
117 int (*set_suspend)(struct usb_phy *x,
141 static inline int usb_phy_io_read(struct usb_phy *x, u32 reg) in usb_phy_io_read() argument
143 if (x->io_ops && x->io_ops->read) in usb_phy_io_read()
144 return x->io_ops->read(x, reg); in usb_phy_io_read()
149 static inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg) in usb_phy_io_write() argument
151 if (x->io_ops && x->io_ops->write) in usb_phy_io_write()
152 return x->io_ops->write(x, val, reg); in usb_phy_io_write()
158 usb_phy_init(struct usb_phy *x) in usb_phy_init() argument
160 if (x->init) in usb_phy_init()
161 return x->init(x); in usb_phy_init()
167 usb_phy_shutdown(struct usb_phy *x) in usb_phy_shutdown() argument
169 if (x->shutdown) in usb_phy_shutdown()
170 x->shutdown(x); in usb_phy_shutdown()
184 static inline void usb_put_transceiver(struct usb_phy *x) in usb_put_transceiver() argument
237 usb_phy_set_power(struct usb_phy *x, unsigned mA) in usb_phy_set_power() argument
239 if (x && x->set_power) in usb_phy_set_power()
240 return x->set_power(x, mA); in usb_phy_set_power()
246 usb_phy_set_suspend(struct usb_phy *x, int suspend) in usb_phy_set_suspend() argument
248 if (x->set_suspend != NULL) in usb_phy_set_suspend()
249 return x->set_suspend(x, suspend); in usb_phy_set_suspend()
265 usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_register_notifier() argument
267 return atomic_notifier_chain_register(&x->notifier, nb); in usb_register_notifier()
271 usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb) in usb_unregister_notifier() argument
273 atomic_notifier_chain_unregister(&x->notifier, nb); in usb_unregister_notifier()