Lines Matching refs:phy

1158 be_pal_gate(struct be_softc *sc, int phy)  in be_pal_gate()  argument
1167 if (phy == BE_PHY_INTERNAL) in be_pal_gate()
1175 be_tcvr_read_bit(struct be_softc *sc, int phy) in be_tcvr_read_bit() argument
1181 if (phy == BE_PHY_INTERNAL) { in be_tcvr_read_bit()
1203 be_tcvr_write_bit(struct be_softc *sc, int phy, int bit) in be_tcvr_write_bit() argument
1209 if (phy == BE_PHY_INTERNAL) { in be_tcvr_write_bit()
1223 be_mii_sendbits(struct be_softc *sc, int phy, u_int32_t data, int nbits) in be_mii_sendbits() argument
1228 be_tcvr_write_bit(sc, phy, (data & i) != 0); in be_mii_sendbits()
1232 be_mii_readreg(struct device *self, int phy, int reg) in be_mii_readreg() argument
1241 be_mii_sendbits(sc, phy, MII_COMMAND_START, 2); in be_mii_readreg()
1242 be_mii_sendbits(sc, phy, MII_COMMAND_READ, 2); in be_mii_readreg()
1243 be_mii_sendbits(sc, phy, phy, 5); in be_mii_readreg()
1244 be_mii_sendbits(sc, phy, reg, 5); in be_mii_readreg()
1246 (void) be_tcvr_read_bit(sc, phy); in be_mii_readreg()
1247 (void) be_tcvr_read_bit(sc, phy); in be_mii_readreg()
1250 val |= (be_tcvr_read_bit(sc, phy) << i); in be_mii_readreg()
1252 (void) be_tcvr_read_bit(sc, phy); in be_mii_readreg()
1253 (void) be_tcvr_read_bit(sc, phy); in be_mii_readreg()
1254 (void) be_tcvr_read_bit(sc, phy); in be_mii_readreg()
1260 be_mii_writereg(struct device *self, int phy, int reg, int val) in be_mii_writereg() argument
1269 be_mii_sendbits(sc, phy, MII_COMMAND_START, 2); in be_mii_writereg()
1270 be_mii_sendbits(sc, phy, MII_COMMAND_WRITE, 2); in be_mii_writereg()
1271 be_mii_sendbits(sc, phy, phy, 5); in be_mii_writereg()
1272 be_mii_sendbits(sc, phy, reg, 5); in be_mii_writereg()
1274 be_tcvr_write_bit(sc, phy, 1); in be_mii_writereg()
1275 be_tcvr_write_bit(sc, phy, 0); in be_mii_writereg()
1278 be_tcvr_write_bit(sc, phy, (val >> i) & 1); in be_mii_writereg()
1282 be_mii_reset(struct be_softc *sc, int phy) in be_mii_reset() argument
1286 be_mii_writereg((struct device *)sc, phy, MII_BMCR, in be_mii_reset()
1288 be_mii_writereg((struct device *)sc, phy, MII_BMCR, BMCR_RESET); in be_mii_reset()
1291 int bmcr = be_mii_readreg((struct device *)sc, phy, MII_BMCR); in be_mii_reset()