Lines Matching defs:location
479 static int mdio_read(struct nic *nic, int phy_id, int location);
480 static void mdio_write(struct nic *nic, int phy_id, int location, int value);
481 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
566 int mdio_read(struct nic *nic __unused, int phy_id, int location)
569 int read_cmd = (0xf6 << 10) | (phy_id << 5) | location;
579 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0);
590 if (location < 7)
591 return inl(ioaddr + 0xB4 + (location<<2));
592 else if (location == 17)
594 else if (location >= 29 && location <= 31)
595 return inl(ioaddr + 0xD4 + ((location-29)<<2));
627 void mdio_write(struct nic *nic __unused, int phy_id, int location, int value)
630 int cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value;
650 if (location < 7)
651 outl(value, ioaddr + 0xB4 + (location<<2));
652 else if (location == 17)
654 else if (location >= 29 && location <= 31)
655 outl(value, ioaddr + 0xD4 + ((location-29)<<2));
690 static int read_eeprom(unsigned long ioaddr, int location, int addr_len)
695 int read_cmd = location | EE_READ_CMD;