Lines Matching refs:csr12
101 int csr12; in pnic2_start_nway() local
163 csr12 = (ioread32(ioaddr + CSR12) & 0xffff8fff); in pnic2_start_nway()
164 csr12 |= 0x1000; in pnic2_start_nway()
165 iowrite32(csr12, ioaddr + CSR12); in pnic2_start_nway()
177 int csr12 = ioread32(ioaddr + CSR12); in pnic2_lnk_change() local
182 csr12, csr5, ioread32(ioaddr + CSR14)); in pnic2_lnk_change()
191 if ((csr12 & 0x7000) == 0x5000) { in pnic2_lnk_change()
204 int negotiated = ((csr12 >> 16) & 0x01E0) & tp->sym_advertise; in pnic2_lnk_change()
205 tp->lpar = (csr12 >> 16); in pnic2_lnk_change()
216 csr12, tp->sym_advertise); in pnic2_lnk_change()
219 if ((csr12 & 2) == 0 && (tp->sym_advertise & 0x0180)) in pnic2_lnk_change()
285 medianame[dev->if_port], csr12); in pnic2_lnk_change()
319 (csr12 & 2) == 2) || (tp->nway && (csr5 & (TPLnkFail)))) { in pnic2_lnk_change()
342 (csr12 & 2) ? "failed" : "good"); in pnic2_lnk_change()
350 if ((csr12 & 2) && ! tp->medialock) { in pnic2_lnk_change()
367 (csr12 & 4) ? "failed" : "good"); in pnic2_lnk_change()
374 if ((csr12 & 4) && ! tp->medialock) { in pnic2_lnk_change()