Lines Matching refs:phy_id
180 static int asix_mdio_read(struct ueth_data *dev, int phy_id, int loc) in asix_mdio_read() argument
185 asix_read_cmd(dev, AX_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, res); in asix_mdio_read()
189 phy_id, loc, le16_to_cpu(*res)); in asix_mdio_read()
195 asix_mdio_write(struct ueth_data *dev, int phy_id, int loc, int val) in asix_mdio_write() argument
201 phy_id, loc, val); in asix_mdio_write()
203 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, res); in asix_mdio_write()
327 bmcr = asix_mdio_read(dev, dev->phy_id, MII_BMCR); in mii_nway_restart()
331 asix_mdio_write(dev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
404 dev->phy_id = asix_get_phy_addr(dev); in asix_basic_reset()
405 if (dev->phy_id < 0) in asix_basic_reset()
408 asix_mdio_write(dev, dev->phy_id, MII_BMCR, BMCR_RESET); in asix_basic_reset()
409 asix_mdio_write(dev, dev->phy_id, MII_ADVERTISE, in asix_basic_reset()
441 link_detected = asix_mdio_read(dev, dev->phy_id, MII_BMSR) & in asix_init_common()