Lines Matching refs:k_phy
46 struct keystone_usbphy *k_phy = dev_get_drvdata(phy->dev); in keystone_usbphy_init() local
49 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_init()
50 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_init()
57 struct keystone_usbphy *k_phy = dev_get_drvdata(phy->dev); in keystone_usbphy_shutdown() local
60 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_shutdown()
61 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_shutdown()
68 struct keystone_usbphy *k_phy; in keystone_usbphy_probe() local
71 k_phy = devm_kzalloc(dev, sizeof(*k_phy), GFP_KERNEL); in keystone_usbphy_probe()
72 if (!k_phy) in keystone_usbphy_probe()
75 k_phy->phy_ctrl = devm_platform_ioremap_resource(pdev, 0); in keystone_usbphy_probe()
76 if (IS_ERR(k_phy->phy_ctrl)) in keystone_usbphy_probe()
77 return PTR_ERR(k_phy->phy_ctrl); in keystone_usbphy_probe()
79 ret = usb_phy_gen_create_phy(dev, &k_phy->usb_phy_gen); in keystone_usbphy_probe()
83 k_phy->usb_phy_gen.phy.init = keystone_usbphy_init; in keystone_usbphy_probe()
84 k_phy->usb_phy_gen.phy.shutdown = keystone_usbphy_shutdown; in keystone_usbphy_probe()
86 platform_set_drvdata(pdev, k_phy); in keystone_usbphy_probe()
88 return usb_add_phy_dev(&k_phy->usb_phy_gen.phy); in keystone_usbphy_probe()
93 struct keystone_usbphy *k_phy = platform_get_drvdata(pdev); in keystone_usbphy_remove() local
95 usb_remove_phy(&k_phy->usb_phy_gen.phy); in keystone_usbphy_remove()