Lines Matching +full:tp +full:- +full:link
5 Written/copyright 1994-2001 by Donald Becker.
19 struct tulip_private *tp = in tulip_media_task() local
21 struct net_device *dev = tp->dev; in tulip_media_task()
22 void __iomem *ioaddr = tp->base_addr; in tulip_media_task()
29 medianame[dev->if_port], in tulip_media_task()
34 switch (tp->chip_id) { in tulip_media_task()
43 if (tp->mtable == NULL) { /* No EEPROM info, use generic code. */ in tulip_media_task()
53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task()
54 p = mleaf->leafdata; in tulip_media_task()
55 switch (mleaf->type) { in tulip_media_task()
57 /* Type 0 serial or 4 SYM transceiver. Check the link beat bit. */ in tulip_media_task()
58 int offset = mleaf->type == 4 ? 5 : 2; in tulip_media_task()
64 if (mleaf->type == 4) { in tulip_media_task()
65 if (mleaf->media == 3 && (csr12 & 0x02)) in tulip_media_task()
79 netdev_dbg(dev, "Link beat detected for %s\n", in tulip_media_task()
80 medianame[mleaf->media & MEDIA_MASK]); in tulip_media_task()
87 if (tp->medialock) in tulip_media_task()
90 if (--tp->cur_index < 0) { in tulip_media_task()
92 tp->cur_index = tp->mtable->leafcount - 1; in tulip_media_task()
94 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task()
95 if (tulip_media_cap[dev->if_port] & MediaIsFD) in tulip_media_task()
98 netdev_dbg(dev, "No link beat on media %s, trying transceiver type %s\n", in tulip_media_task()
99 medianame[mleaf->media & MEDIA_MASK], in tulip_media_task()
100 medianame[tp->mtable->mleaf[tp->cur_index].media]); in tulip_media_task()
103 tulip_restart_rxtx(tp); in tulip_media_task()
117 case 2: /* 21142 serial block has no link beat. */ in tulip_media_task()
126 spin_lock_irqsave(&tp->lock, flags); in tulip_media_task()
127 if (tp->timeout_recovery) { in tulip_media_task()
128 tulip_tx_timeout_complete(tp, ioaddr); in tulip_media_task()
129 tp->timeout_recovery = 0; in tulip_media_task()
131 spin_unlock_irqrestore(&tp->lock, flags); in tulip_media_task()
136 mod_timer(&tp->timer, RUN_AT(next_tick)); in tulip_media_task()
142 struct tulip_private *tp = from_timer(tp, t, timer); in mxic_timer() local
143 struct net_device *dev = tp->dev; in mxic_timer()
144 void __iomem *ioaddr = tp->base_addr; in mxic_timer()
148 dev_info(&dev->dev, "MXIC negotiation status %08x\n", in mxic_timer()
152 mod_timer(&tp->timer, RUN_AT(next_tick)); in mxic_timer()
159 struct tulip_private *tp = from_timer(tp, t, timer); in comet_timer() local
160 struct net_device *dev = tp->dev; in comet_timer()
164 netdev_dbg(dev, "Comet link status %04x partner capability %04x\n", in comet_timer()
165 tulip_mdio_read(dev, tp->phys[0], 1), in comet_timer()
166 tulip_mdio_read(dev, tp->phys[0], 5)); in comet_timer()
174 mod_timer(&tp->timer, RUN_AT(next_tick)); in comet_timer()