Lines Matching refs:reg_phy
3653 fep->reg_phy = devm_regulator_get_optional(&pdev->dev, "phy"); in fec_probe()
3654 if (!IS_ERR(fep->reg_phy)) { in fec_probe()
3655 ret = regulator_enable(fep->reg_phy); in fec_probe()
3662 if (PTR_ERR(fep->reg_phy) == -EPROBE_DEFER) { in fec_probe()
3666 fep->reg_phy = NULL; in fec_probe()
3742 if (fep->reg_phy) in fec_probe()
3743 regulator_disable(fep->reg_phy); in fec_probe()
3779 if (fep->reg_phy) in fec_drv_remove()
3780 regulator_disable(fep->reg_phy); in fec_drv_remove()
3816 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) in fec_suspend()
3817 regulator_disable(fep->reg_phy); in fec_suspend()
3822 if (fep->clk_enet_out || fep->reg_phy) in fec_suspend()
3835 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) { in fec_resume()
3836 ret = regulator_enable(fep->reg_phy); in fec_resume()
3870 if (fep->reg_phy) in fec_resume()
3871 regulator_disable(fep->reg_phy); in fec_resume()