Lines Matching defs:location
639 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len);
641 static int mdio_read (struct net_device *dev, int phy_id, int location);
642 static void mdio_write (struct net_device *dev, int phy_id, int location,
1152 static int read_eeprom(void __iomem *ioaddr, int location, int addr_len)
1156 int read_cmd = location | (EE_READ_CMD << addr_len);
1233 static int mdio_read (struct net_device *dev, int phy_id, int location)
1239 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location;
1245 return location < 8 && mii_2_8139_map[location] ?
1246 RTL_R16 (mii_2_8139_map[location]) : 0;
1275 static void mdio_write (struct net_device *dev, int phy_id, int location,
1281 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location << 18) | value;
1287 if (location == 0) {
1291 } else if (location < 8 && mii_2_8139_map[location])
1292 RTL_W16 (mii_2_8139_map[location], value);