Lines Matching refs:location
47 int tulip_mdio_read(struct net_device *dev, int phy_id, int location) in tulip_mdio_read() argument
51 int read_cmd = (0xf6 << 10) | ((phy_id & 0x1f) << 5) | location; in tulip_mdio_read()
57 if (location & ~0x1f) in tulip_mdio_read()
61 if (comet_miireg2offset[location]) in tulip_mdio_read()
62 return ioread32(ioaddr + comet_miireg2offset[location]); in tulip_mdio_read()
68 iowrite32(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0); in tulip_mdio_read()
109 void tulip_mdio_write(struct net_device *dev, int phy_id, int location, int val) in tulip_mdio_write() argument
113 int cmd = (0x5002 << 16) | ((phy_id & 0x1f) << 23) | (location<<18) | (val & 0xffff); in tulip_mdio_write()
118 if (location & ~0x1f) in tulip_mdio_write()
122 if (comet_miireg2offset[location]) in tulip_mdio_write()
123 iowrite32(val, ioaddr + comet_miireg2offset[location]); in tulip_mdio_write()