Lines Matching refs:location
638 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len);
640 static int mdio_read (struct net_device *dev, int phy_id, int location);
641 static void mdio_write (struct net_device *dev, int phy_id, int location,
1159 static int read_eeprom(void __iomem *ioaddr, int location, int addr_len) in read_eeprom() argument
1163 int read_cmd = location | (EE_READ_CMD << addr_len); in read_eeprom()
1240 static int mdio_read (struct net_device *dev, int phy_id, int location) in mdio_read() argument
1246 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
1252 return location < 8 && mii_2_8139_map[location] ? in mdio_read()
1253 RTL_R16 (mii_2_8139_map[location]) : 0; in mdio_read()
1282 static void mdio_write (struct net_device *dev, int phy_id, int location, in mdio_write() argument
1288 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location << 18) | value; in mdio_write()
1294 if (location == 0) { in mdio_write()
1298 } else if (location < 8 && mii_2_8139_map[location]) in mdio_write()
1299 RTL_W16 (mii_2_8139_map[location], value); in mdio_write()