Lines Matching refs:phy
73 arswitch_readphy_external(device_t dev, int phy, int reg)
81 ret = (MDIO_READREG(device_get_parent(dev), phy, reg));
83 "%s: phy=0x%08x, reg=0x%08x, ret=0x%08x\n",
84 __func__, phy, reg, ret);
91 arswitch_writephy_external(device_t dev, int phy, int reg, int data)
98 (void) MDIO_WRITEREG(device_get_parent(dev), phy,
101 "%s: phy=0x%08x, reg=0x%08x, data=0x%08x\n",
102 __func__, phy, reg, data);
113 arswitch_readphy_internal(device_t dev, int phy, int reg)
123 if (phy < 0 || phy >= 32)
137 (phy << AR8X16_MDIO_CTRL_PHY_ADDR_SHIFT) |
139 DEVERR(dev, err, "arswitch_readphy()=%d: phy=%d.%02x\n", phy, reg);
149 "arswitch_readphy(): phy=%d.%02x; timeout=%d\n",
150 phy, reg, timeout);
158 "%s: phy=0x%08x, reg=0x%08x, ret=0x%08x\n",
159 __func__, phy, reg, data);
167 "%s: phy=0x%08x, reg=0x%08x, fail; err=%d\n",
168 __func__, phy, reg, err);
174 arswitch_writephy_internal(device_t dev, int phy, int reg, int data)
197 (phy << AR8X16_MDIO_CTRL_PHY_ADDR_SHIFT) |
211 "%s: phy=0x%08x, reg=0x%08x, data=0x%08x, err=%d\n",
212 __func__, phy, reg, data, err);
215 DEVERR(dev, err, "arswitch_writephy()=%d: phy=%d.%02x\n", phy, reg);