Lines Matching refs:phy

92 #define to_mxs_phy(p) container_of((p), struct mxs_phy, phy)
157 struct usb_phy phy; member
186 void __iomem *base = mxs_phy->phy.io_priv; in mxs_phy_hw_init()
240 void __iomem *base = mxs_phy->phy.io_priv; in __mxs_phy_disconnect_line()
272 void __iomem *base = mxs_phy->phy.io_priv; in mxs_phy_is_otg_host()
303 static int mxs_phy_init(struct usb_phy *phy) in mxs_phy_init() argument
306 struct mxs_phy *mxs_phy = to_mxs_phy(phy); in mxs_phy_init()
316 static void mxs_phy_shutdown(struct usb_phy *phy) in mxs_phy_shutdown() argument
318 struct mxs_phy *mxs_phy = to_mxs_phy(phy); in mxs_phy_shutdown()
328 writel(value, phy->io_priv + HW_USBPHY_CTRL_CLR); in mxs_phy_shutdown()
329 writel(0xffffffff, phy->io_priv + HW_USBPHY_PWD); in mxs_phy_shutdown()
332 phy->io_priv + HW_USBPHY_CTRL_SET); in mxs_phy_shutdown()
420 static int mxs_phy_on_connect(struct usb_phy *phy, in mxs_phy_on_connect() argument
423 dev_dbg(phy->dev, "%s device has connected\n", in mxs_phy_on_connect()
428 phy->io_priv + HW_USBPHY_CTRL_SET); in mxs_phy_on_connect()
433 static int mxs_phy_on_disconnect(struct usb_phy *phy, in mxs_phy_on_disconnect() argument
436 dev_dbg(phy->dev, "%s device has disconnected\n", in mxs_phy_on_disconnect()
440 if (readl(phy->io_priv + HW_USBPHY_CTRL) & in mxs_phy_on_disconnect()
443 phy->io_priv + HW_USBPHY_CTRL_CLR); in mxs_phy_on_disconnect()
491 mxs_phy->phy.io_priv = base; in mxs_phy_probe()
492 mxs_phy->phy.dev = &pdev->dev; in mxs_phy_probe()
493 mxs_phy->phy.label = DRIVER_NAME; in mxs_phy_probe()
494 mxs_phy->phy.init = mxs_phy_init; in mxs_phy_probe()
495 mxs_phy->phy.shutdown = mxs_phy_shutdown; in mxs_phy_probe()
496 mxs_phy->phy.set_suspend = mxs_phy_suspend; in mxs_phy_probe()
497 mxs_phy->phy.notify_connect = mxs_phy_on_connect; in mxs_phy_probe()
498 mxs_phy->phy.notify_disconnect = mxs_phy_on_disconnect; in mxs_phy_probe()
499 mxs_phy->phy.type = USB_PHY_TYPE_USB2; in mxs_phy_probe()
500 mxs_phy->phy.set_wakeup = mxs_phy_set_wakeup; in mxs_phy_probe()
509 ret = usb_add_phy_dev(&mxs_phy->phy); in mxs_phy_probe()
520 usb_remove_phy(&mxs_phy->phy); in mxs_phy_remove()