Lines Matching refs:phy
16 int tegra_xusb_phy_prepare(struct tegra_xusb_phy *phy) in tegra_xusb_phy_prepare() argument
18 if (phy && phy->ops && phy->ops->prepare) in tegra_xusb_phy_prepare()
19 return phy->ops->prepare(phy); in tegra_xusb_phy_prepare()
21 return phy ? -ENOSYS : -EINVAL; in tegra_xusb_phy_prepare()
24 int tegra_xusb_phy_enable(struct tegra_xusb_phy *phy) in tegra_xusb_phy_enable() argument
26 if (phy && phy->ops && phy->ops->enable) in tegra_xusb_phy_enable()
27 return phy->ops->enable(phy); in tegra_xusb_phy_enable()
29 return phy ? -ENOSYS : -EINVAL; in tegra_xusb_phy_enable()
32 int tegra_xusb_phy_disable(struct tegra_xusb_phy *phy) in tegra_xusb_phy_disable() argument
34 if (phy && phy->ops && phy->ops->disable) in tegra_xusb_phy_disable()
35 return phy->ops->disable(phy); in tegra_xusb_phy_disable()
37 return phy ? -ENOSYS : -EINVAL; in tegra_xusb_phy_disable()
40 int tegra_xusb_phy_unprepare(struct tegra_xusb_phy *phy) in tegra_xusb_phy_unprepare() argument
42 if (phy && phy->ops && phy->ops->unprepare) in tegra_xusb_phy_unprepare()
43 return phy->ops->unprepare(phy); in tegra_xusb_phy_unprepare()
45 return phy ? -ENOSYS : -EINVAL; in tegra_xusb_phy_unprepare()
50 struct tegra_xusb_phy *phy; in tegra_xusb_phy_get() local
54 phy = &padctl.socdata->phys[i]; in tegra_xusb_phy_get()
55 if (phy->type != type) in tegra_xusb_phy_get()
57 return phy; in tegra_xusb_phy_get()