Lines Matching +full:save +full:- +full:mac +full:- +full:address
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd. */
17 * txgbe_disable_sec_tx_path - Stops the transmit data path
33 * txgbe_enable_sec_tx_path - Enables the transmit data path
45 * txgbe_init_thermal_sensor_thresh - Inits thermal sensor thresholds
49 * and save off the threshold and location values into mac.thermal_sensor_data
53 struct wx_thermal_sensor_data *data = &wx->mac.sensor; in txgbe_init_thermal_sensor_thresh()
58 if (wx->bus.func) in txgbe_init_thermal_sensor_thresh()
67 data->alarm_thresh = 100; in txgbe_init_thermal_sensor_thresh()
69 data->dalarm_thresh = 90; in txgbe_init_thermal_sensor_thresh()
74 * txgbe_calc_eeprom_checksum - Calculates and returns the checksum
92 return -ENOMEM; in txgbe_calc_eeprom_checksum()
103 if (i != wx->eeprom.sw_region_offset + TXGBE_EEPROM_CHECKSUM) in txgbe_calc_eeprom_checksum()
108 *checksum = TXGBE_EEPROM_SUM - *checksum; in txgbe_calc_eeprom_checksum()
114 * txgbe_validate_eeprom_checksum - Validate EEPROM checksum
142 status = wx_read_ee_hostif(wx, wx->eeprom.sw_region_offset + in txgbe_validate_eeprom_checksum()
151 status = -EIO; in txgbe_validate_eeprom_checksum()
169 * txgbe_reset_hw - Perform hardware reset
173 * and clears all interrupts, perform a PHY reset, and perform a link (MAC)
185 if (wx->media_type != sp_media_copper) { in txgbe_reset_hw()
188 val = WX_MIS_RST_LAN_RST(wx->bus.func); in txgbe_reset_hw()
194 status = wx_check_flash_load(wx, TXGBE_SPI_ILDR_STATUS_LAN_SW_RST(wx->bus.func)); in txgbe_reset_hw()
202 /* Store the permanent mac address */ in txgbe_reset_hw()
203 wx_get_mac_addr(wx, wx->mac.perm_addr); in txgbe_reset_hw()
205 /* Store MAC address from RAR0, clear receive address registers, and in txgbe_reset_hw()
207 * since we modify this value when programming the SAN MAC address. in txgbe_reset_hw()
209 wx->mac.num_rar_entries = TXGBE_SP_RAR_ENTRIES; in txgbe_reset_hw()
212 pci_set_master(wx->pdev); in txgbe_reset_hw()