Lines Matching refs:phy_id
326 static int mdio_read(struct net_device *dev, int phy_id, int location);
327 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
460 np->mii_if.phy_id = np->phys[0]; in w840_probe1()
567 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() argument
571 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
597 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() argument
601 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value; in mdio_write()
604 if (location == 4 && phy_id == np->phys[0]) in mdio_write()
1458 data->phy_id = ((struct netdev_private *)netdev_priv(dev))->phys[0] & 0x1f; in netdev_ioctl()
1463 data->val_out = mdio_read(dev, data->phy_id & 0x1f, data->reg_num & 0x1f); in netdev_ioctl()
1469 mdio_write(dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in); in netdev_ioctl()