Lines Matching defs:phy
59 mtkswitch_phy_read_locked(struct mtkswitch_softc *sc, int phy, int reg)
64 (reg << PIAC_MDIO_REG_ADDR_OFF) | (phy << PIAC_MDIO_PHY_ADDR_OFF) |
72 mtkswitch_phy_read(device_t dev, int phy, int reg)
77 if ((phy < 0 || phy >= 32) || (reg < 0 || reg >= 32))
82 data = mtkswitch_phy_read_locked(sc, phy, reg);
89 mtkswitch_phy_write_locked(struct mtkswitch_softc *sc, int phy, int reg,
94 (reg << PIAC_MDIO_REG_ADDR_OFF) | (phy << PIAC_MDIO_PHY_ADDR_OFF) |
102 mtkswitch_phy_write(device_t dev, int phy, int reg, int val)
107 if ((phy < 0 || phy >= 32) || (reg < 0 || reg >= 32))
112 res = mtkswitch_phy_write_locked(sc, phy, reg, val);