• Home
  • Raw
  • Download

Lines Matching refs:mac

76 		hw->mac.ops.write_vfta(hw, offset, 0);  in igb_clear_vfta()
115 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in igb_init_rx_addrs()
120 hw->mac.ops.rar_set(hw, mac_addr, i); in igb_init_rx_addrs()
240 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
271 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
297 if (hw->mac.type >= e1000_82580) in igb_check_alt_mac_addr()
341 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in igb_check_alt_mac_addr()
406 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set()
432 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in igb_hash_mc_addr()
465 switch (hw->mac.mc_filter_type) { in igb_hash_mc_addr()
501 for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) { in igb_i21x_hw_doublecheck()
502 if (array_rd32(E1000_MTA, i) != hw->mac.mta_shadow[i]) { in igb_i21x_hw_doublecheck()
504 array_wr32(E1000_MTA, i, hw->mac.mta_shadow[i]); in igb_i21x_hw_doublecheck()
531 memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); in igb_update_mc_addr_list()
537 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_update_mc_addr_list()
540 hw->mac.mta_shadow[hash_reg] |= BIT(hash_bit); in igb_update_mc_addr_list()
545 for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) in igb_update_mc_addr_list()
546 array_wr32(E1000_MTA, i, hw->mac.mta_shadow[i]); in igb_update_mc_addr_list()
548 if (hw->mac.type == e1000_i210 || hw->mac.type == e1000_i211) in igb_update_mc_addr_list()
609 struct e1000_mac_info *mac = &hw->mac; in igb_check_for_copper_link() local
618 if (!mac->get_link_status) { in igb_check_for_copper_link()
634 mac->get_link_status = false; in igb_check_for_copper_link()
644 if (!mac->autoneg) { in igb_check_for_copper_link()
706 ret_val = hw->mac.ops.setup_physical_interface(hw); in igb_setup_link()
804 if (hw->mac.type == e1000_i350) in igb_set_default_fc()
902 struct e1000_mac_info *mac = &hw->mac; in igb_config_fc_after_link_up() local
912 if (mac->autoneg_failed) { in igb_config_fc_after_link_up()
930 if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { in igb_config_fc_after_link_up()
1075 ret_val = hw->mac.ops.get_speed_and_duplex(hw, &speed, &duplex); in igb_config_fc_after_link_up()
1099 && mac->autoneg) { in igb_config_fc_after_link_up()
1397 struct e1000_mac_info *mac = &hw->mac; in igb_id_led_init() local
1406 if ((hw->mac.type == e1000_i210) || in igb_id_led_init()
1407 (hw->mac.type == e1000_i211)) in igb_id_led_init()
1415 mac->ledctl_default = rd32(E1000_LEDCTL); in igb_id_led_init()
1416 mac->ledctl_mode1 = mac->ledctl_default; in igb_id_led_init()
1417 mac->ledctl_mode2 = mac->ledctl_default; in igb_id_led_init()
1425 mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3)); in igb_id_led_init()
1426 mac->ledctl_mode1 |= ledctl_on << (i << 3); in igb_id_led_init()
1431 mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3)); in igb_id_led_init()
1432 mac->ledctl_mode1 |= ledctl_off << (i << 3); in igb_id_led_init()
1442 mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3)); in igb_id_led_init()
1443 mac->ledctl_mode2 |= ledctl_on << (i << 3); in igb_id_led_init()
1448 mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3)); in igb_id_led_init()
1449 mac->ledctl_mode2 |= ledctl_off << (i << 3); in igb_id_led_init()
1470 wr32(E1000_LEDCTL, hw->mac.ledctl_default); in igb_cleanup_led()
1496 ledctl_blink = hw->mac.ledctl_mode2; in igb_blink_led()
1498 u32 mode = (hw->mac.ledctl_mode2 >> i) & in igb_blink_led()
1500 u32 led_default = hw->mac.ledctl_default >> i; in igb_blink_led()
1529 wr32(E1000_LEDCTL, hw->mac.ledctl_mode1); in igb_led_off()
1592 if (hw->mac.type >= e1000_82580) in igb_validate_mdi_setting()
1595 if (!hw->mac.autoneg && (hw->phy.mdix == 0 || hw->phy.mdix == 3)) { in igb_validate_mdi_setting()
1657 if (!hw->mac.asf_firmware_present) in igb_enable_mng_pass_thru()
1665 if (hw->mac.arc_subsystem_valid) { in igb_enable_mng_pass_thru()