Lines Matching refs:phy
25 static int ipq4019_ss_phy_power_off(struct phy *_phy) in ipq4019_ss_phy_power_off()
27 struct ipq4019_usb_phy *phy = dev_get_priv(_phy->dev); in ipq4019_ss_phy_power_off() local
29 reset_assert(&phy->por_rst); in ipq4019_ss_phy_power_off()
35 static int ipq4019_ss_phy_power_on(struct phy *_phy) in ipq4019_ss_phy_power_on()
37 struct ipq4019_usb_phy *phy = dev_get_priv(_phy->dev); in ipq4019_ss_phy_power_on() local
41 reset_deassert(&phy->por_rst); in ipq4019_ss_phy_power_on()
53 struct ipq4019_usb_phy *phy = dev_get_priv(dev); in ipq4019_usb_ss_phy_probe() local
56 phy->base = dev_read_addr(dev); in ipq4019_usb_ss_phy_probe()
57 if (phy->base == FDT_ADDR_T_NONE) in ipq4019_usb_ss_phy_probe()
60 ret = reset_get_by_name(dev, "por_rst", &phy->por_rst); in ipq4019_usb_ss_phy_probe()
81 static int ipq4019_hs_phy_power_off(struct phy *_phy) in ipq4019_hs_phy_power_off()
83 struct ipq4019_usb_phy *phy = dev_get_priv(_phy->dev); in ipq4019_hs_phy_power_off() local
85 reset_assert(&phy->por_rst); in ipq4019_hs_phy_power_off()
88 reset_assert(&phy->srif_rst); in ipq4019_hs_phy_power_off()
94 static int ipq4019_hs_phy_power_on(struct phy *_phy) in ipq4019_hs_phy_power_on()
96 struct ipq4019_usb_phy *phy = dev_get_priv(_phy->dev); in ipq4019_hs_phy_power_on() local
100 reset_deassert(&phy->srif_rst); in ipq4019_hs_phy_power_on()
103 reset_deassert(&phy->por_rst); in ipq4019_hs_phy_power_on()
115 struct ipq4019_usb_phy *phy = dev_get_priv(dev); in ipq4019_usb_hs_phy_probe() local
118 phy->base = dev_read_addr(dev); in ipq4019_usb_hs_phy_probe()
119 if (phy->base == FDT_ADDR_T_NONE) in ipq4019_usb_hs_phy_probe()
122 ret = reset_get_by_name(dev, "por_rst", &phy->por_rst); in ipq4019_usb_hs_phy_probe()
126 ret = reset_get_by_name(dev, "srif_rst", &phy->srif_rst); in ipq4019_usb_hs_phy_probe()