Lines Matching refs:csr12
34 int csr12 = ioread32(ioaddr + CSR12); in t21142_media_task() local
40 if ((csr14 & 0x80) && (csr12 & 0x7000) != 0x5000) in t21142_media_task()
41 csr12 |= 6; in t21142_media_task()
44 csr12, medianame[dev->if_port]); in t21142_media_task()
58 medianame[dev->if_port], csr12); in t21142_media_task()
62 if (csr12 & 2) { /* No 100mbps link beat, revert to 10mbps. */ in t21142_media_task()
66 csr12); in t21142_media_task()
70 } else if ((csr12 & 0x7000) != 0x5000) { in t21142_media_task()
75 csr12); in t21142_media_task()
76 if (!(csr12 & 4)) { /* 10mbps link beat good. */ in t21142_media_task()
143 int csr12 = ioread32(ioaddr + CSR12); in t21142_lnk_change() local
147 if ((csr14 & 0x80) && (csr12 & 0x7000) != 0x5000) in t21142_lnk_change()
148 csr12 |= 6; in t21142_lnk_change()
152 csr12, csr5, csr14); in t21142_lnk_change()
155 if (tp->nway && !tp->nwayset && (csr12 & 0x7000) == 0x5000) { in t21142_lnk_change()
157 int negotiated = tp->sym_advertise & (csr12 >> 16); in t21142_lnk_change()
158 tp->lpar = csr12 >> 16; in t21142_lnk_change()
161 if (!(csr12 & 0x8000)) dev->if_port = 0; in t21142_lnk_change()
168 if ((csr12 & 2) == 0 && (tp->sym_advertise & 0x0180)) in t21142_lnk_change()
183 medianame[dev->if_port], csr12); in t21142_lnk_change()
216 (csr12 & 2) == 2) || in t21142_lnk_change()
227 (csr12 & 2) ? "failed" : "good"); in t21142_lnk_change()
228 if ((csr12 & 2) && ! tp->medialock) { in t21142_lnk_change()
236 if ((csr12 & 4) == 0) in t21142_lnk_change()
238 } else if (!(csr12 & 4)) { /* 10mbps link beat good. */ in t21142_lnk_change()