Lines Matching defs:phy_id
323 static int mdio_read(struct net_device *dev, int phy_id, int location);
324 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
458 np->mii_if.phy_id = np->phys[0];
566 static int mdio_read(struct net_device *dev, int phy_id, int location)
570 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location;
596 static void mdio_write(struct net_device *dev, int phy_id, int location, int value)
600 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value;
603 if (location == 4 && phy_id == np->phys[0])
1457 data->phy_id = ((struct netdev_private *)netdev_priv(dev))->phys[0] & 0x1f;
1462 data->val_out = mdio_read(dev, data->phy_id & 0x1f, data->reg_num & 0x1f);
1470 mdio_write(dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in);