Lines Matching refs:cphy
92 static int vsc8211_reset(struct cphy *cphy, int wait) in vsc8211_reset() argument
94 return t3_phy_reset(cphy, MDIO_DEVAD_NONE, 0); in vsc8211_reset()
97 static int vsc8211_intr_enable(struct cphy *cphy) in vsc8211_intr_enable() argument
99 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, in vsc8211_intr_enable()
103 static int vsc8211_intr_disable(struct cphy *cphy) in vsc8211_intr_disable() argument
105 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, 0); in vsc8211_intr_disable()
108 static int vsc8211_intr_clear(struct cphy *cphy) in vsc8211_intr_clear() argument
113 return t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_STATUS, &val); in vsc8211_intr_clear()
116 static int vsc8211_autoneg_enable(struct cphy *cphy) in vsc8211_autoneg_enable() argument
118 return t3_mdio_change_bits(cphy, MDIO_DEVAD_NONE, MII_BMCR, in vsc8211_autoneg_enable()
123 static int vsc8211_autoneg_restart(struct cphy *cphy) in vsc8211_autoneg_restart() argument
125 return t3_mdio_change_bits(cphy, MDIO_DEVAD_NONE, MII_BMCR, in vsc8211_autoneg_restart()
130 static int vsc8211_get_link_status(struct cphy *cphy, int *link_ok, in vsc8211_get_link_status() argument
136 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); in vsc8211_get_link_status()
138 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, &status); in vsc8211_get_link_status()
148 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, in vsc8211_get_link_status()
163 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_AUX_CTRL_STAT, in vsc8211_get_link_status()
178 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA, in vsc8211_get_link_status()
181 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, in vsc8211_get_link_status()
206 static int vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok, in vsc8211_get_link_status_fiber() argument
212 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); in vsc8211_get_link_status_fiber()
214 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, &status); in vsc8211_get_link_status_fiber()
224 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, in vsc8211_get_link_status_fiber()
239 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA, &lpa); in vsc8211_get_link_status_fiber()
241 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_ADVERTISE, in vsc8211_get_link_status_fiber()
278 static int vsc8211_set_automdi(struct cphy *phy, int enable) in vsc8211_set_automdi()
305 int vsc8211_set_speed_duplex(struct cphy *phy, int speed, int duplex) in vsc8211_set_speed_duplex()
316 static int vsc8211_power_down(struct cphy *cphy, int enable) in vsc8211_power_down() argument
318 return t3_mdio_change_bits(cphy, 0, MII_BMCR, BMCR_PDOWN, in vsc8211_power_down()
322 static int vsc8211_intr_handler(struct cphy *cphy) in vsc8211_intr_handler() argument
327 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_STATUS, &cause); in vsc8211_intr_handler()
367 int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter, in t3_vsc8211_phy_prep()