Lines Matching full:phy_id
480 static int mdio_read(struct nic *nic, int phy_id, int location);
481 static void mdio_write(struct nic *nic, int phy_id, int location, int value);
572 int mdio_read(struct nic *nic, int phy_id, int location)
575 int read_cmd = (0xf6 << 10) | (phy_id << 5) | location;
585 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0);
595 if (phy_id == 1) {
633 void mdio_write(struct nic *nic, int phy_id, int location, int value)
636 int cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value;
654 if (phy_id != 1)