Lines Matching refs:phydev
30 struct phy_device *phydev = dev->phydev; in linkstate_get_sqi() local
33 if (!phydev) in linkstate_get_sqi()
36 mutex_lock(&phydev->lock); in linkstate_get_sqi()
37 if (!phydev->drv || !phydev->drv->get_sqi) in linkstate_get_sqi()
40 ret = phydev->drv->get_sqi(phydev); in linkstate_get_sqi()
41 mutex_unlock(&phydev->lock); in linkstate_get_sqi()
48 struct phy_device *phydev = dev->phydev; in linkstate_get_sqi_max() local
51 if (!phydev) in linkstate_get_sqi_max()
54 mutex_lock(&phydev->lock); in linkstate_get_sqi_max()
55 if (!phydev->drv || !phydev->drv->get_sqi_max) in linkstate_get_sqi_max()
58 ret = phydev->drv->get_sqi_max(phydev); in linkstate_get_sqi_max()
59 mutex_unlock(&phydev->lock); in linkstate_get_sqi_max()