Lines Matching refs:reg_phy
4462 fep->reg_phy = devm_regulator_get_optional(&pdev->dev, "phy"); in fec_probe()
4463 if (!IS_ERR(fep->reg_phy)) { in fec_probe()
4464 ret = regulator_enable(fep->reg_phy); in fec_probe()
4471 if (PTR_ERR(fep->reg_phy) == -EPROBE_DEFER) { in fec_probe()
4475 fep->reg_phy = NULL; in fec_probe()
4554 if (fep->reg_phy) in fec_probe()
4555 regulator_disable(fep->reg_phy); in fec_probe()
4595 if (fep->reg_phy) in fec_drv_remove()
4596 regulator_disable(fep->reg_phy); in fec_drv_remove()
4657 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) in fec_suspend()
4658 regulator_disable(fep->reg_phy); in fec_suspend()
4663 if (fep->clk_enet_out || fep->reg_phy) in fec_suspend()
4676 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) { in fec_resume()
4677 ret = regulator_enable(fep->reg_phy); in fec_resume()
4719 if (fep->reg_phy) in fec_resume()
4720 regulator_disable(fep->reg_phy); in fec_resume()