Lines Matching defs:mac

110 	phy->ops.read_reg               = (hw->mac.type == e1000_82543)
113 phy->ops.reset = (hw->mac.type == e1000_82543)
116 phy->ops.write_reg = (hw->mac.type == e1000_82543)
140 switch (hw->mac.type) {
195 struct e1000_mac_info *mac = &hw->mac;
211 mac->mta_reg_count = 128;
213 mac->rar_entry_count = E1000_RAR_ENTRIES;
218 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
220 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
222 mac->ops.reset_hw = e1000_reset_hw_82543;
224 mac->ops.init_hw = e1000_init_hw_82543;
226 mac->ops.setup_link = e1000_setup_link_82543;
228 mac->ops.setup_physical_interface =
233 mac->ops.check_for_link =
238 mac->ops.get_link_up_info =
243 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
245 mac->ops.write_vfta = e1000_write_vfta_82543;
247 mac->ops.clear_vfta = e1000_clear_vfta_generic;
248 /* read mac address */
249 mac->ops.read_mac_addr = e1000_read_mac_addr_82543;
251 mac->ops.led_on = e1000_led_on_82543;
252 mac->ops.led_off = e1000_led_off_82543;
254 mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82543;
257 if ((hw->mac.type != e1000_82543) ||
274 hw->mac.ops.init_params = e1000_init_mac_params_82543;
293 if (hw->mac.type != e1000_82543) {
318 if (hw->mac.type != e1000_82543) {
346 if (hw->mac.type != e1000_82543) {
393 if (hw->mac.type != e1000_82543) {
752 if (!hw->mac.autoneg &&
753 (hw->mac.forced_speed_duplex & E1000_ALL_10_SPEED))
927 if (hw->mac.type == e1000_82543) {
959 struct e1000_mac_info *mac = &hw->mac;
969 mac->ops.clear_vfta(hw);
972 e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
976 for (i = 0; i < mac->mta_reg_count; i++) {
986 if (hw->mac.type == e1000_82543 && dev_spec->dma_fairness) {
994 ret_val = mac->ops.setup_link(hw);
1035 if (hw->mac.type == e1000_82543) {
1076 if (hw->mac.type == e1000_82543) {
1092 if (hw->mac.autoneg) {
1128 if (hw->mac.type == e1000_82544) {
1129 hw->mac.ops.config_collision_dist(hw);
1163 hw->mac.ops.config_collision_dist(hw);
1203 struct e1000_mac_info *mac = &hw->mac;
1211 if (!mac->get_link_status) {
1223 mac->get_link_status = FALSE;
1231 if (!mac->autoneg) {
1240 if (mac->forced_speed_duplex & E1000_ALL_10_SPEED) {
1261 if (mac->type == e1000_82544)
1262 hw->mac.ops.config_collision_dist(hw);
1291 ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex);
1340 struct e1000_mac_info *mac = &hw->mac;
1362 if (mac->autoneg_failed == 0) {
1363 mac->autoneg_failed = 1;
1370 E1000_WRITE_REG(hw, E1000_TXCW, (mac->txcw & ~E1000_TXCW_ANE));
1391 E1000_WRITE_REG(hw, E1000_TXCW, mac->txcw);
1394 mac->serdes_has_link = TRUE;
1436 hw->mac.ops.config_collision_dist(hw);
1468 if ((hw->mac.type == e1000_82544) && (offset & 1)) {
1491 if (hw->mac.type == e1000_82544 &&
1518 if (hw->mac.type == e1000_82544 &&
1588 hw->mac.perm_addr[i] = (u8)(nvm_data & 0xFF);
1589 hw->mac.perm_addr[i+1] = (u8)(nvm_data >> 8);
1592 /* Flip last bit of mac address if we're on second port */
1594 hw->mac.perm_addr[5] ^= 1;
1597 hw->mac.addr[i] = hw->mac.perm_addr[i];