Lines Matching refs:reg_phy
3308 fep->reg_phy = devm_regulator_get(&pdev->dev, "phy"); in fec_probe()
3309 if (!IS_ERR(fep->reg_phy)) { in fec_probe()
3310 ret = regulator_enable(fep->reg_phy); in fec_probe()
3317 fep->reg_phy = NULL; in fec_probe()
3374 if (fep->reg_phy) in fec_probe()
3375 regulator_disable(fep->reg_phy); in fec_probe()
3397 if (fep->reg_phy) in fec_drv_remove()
3398 regulator_disable(fep->reg_phy); in fec_drv_remove()
3428 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) in fec_suspend()
3429 regulator_disable(fep->reg_phy); in fec_suspend()
3434 if (fep->clk_enet_out || fep->reg_phy) in fec_suspend()
3448 if (fep->reg_phy && !(fep->wol_flag & FEC_WOL_FLAG_ENABLE)) { in fec_resume()
3449 ret = regulator_enable(fep->reg_phy); in fec_resume()
3483 if (fep->reg_phy) in fec_resume()
3484 regulator_disable(fep->reg_phy); in fec_resume()