Lines Matching refs:reg_phy
3525 fep->reg_phy = devm_regulator_get_optional(&pdev->dev, "phy"); in fec_probe()
3526 if (!IS_ERR(fep->reg_phy)) { in fec_probe()
3527 ret = regulator_enable(fep->reg_phy); in fec_probe()
3534 if (PTR_ERR(fep->reg_phy) == -EPROBE_DEFER) { in fec_probe()
3538 fep->reg_phy = NULL; in fec_probe()
3610 if (fep->reg_phy) in fec_probe()
3611 regulator_disable(fep->reg_phy); in fec_probe()
3649 if (fep->reg_phy) in fec_drv_remove()
3650 regulator_disable(fep->reg_phy); in fec_drv_remove()
3686 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) in fec_suspend()
3687 regulator_disable(fep->reg_phy); in fec_suspend()
3692 if (fep->clk_enet_out || fep->reg_phy) in fec_suspend()
3706 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) { in fec_resume()
3707 ret = regulator_enable(fep->reg_phy); in fec_resume()
3741 if (fep->reg_phy) in fec_resume()
3742 regulator_disable(fep->reg_phy); in fec_resume()