Lines Matching refs:csr12
34 int csr12 = inl(ioaddr + CSR12); in t21142_timer() local
40 dev->name, csr12, medianame[dev->if_port]); in t21142_timer()
48 dev->name, medianame[dev->if_port], csr12); in t21142_timer()
52 if (csr12 & 2) { /* No 100mbps link beat, revert to 10mbps. */ in t21142_timer()
55 "trying NWay.\n", dev->name, csr12); in t21142_timer()
59 } else if ((csr12 & 0x7000) != 0x5000) { in t21142_timer()
63 dev->name, csr12); in t21142_timer()
64 if (!(csr12 & 4)) { /* 10mbps link beat good. */ in t21142_timer()
131 int csr12 = inl(ioaddr + CSR12); in t21142_lnk_change() local
135 "%8.8x.\n", dev->name, csr12, csr5, inl(ioaddr + CSR14)); in t21142_lnk_change()
138 if (tp->nway && !tp->nwayset && (csr12 & 0x7000) == 0x5000) { in t21142_lnk_change()
140 int negotiated = tp->sym_advertise & (csr12 >> 16); in t21142_lnk_change()
141 tp->lpar = csr12 >> 16; in t21142_lnk_change()
149 if ((csr12 & 2) == 0 && (tp->sym_advertise & 0x0180)) in t21142_lnk_change()
163 dev->name, medianame[dev->if_port], csr12); in t21142_lnk_change()
196 && (csr12 & 2) == 2) || in t21142_lnk_change()
207 (csr12 & 2) ? "failed" : "good"); in t21142_lnk_change()
208 if ((csr12 & 2) && ! tp->medialock) { in t21142_lnk_change()
216 if ((csr12 & 4) == 0) in t21142_lnk_change()
219 } else if (!(csr12 & 4)) { /* 10mbps link beat good. */ in t21142_lnk_change()