Lines Matching +full:0 +full:xffffff7f
23 * CSR 6 (mask = 0xfe3bd1fd of bits not to change)
29 * Bit 13 - Start - 1, Stop - 0 Transmissions
32 * Bit 1 - Start - 1, Stop - 0 Receive
35 * CSR 14 (mask = 0xfff0ee39 of bits not to change)
55 * Bit 15 - LPN is 1 if all above bits are valid other wise 0
58 * Bit 2 - LS10B - link state of 10baseT 0 - good, 1 - failed
59 * Bit 1 - LS100B - link state of 100baseT 0 - good, 1 - failed
66 * 1 0 0 (X) 0 (X) 1 NWAY
67 * 0 0 1 0 (X) 0 10baseT
68 * 0 1 0 1 1 (X) 100baseT
108 csr14 = (ioread32(ioaddr + CSR14) & 0xfff0ee39); in pnic2_start_nway()
111 if (tp->sym_advertise & 0x0100) csr14 |= 0x00020000; in pnic2_start_nway()
114 if (tp->sym_advertise & 0x0080) csr14 |= 0x00010000; in pnic2_start_nway()
117 if (tp->sym_advertise & 0x0020) csr14 |= 0x00000040; in pnic2_start_nway()
120 * and bit 0 Don't PowerDown 10baseT in pnic2_start_nway()
122 csr14 |= 0x00001184; in pnic2_start_nway()
129 dev->if_port = 0; in pnic2_start_nway()
131 tp->nwayset = tp->lpar = 0; in pnic2_start_nway()
142 tp->csr6 = tp->csr6 & 0xfe3bd1fd; in pnic2_start_nway()
146 if (tp->sym_advertise & 0x0040) tp->csr6 |= 0x00000200; in pnic2_start_nway()
152 tp->csr6 |= 0x01000000; in pnic2_start_nway()
163 csr12 = (ioread32(ioaddr + CSR12) & 0xffff8fff); in pnic2_start_nway()
164 csr12 |= 0x1000; in pnic2_start_nway()
191 if ((csr12 & 0x7000) == 0x5000) { in pnic2_lnk_change()
204 int negotiated = ((csr12 >> 16) & 0x01E0) & tp->sym_advertise; in pnic2_lnk_change()
208 if (negotiated & 0x0100) dev->if_port = 5; in pnic2_lnk_change()
209 else if (negotiated & 0x0080) dev->if_port = 3; in pnic2_lnk_change()
210 else if (negotiated & 0x0040) dev->if_port = 4; in pnic2_lnk_change()
211 else if (negotiated & 0x0020) dev->if_port = 0; in pnic2_lnk_change()
217 tp->nwayset = 0; in pnic2_lnk_change()
219 if ((csr12 & 2) == 0 && (tp->sym_advertise & 0x0180)) in pnic2_lnk_change()
224 tp->full_duplex = 0; in pnic2_lnk_change()
241 csr14 = (ioread32(ioaddr + CSR14) & 0xffffff7f); in pnic2_lnk_change()
253 tp->csr6 = (ioread32(ioaddr + CSR6) & 0xfe3bd1fd); in pnic2_lnk_change()
261 if (dev->if_port & 1) tp->csr6 |= 0x01840000; in pnic2_lnk_change()
262 else tp->csr6 |= 0x00400000; in pnic2_lnk_change()
265 if (tp->full_duplex) tp->csr6 |= 0x00000200; in pnic2_lnk_change()
290 csr14 = (ioread32(ioaddr + CSR14) & 0xffffff7f); in pnic2_lnk_change()
300 dev->if_port = 0; in pnic2_lnk_change()
301 tp->nway = 0; in pnic2_lnk_change()
307 tp->csr6 = (ioread32(ioaddr + CSR6) & 0xfe3bd1fd); in pnic2_lnk_change()
308 tp->csr6 |= 0x00400000; in pnic2_lnk_change()
317 if ((tp->nwayset && (csr5 & 0x08000000) && in pnic2_lnk_change()
346 tp->nway = 0; in pnic2_lnk_change()
360 if (dev->if_port == 0 || dev->if_port == 4) { in pnic2_lnk_change()
370 tp->nway = 0; in pnic2_lnk_change()
389 dev->if_port = 0; in pnic2_lnk_change()
392 csr14 = (ioread32(ioaddr + CSR14) & 0xffffff7f); in pnic2_lnk_change()
398 tp->csr6 = (ioread32(ioaddr + CSR6) & 0xfe3bd1fd); in pnic2_lnk_change()
399 tp->csr6 |= 0x00400000; in pnic2_lnk_change()