Lines Matching refs:dev
82 struct net_device *dev = tp->dev; in pnic2_timer() local
87 dev_info(&dev->dev, "PNIC2 negotiation status %08x\n", in pnic2_timer()
96 void pnic2_start_nway(struct net_device *dev) in pnic2_start_nway() argument
98 struct tulip_private *tp = netdev_priv(dev); in pnic2_start_nway()
125 netdev_dbg(dev, "Restarting PNIC2 autonegotiation, csr14=%08x\n", in pnic2_start_nway()
129 dev->if_port = 0; in pnic2_start_nway()
137 netdev_dbg(dev, "On Entry to Nway, csr6=%08x\n", tp->csr6); in pnic2_start_nway()
170 void pnic2_lnk_change(struct net_device *dev, int csr5) in pnic2_lnk_change() argument
172 struct tulip_private *tp = netdev_priv(dev); in pnic2_lnk_change()
180 dev_info(&dev->dev, in pnic2_lnk_change()
208 if (negotiated & 0x0100) dev->if_port = 5; in pnic2_lnk_change()
209 else if (negotiated & 0x0080) dev->if_port = 3; in pnic2_lnk_change()
210 else if (negotiated & 0x0040) dev->if_port = 4; in pnic2_lnk_change()
211 else if (negotiated & 0x0020) dev->if_port = 0; in pnic2_lnk_change()
214 dev_info(&dev->dev, in pnic2_lnk_change()
220 dev->if_port = 3; in pnic2_lnk_change()
225 if ((dev->if_port == 4) || (dev->if_port == 5)) in pnic2_lnk_change()
230 dev_info(&dev->dev, in pnic2_lnk_change()
232 medianame[dev->if_port], in pnic2_lnk_change()
261 if (dev->if_port & 1) tp->csr6 |= 0x01840000; in pnic2_lnk_change()
270 netdev_dbg(dev, "Setting CSR6 %08x/%x CSR12 %08x\n", in pnic2_lnk_change()
283 dev_info(&dev->dev, in pnic2_lnk_change()
285 medianame[dev->if_port], csr12); in pnic2_lnk_change()
300 dev->if_port = 0; in pnic2_lnk_change()
318 (dev->if_port == 3 || dev->if_port == 5) && in pnic2_lnk_change()
324 netdev_dbg(dev, "Ugh! Link blew?\n"); in pnic2_lnk_change()
327 pnic2_start_nway(dev); in pnic2_lnk_change()
335 if (dev->if_port == 3 || dev->if_port == 5) { in pnic2_lnk_change()
340 dev_info(&dev->dev, "PNIC2 %s link beat %s\n", in pnic2_lnk_change()
341 medianame[dev->if_port], in pnic2_lnk_change()
352 pnic2_start_nway(dev); in pnic2_lnk_change()
360 if (dev->if_port == 0 || dev->if_port == 4) { in pnic2_lnk_change()
365 dev_info(&dev->dev, "PNIC2 %s link beat %s\n", in pnic2_lnk_change()
366 medianame[dev->if_port], in pnic2_lnk_change()
376 pnic2_start_nway(dev); in pnic2_lnk_change()
386 dev_info(&dev->dev, "PNIC2 Link Change Default?\n"); in pnic2_lnk_change()
389 dev->if_port = 0; in pnic2_lnk_change()