Lines Matching refs:reg_phy
3489 fep->reg_phy = devm_regulator_get(&pdev->dev, "phy"); in fec_probe()
3490 if (!IS_ERR(fep->reg_phy)) { in fec_probe()
3491 ret = regulator_enable(fep->reg_phy); in fec_probe()
3499 if (PTR_ERR(fep->reg_phy) == -EPROBE_DEFER) { in fec_probe()
3503 fep->reg_phy = NULL; in fec_probe()
3575 if (fep->reg_phy) in fec_probe()
3576 regulator_disable(fep->reg_phy); in fec_probe()
3606 if (fep->reg_phy) in fec_drv_remove()
3607 regulator_disable(fep->reg_phy); in fec_drv_remove()
3639 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) in fec_suspend()
3640 regulator_disable(fep->reg_phy); in fec_suspend()
3645 if (fep->clk_enet_out || fep->reg_phy) in fec_suspend()
3659 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) { in fec_resume()
3660 ret = regulator_enable(fep->reg_phy); in fec_resume()
3694 if (fep->reg_phy) in fec_resume()
3695 regulator_disable(fep->reg_phy); in fec_resume()