Lines Matching refs:hw
34 static s32 ixgbe_identify_phy_x550em(struct ixgbe_hw *hw) in ixgbe_identify_phy_x550em() argument
36 u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_identify_phy_x550em()
38 switch (hw->device_id) { in ixgbe_identify_phy_x550em()
41 hw->phy.phy_semaphore_mask = IXGBE_GSSR_SHARED_I2C_SM; in ixgbe_identify_phy_x550em()
42 if (hw->bus.lan_id) { in ixgbe_identify_phy_x550em()
47 IXGBE_WRITE_REG(hw, IXGBE_ESDP, esdp); in ixgbe_identify_phy_x550em()
49 return ixgbe_identify_module_generic(hw); in ixgbe_identify_phy_x550em()
51 hw->phy.type = ixgbe_phy_x550em_kx4; in ixgbe_identify_phy_x550em()
54 hw->phy.type = ixgbe_phy_x550em_kr; in ixgbe_identify_phy_x550em()
58 return ixgbe_identify_phy_generic(hw); in ixgbe_identify_phy_x550em()
65 static s32 ixgbe_read_phy_reg_x550em(struct ixgbe_hw *hw, u32 reg_addr, in ixgbe_read_phy_reg_x550em() argument
71 static s32 ixgbe_write_phy_reg_x550em(struct ixgbe_hw *hw, u32 reg_addr, in ixgbe_write_phy_reg_x550em() argument
83 static s32 ixgbe_init_eeprom_params_X550(struct ixgbe_hw *hw) in ixgbe_init_eeprom_params_X550() argument
85 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_eeprom_params_X550()
93 eec = IXGBE_READ_REG(hw, IXGBE_EEC); in ixgbe_init_eeprom_params_X550()
99 hw_dbg(hw, "Eeprom params: type = %d, size = %d\n", in ixgbe_init_eeprom_params_X550()
113 static s32 ixgbe_read_iosf_sb_reg_x550(struct ixgbe_hw *hw, u32 reg_addr, in ixgbe_read_iosf_sb_reg_x550() argument
122 IXGBE_WRITE_REG(hw, IXGBE_SB_IOSF_INDIRECT_CTRL, command); in ixgbe_read_iosf_sb_reg_x550()
131 command = IXGBE_READ_REG(hw, IXGBE_SB_IOSF_INDIRECT_CTRL); in ixgbe_read_iosf_sb_reg_x550()
139 hw_dbg(hw, "Failed to read, error %x\n", error); in ixgbe_read_iosf_sb_reg_x550()
144 hw_dbg(hw, "Read timed out\n"); in ixgbe_read_iosf_sb_reg_x550()
148 *data = IXGBE_READ_REG(hw, IXGBE_SB_IOSF_INDIRECT_DATA); in ixgbe_read_iosf_sb_reg_x550()
161 static s32 ixgbe_read_ee_hostif_data_X550(struct ixgbe_hw *hw, u16 offset, in ixgbe_read_ee_hostif_data_X550() argument
177 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_read_ee_hostif_data_X550()
183 *data = (u16)IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG, in ixgbe_read_ee_hostif_data_X550()
197 static s32 ixgbe_read_ee_hostif_buffer_X550(struct ixgbe_hw *hw, in ixgbe_read_ee_hostif_buffer_X550() argument
207 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_read_ee_hostif_buffer_X550()
209 hw_dbg(hw, "EEPROM read buffer - semaphore failed\n"); in ixgbe_read_ee_hostif_buffer_X550()
228 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_read_ee_hostif_buffer_X550()
233 hw_dbg(hw, "Host interface command failed\n"); in ixgbe_read_ee_hostif_buffer_X550()
240 u32 value = IXGBE_READ_REG(hw, reg); in ixgbe_read_ee_hostif_buffer_X550()
255 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_read_ee_hostif_buffer_X550()
267 static s32 ixgbe_checksum_ptr_x550(struct ixgbe_hw *hw, u16 ptr, in ixgbe_checksum_ptr_x550() argument
280 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf); in ixgbe_checksum_ptr_x550()
282 hw_dbg(hw, "Failed to read EEPROM image\n"); in ixgbe_checksum_ptr_x550()
301 (ptr + length) >= hw->eeprom.word_size) in ixgbe_checksum_ptr_x550()
316 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, in ixgbe_checksum_ptr_x550()
319 hw_dbg(hw, "Failed to read EEPROM image\n"); in ixgbe_checksum_ptr_x550()
335 static s32 ixgbe_calc_checksum_X550(struct ixgbe_hw *hw, u16 *buffer, in ixgbe_calc_checksum_X550() argument
344 hw->eeprom.ops.init_params(hw); in ixgbe_calc_checksum_X550()
348 status = ixgbe_read_ee_hostif_buffer_X550(hw, 0, in ixgbe_calc_checksum_X550()
352 hw_dbg(hw, "Failed to read EEPROM image\n"); in ixgbe_calc_checksum_X550()
380 pointer >= hw->eeprom.word_size) in ixgbe_calc_checksum_X550()
396 status = ixgbe_checksum_ptr_x550(hw, pointer, size, &checksum, in ixgbe_calc_checksum_X550()
412 static s32 ixgbe_calc_eeprom_checksum_X550(struct ixgbe_hw *hw) in ixgbe_calc_eeprom_checksum_X550() argument
414 return ixgbe_calc_checksum_X550(hw, NULL, 0); in ixgbe_calc_eeprom_checksum_X550()
424 static s32 ixgbe_read_ee_hostif_X550(struct ixgbe_hw *hw, u16 offset, u16 *data) in ixgbe_read_ee_hostif_X550() argument
428 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) == 0) { in ixgbe_read_ee_hostif_X550()
429 status = ixgbe_read_ee_hostif_data_X550(hw, offset, data); in ixgbe_read_ee_hostif_X550()
430 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_read_ee_hostif_X550()
445 static s32 ixgbe_validate_eeprom_checksum_X550(struct ixgbe_hw *hw, in ixgbe_validate_eeprom_checksum_X550() argument
456 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X550()
458 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_validate_eeprom_checksum_X550()
462 status = hw->eeprom.ops.calc_checksum(hw); in ixgbe_validate_eeprom_checksum_X550()
468 status = ixgbe_read_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_validate_eeprom_checksum_X550()
478 hw_dbg(hw, "Invalid EEPROM checksum"); in ixgbe_validate_eeprom_checksum_X550()
495 static s32 ixgbe_write_ee_hostif_data_X550(struct ixgbe_hw *hw, u16 offset, in ixgbe_write_ee_hostif_data_X550() argument
511 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_write_ee_hostif_data_X550()
524 static s32 ixgbe_write_ee_hostif_X550(struct ixgbe_hw *hw, u16 offset, u16 data) in ixgbe_write_ee_hostif_X550() argument
528 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) == 0) { in ixgbe_write_ee_hostif_X550()
529 status = ixgbe_write_ee_hostif_data_X550(hw, offset, data); in ixgbe_write_ee_hostif_X550()
530 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_X550()
532 hw_dbg(hw, "write ee hostif failed to get semaphore"); in ixgbe_write_ee_hostif_X550()
544 static s32 ixgbe_update_flash_X550(struct ixgbe_hw *hw) in ixgbe_update_flash_X550() argument
554 status = ixgbe_host_interface_command(hw, (u32 *)&buffer, in ixgbe_update_flash_X550()
564 static void ixgbe_disable_rx_x550(struct ixgbe_hw *hw) in ixgbe_disable_rx_x550() argument
570 rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL); in ixgbe_disable_rx_x550()
572 pfdtxgswc = IXGBE_READ_REG(hw, IXGBE_PFDTXGSWC); in ixgbe_disable_rx_x550()
575 IXGBE_WRITE_REG(hw, IXGBE_PFDTXGSWC, pfdtxgswc); in ixgbe_disable_rx_x550()
576 hw->mac.set_lben = true; in ixgbe_disable_rx_x550()
578 hw->mac.set_lben = false; in ixgbe_disable_rx_x550()
584 fw_cmd.port_number = (u8)hw->bus.lan_id; in ixgbe_disable_rx_x550()
586 status = ixgbe_host_interface_command(hw, (u32 *)&fw_cmd, in ixgbe_disable_rx_x550()
592 rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL); in ixgbe_disable_rx_x550()
595 IXGBE_WRITE_REG(hw, IXGBE_RXCTRL, rxctrl); in ixgbe_disable_rx_x550()
608 static s32 ixgbe_update_eeprom_checksum_X550(struct ixgbe_hw *hw) in ixgbe_update_eeprom_checksum_X550() argument
617 status = ixgbe_read_ee_hostif_X550(hw, 0, &checksum); in ixgbe_update_eeprom_checksum_X550()
619 hw_dbg(hw, "EEPROM read failed\n"); in ixgbe_update_eeprom_checksum_X550()
623 status = ixgbe_calc_eeprom_checksum_X550(hw); in ixgbe_update_eeprom_checksum_X550()
629 status = ixgbe_write_ee_hostif_X550(hw, IXGBE_EEPROM_CHECKSUM, in ixgbe_update_eeprom_checksum_X550()
634 status = ixgbe_update_flash_X550(hw); in ixgbe_update_eeprom_checksum_X550()
648 static s32 ixgbe_write_ee_hostif_buffer_X550(struct ixgbe_hw *hw, in ixgbe_write_ee_hostif_buffer_X550() argument
656 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
658 hw_dbg(hw, "EEPROM write buffer - semaphore failed\n"); in ixgbe_write_ee_hostif_buffer_X550()
663 status = ixgbe_write_ee_hostif_data_X550(hw, offset + i, in ixgbe_write_ee_hostif_buffer_X550()
666 hw_dbg(hw, "Eeprom buffered write failed\n"); in ixgbe_write_ee_hostif_buffer_X550()
671 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550()
679 static void ixgbe_init_mac_link_ops_X550em(struct ixgbe_hw *hw) in ixgbe_init_mac_link_ops_X550em() argument
681 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_X550em()
686 if (hw->device_id == IXGBE_DEV_ID_X550EM_X_SFP) { in ixgbe_init_mac_link_ops_X550em()
696 static s32 ixgbe_setup_sfp_modules_X550em(struct ixgbe_hw *hw) in ixgbe_setup_sfp_modules_X550em() argument
702 switch (hw->phy.sfp_type) { in ixgbe_setup_sfp_modules_X550em()
723 ixgbe_init_mac_link_ops_X550em(hw); in ixgbe_setup_sfp_modules_X550em()
724 hw->phy.ops.reset = NULL; in ixgbe_setup_sfp_modules_X550em()
729 reg_slice = IXGBE_CS4227_SPARE24_LSB + (hw->bus.lan_id << 12); in ixgbe_setup_sfp_modules_X550em()
737 ret_val = hw->phy.ops.write_i2c_combined(hw, IXGBE_CS4227, reg_slice, in ixgbe_setup_sfp_modules_X550em()
741 ret_val = hw->phy.ops.write_i2c_combined(hw, 0x80, reg_slice, in ixgbe_setup_sfp_modules_X550em()
752 static s32 ixgbe_get_link_capabilities_X550em(struct ixgbe_hw *hw, in ixgbe_get_link_capabilities_X550em() argument
757 if (hw->phy.media_type == ixgbe_media_type_fiber) { in ixgbe_get_link_capabilities_X550em()
761 if (hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 || in ixgbe_get_link_capabilities_X550em()
762 hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1) { in ixgbe_get_link_capabilities_X550em()
768 if (hw->phy.multispeed_fiber) in ixgbe_get_link_capabilities_X550em()
789 static s32 ixgbe_write_iosf_sb_reg_x550(struct ixgbe_hw *hw, u32 reg_addr, in ixgbe_write_iosf_sb_reg_x550() argument
798 IXGBE_WRITE_REG(hw, IXGBE_SB_IOSF_INDIRECT_CTRL, command); in ixgbe_write_iosf_sb_reg_x550()
801 IXGBE_WRITE_REG(hw, IXGBE_SB_IOSF_INDIRECT_DATA, data); in ixgbe_write_iosf_sb_reg_x550()
810 command = IXGBE_READ_REG(hw, IXGBE_SB_IOSF_INDIRECT_CTRL); in ixgbe_write_iosf_sb_reg_x550()
818 hw_dbg(hw, "Failed to write, error %x\n", error); in ixgbe_write_iosf_sb_reg_x550()
823 hw_dbg(hw, "Write timed out\n"); in ixgbe_write_iosf_sb_reg_x550()
837 static s32 ixgbe_setup_ixfi_x550em(struct ixgbe_hw *hw, ixgbe_link_speed *speed) in ixgbe_setup_ixfi_x550em() argument
843 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
844 IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
865 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
866 IXGBE_KRM_RX_TRN_LINKUP_CTRL(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
872 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
873 IXGBE_KRM_RX_TRN_LINKUP_CTRL(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
879 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
880 IXGBE_KRM_RX_TRN_LINKUP_CTRL(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
886 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
887 IXGBE_KRM_DSP_TXFFE_STATE_4(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
895 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
896 IXGBE_KRM_DSP_TXFFE_STATE_4(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
901 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
902 IXGBE_KRM_DSP_TXFFE_STATE_5(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
910 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
911 IXGBE_KRM_DSP_TXFFE_STATE_5(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
917 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
918 IXGBE_KRM_TX_COEFF_CTRL_1(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
927 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
928 IXGBE_KRM_TX_COEFF_CTRL_1(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
934 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
935 IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
941 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_ixfi_x550em()
942 IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), in ixgbe_setup_ixfi_x550em()
953 static s32 ixgbe_setup_kx4_x550em(struct ixgbe_hw *hw) in ixgbe_setup_kx4_x550em() argument
958 status = ixgbe_read_iosf_sb_reg_x550(hw, IXGBE_KX4_LINK_CNTL_1, in ixgbe_setup_kx4_x550em()
960 hw->bus.lan_id, ®_val); in ixgbe_setup_kx4_x550em()
970 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_10GB_FULL) in ixgbe_setup_kx4_x550em()
974 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_1GB_FULL) in ixgbe_setup_kx4_x550em()
979 status = ixgbe_write_iosf_sb_reg_x550(hw, IXGBE_KX4_LINK_CNTL_1, in ixgbe_setup_kx4_x550em()
981 hw->bus.lan_id, reg_val); in ixgbe_setup_kx4_x550em()
991 static s32 ixgbe_setup_kr_x550em(struct ixgbe_hw *hw) in ixgbe_setup_kr_x550em() argument
996 status = ixgbe_read_iosf_sb_reg_x550(hw, in ixgbe_setup_kr_x550em()
997 IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), in ixgbe_setup_kr_x550em()
1009 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_10GB_FULL) in ixgbe_setup_kr_x550em()
1013 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_1GB_FULL) in ixgbe_setup_kr_x550em()
1018 status = ixgbe_write_iosf_sb_reg_x550(hw, in ixgbe_setup_kr_x550em()
1019 IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), in ixgbe_setup_kr_x550em()
1036 static s32 ixgbe_setup_internal_phy_x550em(struct ixgbe_hw *hw) in ixgbe_setup_internal_phy_x550em() argument
1043 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_XENPAK_LASI_STATUS, in ixgbe_setup_internal_phy_x550em()
1053 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, in ixgbe_setup_internal_phy_x550em()
1059 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, in ixgbe_setup_internal_phy_x550em()
1069 status = hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, in ixgbe_setup_internal_phy_x550em()
1088 return ixgbe_setup_ixfi_x550em(hw, &force_speed); in ixgbe_setup_internal_phy_x550em()
1098 static s32 ixgbe_init_phy_ops_X550em(struct ixgbe_hw *hw) in ixgbe_init_phy_ops_X550em() argument
1100 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_phy_ops_X550em()
1104 if (hw->device_id == IXGBE_DEV_ID_X550EM_X_SFP) { in ixgbe_init_phy_ops_X550em()
1105 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_init_phy_ops_X550em()
1108 if (hw->bus.lan_id) { in ixgbe_init_phy_ops_X550em()
1113 IXGBE_WRITE_REG(hw, IXGBE_ESDP, esdp); in ixgbe_init_phy_ops_X550em()
1117 ret_val = phy->ops.identify(hw); in ixgbe_init_phy_ops_X550em()
1120 ixgbe_init_mac_link_ops_X550em(hw); in ixgbe_init_phy_ops_X550em()
1125 switch (hw->phy.type) { in ixgbe_init_phy_ops_X550em()
1151 static enum ixgbe_media_type ixgbe_get_media_type_X550em(struct ixgbe_hw *hw) in ixgbe_get_media_type_X550em() argument
1156 switch (hw->device_id) { in ixgbe_get_media_type_X550em()
1178 static s32 ixgbe_init_ext_t_x550em(struct ixgbe_hw *hw) in ixgbe_init_ext_t_x550em() argument
1187 hw_dbg(hw, "External PHY not yet finished resetting."); in ixgbe_init_ext_t_x550em()
1192 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
1203 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
1211 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
1220 status = hw->phy.ops.write_reg(hw, in ixgbe_init_ext_t_x550em()
1228 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
1237 status = hw->phy.ops.write_reg(hw, in ixgbe_init_ext_t_x550em()
1251 static s32 ixgbe_reset_hw_X550em(struct ixgbe_hw *hw) in ixgbe_reset_hw_X550em() argument
1260 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X550em()
1265 ixgbe_clear_tx_pending(hw); in ixgbe_reset_hw_X550em()
1270 status = hw->phy.ops.init(hw); in ixgbe_reset_hw_X550em()
1273 if (hw->phy.type == ixgbe_phy_x550em_ext_t) { in ixgbe_reset_hw_X550em()
1274 status = ixgbe_init_ext_t_x550em(hw); in ixgbe_reset_hw_X550em()
1280 if (hw->phy.sfp_setup_needed) { in ixgbe_reset_hw_X550em()
1281 status = hw->mac.ops.setup_sfp(hw); in ixgbe_reset_hw_X550em()
1282 hw->phy.sfp_setup_needed = false; in ixgbe_reset_hw_X550em()
1286 if (!hw->phy.reset_disable && hw->phy.ops.reset) in ixgbe_reset_hw_X550em()
1287 hw->phy.ops.reset(hw); in ixgbe_reset_hw_X550em()
1297 if (!hw->force_full_reset) { in ixgbe_reset_hw_X550em()
1298 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_reset_hw_X550em()
1303 ctrl |= IXGBE_READ_REG(hw, IXGBE_CTRL); in ixgbe_reset_hw_X550em()
1304 IXGBE_WRITE_REG(hw, IXGBE_CTRL, ctrl); in ixgbe_reset_hw_X550em()
1305 IXGBE_WRITE_FLUSH(hw); in ixgbe_reset_hw_X550em()
1310 ctrl = IXGBE_READ_REG(hw, IXGBE_CTRL); in ixgbe_reset_hw_X550em()
1317 hw_dbg(hw, "Reset polling failed to complete.\n"); in ixgbe_reset_hw_X550em()
1326 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_X550em()
1327 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED; in ixgbe_reset_hw_X550em()
1332 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X550em()
1338 hw->mac.num_rar_entries = 128; in ixgbe_reset_hw_X550em()
1339 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_X550em()
1350 static void ixgbe_set_ethertype_anti_spoofing_X550(struct ixgbe_hw *hw, in ixgbe_set_ethertype_anti_spoofing_X550() argument
1357 pfvfspoof = IXGBE_READ_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg)); in ixgbe_set_ethertype_anti_spoofing_X550()
1363 IXGBE_WRITE_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg), pfvfspoof); in ixgbe_set_ethertype_anti_spoofing_X550()
1371 static void ixgbe_set_source_address_pruning_X550(struct ixgbe_hw *hw, in ixgbe_set_source_address_pruning_X550() argument
1381 pfflp = (u64)IXGBE_READ_REG(hw, IXGBE_PFFLPL); in ixgbe_set_source_address_pruning_X550()
1382 pfflp |= (u64)IXGBE_READ_REG(hw, IXGBE_PFFLPH) << 32; in ixgbe_set_source_address_pruning_X550()
1389 IXGBE_WRITE_REG(hw, IXGBE_PFFLPL, (u32)pfflp); in ixgbe_set_source_address_pruning_X550()
1390 IXGBE_WRITE_REG(hw, IXGBE_PFFLPH, (u32)(pfflp >> 32)); in ixgbe_set_source_address_pruning_X550()