Lines Matching refs:tp

21 	struct tulip_private *tp = netdev_priv(dev);  in pnic_do_nway()  local
22 void __iomem *ioaddr = tp->base_addr; in pnic_do_nway()
31 tp->nwayset = 1; in pnic_do_nway()
37 tp->full_duplex = 1; in pnic_do_nway()
43 if (tp->csr6 != new_csr6) { in pnic_do_nway()
44 tp->csr6 = new_csr6; in pnic_do_nway()
46 tulip_restart_rxtx(tp); in pnic_do_nway()
54 struct tulip_private *tp = netdev_priv(dev); in pnic_lnk_change() local
55 void __iomem *ioaddr = tp->base_addr; in pnic_lnk_change()
68 if (! tp->nwayset || time_after(jiffies, dev_trans_start(dev) + 1*HZ)) { in pnic_lnk_change()
69 tp->csr6 = 0x00420000 | (tp->csr6 & 0x0000fdff); in pnic_lnk_change()
70 iowrite32(tp->csr6, ioaddr + CSR6); in pnic_lnk_change()
77 spin_lock(&tp->lock); in pnic_lnk_change()
79 spin_unlock(&tp->lock); in pnic_lnk_change()
89 struct tulip_private *tp = from_timer(tp, t, timer); in pnic_timer() local
90 struct net_device *dev = tp->dev; in pnic_timer()
91 void __iomem *ioaddr = tp->base_addr; in pnic_timer()
104 spin_lock_irq(&tp->lock); in pnic_timer()
107 spin_unlock_irq(&tp->lock); in pnic_timer()
110 int new_csr6 = tp->csr6 & ~0x40C40200; in pnic_timer()
120 tp->nwayset = 0; in pnic_timer()
132 if (tp->medialock) { in pnic_timer()
133 } else if (tp->nwayset && (dev->if_port & 1)) { in pnic_timer()
146 if (tp->csr6 != new_csr6) { in pnic_timer()
147 tp->csr6 = new_csr6; in pnic_timer()
149 tulip_restart_rxtx(tp); in pnic_timer()
155 tp->full_duplex ? "full" : "half", in pnic_timer()
161 mod_timer(&tp->timer, RUN_AT(next_tick)); in pnic_timer()
168 iowrite32(tulip_tbl[tp->chip_id].valid_intrs, ioaddr + CSR7); in pnic_timer()