Lines Matching refs:phy
84 struct fdtbus_phy *phy = NULL; in fdtbus_phy_get_index() local
118 phy = kmem_alloc(sizeof(*phy), KM_SLEEP); in fdtbus_phy_get_index()
119 phy->phy_pc = pc; in fdtbus_phy_get_index()
120 phy->phy_priv = phy_priv; in fdtbus_phy_get_index()
133 return phy; in fdtbus_phy_get_index()
150 fdtbus_phy_put(struct fdtbus_phy *phy) in fdtbus_phy_put() argument
152 struct fdtbus_phy_controller *pc = phy->phy_pc; in fdtbus_phy_put()
154 pc->pc_funcs->release(pc->pc_dev, phy->phy_priv); in fdtbus_phy_put()
155 kmem_free(phy, sizeof(*phy)); in fdtbus_phy_put()
159 fdtbus_phy_device(struct fdtbus_phy *phy) in fdtbus_phy_device() argument
161 return phy->phy_pc->pc_dev; in fdtbus_phy_device()
165 fdtbus_phy_enable(struct fdtbus_phy *phy, bool enable) in fdtbus_phy_enable() argument
167 struct fdtbus_phy_controller *pc = phy->phy_pc; in fdtbus_phy_enable()
169 return pc->pc_funcs->enable(pc->pc_dev, phy->phy_priv, enable); in fdtbus_phy_enable()