Lines Matching defs:mac_mode
2002 u32 mac_mode, lcl_adv, rmt_adv;
2008 mac_mode = tp->mac_mode & ~(MAC_MODE_PORT_MODE_MASK |
2018 mac_mode |= MAC_MODE_PORT_MODE_MII;
2021 mac_mode |= MAC_MODE_PORT_MODE_GMII;
2023 mac_mode |= MAC_MODE_PORT_MODE_MII;
2026 mac_mode |= MAC_MODE_HALF_DUPLEX;
2039 mac_mode |= MAC_MODE_PORT_MODE_GMII;
2041 if (mac_mode != tp->mac_mode) {
2042 tp->mac_mode = mac_mode;
2043 tw32_f(MAC_MODE, tp->mac_mode);
4127 u32 mac_mode;
4141 mac_mode = MAC_MODE_PORT_MODE_GMII;
4145 mac_mode = MAC_MODE_PORT_MODE_GMII;
4147 mac_mode = MAC_MODE_PORT_MODE_MII;
4149 mac_mode = MAC_MODE_PORT_MODE_MII;
4151 mac_mode |= tp->mac_mode & MAC_MODE_LINK_POLARITY;
4156 mac_mode |= MAC_MODE_LINK_POLARITY;
4158 mac_mode &= ~MAC_MODE_LINK_POLARITY;
4161 mac_mode = MAC_MODE_PORT_MODE_TBI;
4167 mac_mode |= MAC_MODE_MAGIC_PKT_ENABLE;
4170 mac_mode |= MAC_MODE_KEEP_FRAME_IN_WOL;
4173 mac_mode |= MAC_MODE_APE_TX_EN |
4177 tw32_f(MAC_MODE, mac_mode);
4986 (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK))
4990 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK;
4994 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
4996 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
4998 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
5000 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5022 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX;
5024 tp->mac_mode |= MAC_MODE_HALF_DUPLEX;
5029 tp->mac_mode |= MAC_MODE_LINK_POLARITY;
5031 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY;
5044 tw32_f(MAC_MODE, tp->mac_mode);
5231 tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
5232 tw32_f(MAC_MODE, tp->mac_mode);
5260 tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
5261 tw32_f(MAC_MODE, tp->mac_mode);
5275 tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
5276 tw32_f(MAC_MODE, tp->mac_mode);
5361 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS;
5362 tw32_f(MAC_MODE, tp->mac_mode);
5413 tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK;
5417 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS);
5433 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS;
5434 tw32_f(MAC_MODE, tp->mac_mode);
5696 tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS));
5699 tw32_f(MAC_MODE, tp->mac_mode);
5738 tp->mac_mode &= ~(MAC_MODE_PORT_MODE_MASK | MAC_MODE_HALF_DUPLEX);
5739 tp->mac_mode |= MAC_MODE_PORT_MODE_TBI;
5740 tw32_f(MAC_MODE, tp->mac_mode);
5777 tw32_f(MAC_MODE, (tp->mac_mode |
5780 tw32_f(MAC_MODE, tp->mac_mode);
5826 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK;
5829 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5834 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5837 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
5840 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
5849 tw32_f(MAC_MODE, tp->mac_mode);
5857 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5858 tw32_f(MAC_MODE, tp->mac_mode);
5987 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX;
5989 tp->mac_mode |= MAC_MODE_HALF_DUPLEX;
5991 tw32_f(MAC_MODE, tp->mac_mode);
8166 tp->mac_mode &= ~(MAC_MODE_HALF_DUPLEX |
8169 tp->mac_mode |= MAC_MODE_PORT_INT_LPBACK;
8172 tp->mac_mode |= MAC_MODE_LINK_POLARITY;
8175 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
8177 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
8179 tp->mac_mode &= ~MAC_MODE_PORT_INT_LPBACK;
8184 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY;
8187 tw32(MAC_MODE, tp->mac_mode);
8193 u32 val, bmcr, mac_mode, ptest = 0;
8259 mac_mode = tp->mac_mode &
8262 mac_mode |= MAC_MODE_PORT_MODE_GMII;
8264 mac_mode |= MAC_MODE_PORT_MODE_MII;
8270 mac_mode &= ~MAC_MODE_LINK_POLARITY;
8272 mac_mode |= MAC_MODE_LINK_POLARITY;
8278 tw32(MAC_MODE, mac_mode);
8289 if (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)
8298 if (!(tp->mac_mode & MAC_MODE_PORT_INT_LPBACK))
8880 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE;
8904 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE;
8905 tw32_f(MAC_MODE, tp->mac_mode);
9268 tp->mac_mode = MAC_MODE_PORT_MODE_TBI;
9269 val = tp->mac_mode;
9271 tp->mac_mode = MAC_MODE_PORT_MODE_GMII;
9272 val = tp->mac_mode;
10427 tp->mac_mode |= MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE |
10431 tp->mac_mode |= MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN;
10435 tp->mac_mode |= MAC_MODE_LINK_POLARITY;
10436 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR);
11061 (tp->mac_mode &
11064 tw32_f(MAC_MODE, tp->mac_mode);
16864 tp->mac_mode = MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN;
16866 tp->mac_mode = 0;