Lines Matching refs:phy

92 #define to_mxs_phy(p) container_of((p), struct mxs_phy, phy)
162 struct usb_phy phy; member
191 void __iomem *base = mxs_phy->phy.io_priv; in mxs_phy_hw_init()
245 void __iomem *base = mxs_phy->phy.io_priv; in __mxs_phy_disconnect_line()
277 void __iomem *base = mxs_phy->phy.io_priv; in mxs_phy_is_otg_host()
308 static int mxs_phy_init(struct usb_phy *phy) in mxs_phy_init() argument
311 struct mxs_phy *mxs_phy = to_mxs_phy(phy); in mxs_phy_init()
321 static void mxs_phy_shutdown(struct usb_phy *phy) in mxs_phy_shutdown() argument
323 struct mxs_phy *mxs_phy = to_mxs_phy(phy); in mxs_phy_shutdown()
333 writel(value, phy->io_priv + HW_USBPHY_CTRL_CLR); in mxs_phy_shutdown()
334 writel(0xffffffff, phy->io_priv + HW_USBPHY_PWD); in mxs_phy_shutdown()
337 phy->io_priv + HW_USBPHY_CTRL_SET); in mxs_phy_shutdown()
425 static int mxs_phy_on_connect(struct usb_phy *phy, in mxs_phy_on_connect() argument
428 dev_dbg(phy->dev, "%s device has connected\n", in mxs_phy_on_connect()
433 phy->io_priv + HW_USBPHY_CTRL_SET); in mxs_phy_on_connect()
438 static int mxs_phy_on_disconnect(struct usb_phy *phy, in mxs_phy_on_disconnect() argument
441 dev_dbg(phy->dev, "%s device has disconnected\n", in mxs_phy_on_disconnect()
445 if (readl(phy->io_priv + HW_USBPHY_CTRL) & in mxs_phy_on_disconnect()
448 phy->io_priv + HW_USBPHY_CTRL_CLR); in mxs_phy_on_disconnect()
499 mxs_phy->phy.io_priv = base; in mxs_phy_probe()
500 mxs_phy->phy.dev = &pdev->dev; in mxs_phy_probe()
501 mxs_phy->phy.label = DRIVER_NAME; in mxs_phy_probe()
502 mxs_phy->phy.init = mxs_phy_init; in mxs_phy_probe()
503 mxs_phy->phy.shutdown = mxs_phy_shutdown; in mxs_phy_probe()
504 mxs_phy->phy.set_suspend = mxs_phy_suspend; in mxs_phy_probe()
505 mxs_phy->phy.notify_connect = mxs_phy_on_connect; in mxs_phy_probe()
506 mxs_phy->phy.notify_disconnect = mxs_phy_on_disconnect; in mxs_phy_probe()
507 mxs_phy->phy.type = USB_PHY_TYPE_USB2; in mxs_phy_probe()
508 mxs_phy->phy.set_wakeup = mxs_phy_set_wakeup; in mxs_phy_probe()
517 return usb_add_phy_dev(&mxs_phy->phy); in mxs_phy_probe()
524 usb_remove_phy(&mxs_phy->phy); in mxs_phy_remove()