Lines Matching defs:mac_mode

2008 	u32 mac_mode, lcl_adv, rmt_adv;
2014 mac_mode = tp->mac_mode & ~(MAC_MODE_PORT_MODE_MASK |
2024 mac_mode |= MAC_MODE_PORT_MODE_MII;
2027 mac_mode |= MAC_MODE_PORT_MODE_GMII;
2029 mac_mode |= MAC_MODE_PORT_MODE_MII;
2032 mac_mode |= MAC_MODE_HALF_DUPLEX;
2045 mac_mode |= MAC_MODE_PORT_MODE_GMII;
2047 if (mac_mode != tp->mac_mode) {
2048 tp->mac_mode = mac_mode;
2049 tw32_f(MAC_MODE, tp->mac_mode);
4132 u32 mac_mode;
4146 mac_mode = MAC_MODE_PORT_MODE_GMII;
4150 mac_mode = MAC_MODE_PORT_MODE_GMII;
4152 mac_mode = MAC_MODE_PORT_MODE_MII;
4154 mac_mode = MAC_MODE_PORT_MODE_MII;
4156 mac_mode |= tp->mac_mode & MAC_MODE_LINK_POLARITY;
4161 mac_mode |= MAC_MODE_LINK_POLARITY;
4163 mac_mode &= ~MAC_MODE_LINK_POLARITY;
4166 mac_mode = MAC_MODE_PORT_MODE_TBI;
4172 mac_mode |= MAC_MODE_MAGIC_PKT_ENABLE;
4175 mac_mode |= MAC_MODE_KEEP_FRAME_IN_WOL;
4178 mac_mode |= MAC_MODE_APE_TX_EN |
4182 tw32_f(MAC_MODE, mac_mode);
4991 (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK))
4995 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK;
4999 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
5001 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5003 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
5005 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5027 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX;
5029 tp->mac_mode |= MAC_MODE_HALF_DUPLEX;
5034 tp->mac_mode |= MAC_MODE_LINK_POLARITY;
5036 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY;
5049 tw32_f(MAC_MODE, tp->mac_mode);
5236 tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
5237 tw32_f(MAC_MODE, tp->mac_mode);
5265 tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
5266 tw32_f(MAC_MODE, tp->mac_mode);
5280 tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
5281 tw32_f(MAC_MODE, tp->mac_mode);
5366 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS;
5367 tw32_f(MAC_MODE, tp->mac_mode);
5418 tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK;
5422 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS);
5438 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS;
5439 tw32_f(MAC_MODE, tp->mac_mode);
5702 tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS));
5705 tw32_f(MAC_MODE, tp->mac_mode);
5744 tp->mac_mode &= ~(MAC_MODE_PORT_MODE_MASK | MAC_MODE_HALF_DUPLEX);
5745 tp->mac_mode |= MAC_MODE_PORT_MODE_TBI;
5746 tw32_f(MAC_MODE, tp->mac_mode);
5784 tw32_f(MAC_MODE, (tp->mac_mode |
5787 tw32_f(MAC_MODE, tp->mac_mode);
5833 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK;
5836 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5841 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5844 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
5847 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
5856 tw32_f(MAC_MODE, tp->mac_mode);
5864 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
5865 tw32_f(MAC_MODE, tp->mac_mode);
5994 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX;
5996 tp->mac_mode |= MAC_MODE_HALF_DUPLEX;
5998 tw32_f(MAC_MODE, tp->mac_mode);
8181 tp->mac_mode &= ~(MAC_MODE_HALF_DUPLEX |
8184 tp->mac_mode |= MAC_MODE_PORT_INT_LPBACK;
8187 tp->mac_mode |= MAC_MODE_LINK_POLARITY;
8190 tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
8192 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
8194 tp->mac_mode &= ~MAC_MODE_PORT_INT_LPBACK;
8199 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY;
8202 tw32(MAC_MODE, tp->mac_mode);
8208 u32 val, bmcr, mac_mode, ptest = 0;
8274 mac_mode = tp->mac_mode &
8277 mac_mode |= MAC_MODE_PORT_MODE_GMII;
8279 mac_mode |= MAC_MODE_PORT_MODE_MII;
8285 mac_mode &= ~MAC_MODE_LINK_POLARITY;
8287 mac_mode |= MAC_MODE_LINK_POLARITY;
8293 tw32(MAC_MODE, mac_mode);
8304 if (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)
8313 if (!(tp->mac_mode & MAC_MODE_PORT_INT_LPBACK))
8895 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE;
8919 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE;
8920 tw32_f(MAC_MODE, tp->mac_mode);
9283 tp->mac_mode = MAC_MODE_PORT_MODE_TBI;
9284 val = tp->mac_mode;
9286 tp->mac_mode = MAC_MODE_PORT_MODE_GMII;
9287 val = tp->mac_mode;
10443 tp->mac_mode |= MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE |
10447 tp->mac_mode |= MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN;
10451 tp->mac_mode |= MAC_MODE_LINK_POLARITY;
10452 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR);
11077 (tp->mac_mode &
11080 tw32_f(MAC_MODE, tp->mac_mode);
16940 tp->mac_mode = MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN;
16942 tp->mac_mode = 0;