Lines Matching refs:phy
77 static int tn1010_reset(struct cphy *phy, int wait)
79 int err = t3_phy_reset(phy, MDIO_DEV_PMA_PMD, wait);
84 static int tn1010_power_down(struct cphy *phy, int enable)
86 return t3_mdio_change_bits(phy, MDIO_DEV_PMA_PMD, MII_BMCR,
90 static int tn1010_autoneg_enable(struct cphy *phy)
94 err = tn1010_power_down(phy, 0);
96 err = t3_mdio_change_bits(phy, MDIO_DEV_ANEG, MII_BMCR, 0,
101 static int tn1010_autoneg_restart(struct cphy *phy)
105 err = tn1010_power_down(phy, 0);
107 err = t3_mdio_change_bits(phy, MDIO_DEV_ANEG, MII_BMCR, 0,
112 static int tn1010_advertise(struct cphy *phy, unsigned int advert)
124 err = mdio_write(phy, MDIO_DEV_ANEG, ANEG_ADVER, val);
129 return mdio_write(phy, MDIO_DEV_ANEG, ANEG_10G_CTRL, val |
133 static int tn1010_get_link_status(struct cphy *phy, int *link_state,
139 err = mdio_read(phy, MDIO_DEV_VEND1, TN1010_VEND1_STAT, &status);
151 err = mdio_read(phy, MDIO_DEV_ANEG, ANEG_LPA, &lpa);
153 err = mdio_read(phy, MDIO_DEV_ANEG, ANEG_ADVER,
178 static int tn1010_set_speed_duplex(struct cphy *phy, int speed, int duplex)
217 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &tn1010_ops, mdio_ops,