Lines Matching +full:eeprom +full:- +full:data

2   SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
61 * ixgbe_dcb_get_rtrup2tc - read rtrup2tc reg
69 if (hw->mac.ops.get_rtrup2tc) in ixgbe_dcb_get_rtrup2tc()
70 hw->mac.ops.get_rtrup2tc(hw, map); in ixgbe_dcb_get_rtrup2tc()
74 * ixgbe_init_shared_code - Initialize the shared code
96 switch (hw->mac.type) { in ixgbe_init_shared_code()
126 hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME; in ixgbe_init_shared_code()
132 * ixgbe_set_mac_type - Sets MAC type
144 if (hw->vendor_id != IXGBE_INTEL_VENDOR_ID) { in ixgbe_set_mac_type()
146 "Unsupported vendor id: %x", hw->vendor_id); in ixgbe_set_mac_type()
150 hw->mvals = ixgbe_mvals_base; in ixgbe_set_mac_type()
152 switch (hw->device_id) { in ixgbe_set_mac_type()
165 hw->mac.type = ixgbe_mac_82598EB; in ixgbe_set_mac_type()
183 hw->mac.type = ixgbe_mac_82599EB; in ixgbe_set_mac_type()
187 hw->mac.type = ixgbe_mac_82599_vf; in ixgbe_set_mac_type()
191 hw->mac.type = ixgbe_mac_X540_vf; in ixgbe_set_mac_type()
192 hw->mvals = ixgbe_mvals_X540; in ixgbe_set_mac_type()
197 hw->mac.type = ixgbe_mac_X540; in ixgbe_set_mac_type()
198 hw->mvals = ixgbe_mvals_X540; in ixgbe_set_mac_type()
202 hw->mac.type = ixgbe_mac_X550; in ixgbe_set_mac_type()
203 hw->mvals = ixgbe_mvals_X550; in ixgbe_set_mac_type()
211 hw->mac.type = ixgbe_mac_X550EM_x; in ixgbe_set_mac_type()
212 hw->mvals = ixgbe_mvals_X550EM_x; in ixgbe_set_mac_type()
225 hw->mac.type = ixgbe_mac_X550EM_a; in ixgbe_set_mac_type()
226 hw->mvals = ixgbe_mvals_X550EM_a; in ixgbe_set_mac_type()
230 hw->mac.type = ixgbe_mac_X550_vf; in ixgbe_set_mac_type()
231 hw->mvals = ixgbe_mvals_X550; in ixgbe_set_mac_type()
235 hw->mac.type = ixgbe_mac_X550EM_x_vf; in ixgbe_set_mac_type()
236 hw->mvals = ixgbe_mvals_X550EM_x; in ixgbe_set_mac_type()
240 hw->mac.type = ixgbe_mac_X550EM_a_vf; in ixgbe_set_mac_type()
241 hw->mvals = ixgbe_mvals_X550EM_a; in ixgbe_set_mac_type()
247 hw->device_id); in ixgbe_set_mac_type()
252 hw->mac.type, ret_val); in ixgbe_set_mac_type()
257 * ixgbe_init_hw - Initialize the hardware
264 return ixgbe_call_func(hw, hw->mac.ops.init_hw, (hw), in ixgbe_init_hw()
269 * ixgbe_reset_hw - Performs a hardware reset
277 return ixgbe_call_func(hw, hw->mac.ops.reset_hw, (hw), in ixgbe_reset_hw()
282 * ixgbe_start_hw - Prepares hardware for Rx/Tx
293 return ixgbe_call_func(hw, hw->mac.ops.start_hw, (hw), in ixgbe_start_hw()
298 * ixgbe_enable_relaxed_ordering - Enables tx relaxed ordering,
307 if (hw->mac.ops.enable_relaxed_ordering) in ixgbe_enable_relaxed_ordering()
308 hw->mac.ops.enable_relaxed_ordering(hw); in ixgbe_enable_relaxed_ordering()
312 * ixgbe_clear_hw_cntrs - Clear hardware counters
320 return ixgbe_call_func(hw, hw->mac.ops.clear_hw_cntrs, (hw), in ixgbe_clear_hw_cntrs()
325 * ixgbe_get_media_type - Get media type
332 return ixgbe_call_func(hw, hw->mac.ops.get_media_type, (hw), in ixgbe_get_media_type()
337 * ixgbe_get_mac_addr - Get MAC address
344 * EEPROM into RAR0
348 return ixgbe_call_func(hw, hw->mac.ops.get_mac_addr, in ixgbe_get_mac_addr()
353 * ixgbe_get_san_mac_addr - Get SAN MAC address
357 * Reads the SAN MAC address from the EEPROM, if it's available. This is
358 * per-port, so set_lan_id() must be called before reading the addresses.
362 return ixgbe_call_func(hw, hw->mac.ops.get_san_mac_addr, in ixgbe_get_san_mac_addr()
367 * ixgbe_set_san_mac_addr - Write a SAN MAC address
371 * Writes A SAN MAC address to the EEPROM.
375 return ixgbe_call_func(hw, hw->mac.ops.set_san_mac_addr, in ixgbe_set_san_mac_addr()
380 * ixgbe_get_device_caps - Get additional device capabilities
382 * @device_caps: the EEPROM word for device capabilities
384 * Reads the extra device capabilities from the EEPROM
388 return ixgbe_call_func(hw, hw->mac.ops.get_device_caps, in ixgbe_get_device_caps()
393 * ixgbe_get_wwn_prefix - Get alternative WWNN/WWPN prefix from the EEPROM
398 * This function will read the EEPROM from the alternative SAN MAC address
404 return ixgbe_call_func(hw, hw->mac.ops.get_wwn_prefix, in ixgbe_get_wwn_prefix()
410 * ixgbe_get_fcoe_boot_status - Get FCOE boot status from EEPROM
418 return ixgbe_call_func(hw, hw->mac.ops.get_fcoe_boot_status, in ixgbe_get_fcoe_boot_status()
424 * ixgbe_get_bus_info - Set PCI bus info
431 return ixgbe_call_func(hw, hw->mac.ops.get_bus_info, (hw), in ixgbe_get_bus_info()
436 * ixgbe_get_num_of_tx_queues - Get Tx queues
443 return hw->mac.max_tx_queues; in ixgbe_get_num_of_tx_queues()
447 * ixgbe_get_num_of_rx_queues - Get Rx queues
454 return hw->mac.max_rx_queues; in ixgbe_get_num_of_rx_queues()
458 * ixgbe_stop_adapter - Disable Rx/Tx units
468 return ixgbe_call_func(hw, hw->mac.ops.stop_adapter, (hw), in ixgbe_stop_adapter()
473 * ixgbe_read_pba_string - Reads part number string from EEPROM
475 * @pba_num: stores the part number string from the EEPROM
478 * Reads the part number string from the EEPROM.
486 * ixgbe_read_pba_num - Reads part number from EEPROM
488 * @pba_num: stores the part number from the EEPROM
490 * Reads the part number from the EEPROM.
498 * ixgbe_identify_phy - Get PHY type
507 if (hw->phy.type == ixgbe_phy_unknown) { in ixgbe_identify_phy()
508 status = ixgbe_call_func(hw, hw->phy.ops.identify, (hw), in ixgbe_identify_phy()
516 * ixgbe_reset_phy - Perform a PHY reset
523 if (hw->phy.type == ixgbe_phy_unknown) { in ixgbe_reset_phy()
529 status = ixgbe_call_func(hw, hw->phy.ops.reset, (hw), in ixgbe_reset_phy()
536 * ixgbe_get_phy_firmware_version -
544 status = ixgbe_call_func(hw, hw->phy.ops.get_firmware_version, in ixgbe_get_phy_firmware_version()
551 * ixgbe_read_phy_reg - Read PHY register
555 * @phy_data: Pointer to read data from PHY register
562 if (hw->phy.id == 0) in ixgbe_read_phy_reg()
565 return ixgbe_call_func(hw, hw->phy.ops.read_reg, (hw, reg_addr, in ixgbe_read_phy_reg()
570 * ixgbe_write_phy_reg - Write PHY register
574 * @phy_data: Data to write to the PHY register
581 if (hw->phy.id == 0) in ixgbe_write_phy_reg()
584 return ixgbe_call_func(hw, hw->phy.ops.write_reg, (hw, reg_addr, in ixgbe_write_phy_reg()
589 * ixgbe_setup_phy_link - Restart PHY autoneg
596 return ixgbe_call_func(hw, hw->phy.ops.setup_link, (hw), in ixgbe_setup_phy_link()
601 * ixgbe_setup_internal_phy - Configure integrated PHY
610 return ixgbe_call_func(hw, hw->phy.ops.setup_internal_link, (hw), in ixgbe_setup_internal_phy()
615 * ixgbe_check_phy_link - Determine link and speed status
626 return ixgbe_call_func(hw, hw->phy.ops.check_link, (hw, speed, in ixgbe_check_phy_link()
631 * ixgbe_setup_phy_link_speed - Set auto advertise
641 return ixgbe_call_func(hw, hw->phy.ops.setup_link_speed, (hw, speed, in ixgbe_setup_phy_link_speed()
647 * ixgbe_set_phy_power - Control the phy power state
653 return ixgbe_call_func(hw, hw->phy.ops.set_phy_power, (hw, on), in ixgbe_set_phy_power()
658 * ixgbe_check_link - Get link and speed status
669 return ixgbe_call_func(hw, hw->mac.ops.check_link, (hw, speed, in ixgbe_check_link()
675 * ixgbe_disable_tx_laser - Disable Tx laser
682 if (hw->mac.ops.disable_tx_laser) in ixgbe_disable_tx_laser()
683 hw->mac.ops.disable_tx_laser(hw); in ixgbe_disable_tx_laser()
687 * ixgbe_enable_tx_laser - Enable Tx laser
694 if (hw->mac.ops.enable_tx_laser) in ixgbe_enable_tx_laser()
695 hw->mac.ops.enable_tx_laser(hw); in ixgbe_enable_tx_laser()
699 * ixgbe_flap_tx_laser - flap Tx laser to start autotry process
708 if (hw->mac.ops.flap_tx_laser) in ixgbe_flap_tx_laser()
709 hw->mac.ops.flap_tx_laser(hw); in ixgbe_flap_tx_laser()
713 * ixgbe_setup_link - Set link speed
724 return ixgbe_call_func(hw, hw->mac.ops.setup_link, (hw, speed, in ixgbe_setup_link()
730 * ixgbe_setup_mac_link - Set link speed
741 return ixgbe_call_func(hw, hw->mac.ops.setup_mac_link, (hw, speed, in ixgbe_setup_mac_link()
747 * ixgbe_get_link_capabilities - Returns link capabilities
757 return ixgbe_call_func(hw, hw->mac.ops.get_link_capabilities, (hw, in ixgbe_get_link_capabilities()
762 * ixgbe_led_on - Turn on LEDs
770 return ixgbe_call_func(hw, hw->mac.ops.led_on, (hw, index), in ixgbe_led_on()
775 * ixgbe_led_off - Turn off LEDs
783 return ixgbe_call_func(hw, hw->mac.ops.led_off, (hw, index), in ixgbe_led_off()
788 * ixgbe_blink_led_start - Blink LEDs
796 return ixgbe_call_func(hw, hw->mac.ops.blink_led_start, (hw, index), in ixgbe_blink_led_start()
801 * ixgbe_blink_led_stop - Stop blinking LEDs
809 return ixgbe_call_func(hw, hw->mac.ops.blink_led_stop, (hw, index), in ixgbe_blink_led_stop()
814 * ixgbe_init_eeprom_params - Initialize EEPROM parameters
817 * Initializes the EEPROM parameters ixgbe_eeprom_info within the
818 * ixgbe_hw struct in order to set up EEPROM access.
822 return ixgbe_call_func(hw, hw->eeprom.ops.init_params, (hw), in ixgbe_init_eeprom_params()
828 * ixgbe_write_eeprom - Write word to EEPROM
830 * @offset: offset within the EEPROM to be written to
831 * @data: 16 bit word to be written to the EEPROM
833 * Writes 16 bit value to EEPROM. If ixgbe_eeprom_update_checksum is not
834 * called after this function, the EEPROM will most likely contain an
837 s32 ixgbe_write_eeprom(struct ixgbe_hw *hw, u16 offset, u16 data) in ixgbe_write_eeprom() argument
839 return ixgbe_call_func(hw, hw->eeprom.ops.write, (hw, offset, data), in ixgbe_write_eeprom()
844 * ixgbe_write_eeprom_buffer - Write word(s) to EEPROM
846 * @offset: offset within the EEPROM to be written to
847 * @data: 16 bit word(s) to be written to the EEPROM
850 * Writes 16 bit word(s) to EEPROM. If ixgbe_eeprom_update_checksum is not
851 * called after this function, the EEPROM will most likely contain an
855 u16 *data) in ixgbe_write_eeprom_buffer() argument
857 return ixgbe_call_func(hw, hw->eeprom.ops.write_buffer, in ixgbe_write_eeprom_buffer()
858 (hw, offset, words, data), in ixgbe_write_eeprom_buffer()
863 * ixgbe_read_eeprom - Read word from EEPROM
865 * @offset: offset within the EEPROM to be read
866 * @data: read 16 bit value from EEPROM
868 * Reads 16 bit value from EEPROM
870 s32 ixgbe_read_eeprom(struct ixgbe_hw *hw, u16 offset, u16 *data) in ixgbe_read_eeprom() argument
872 return ixgbe_call_func(hw, hw->eeprom.ops.read, (hw, offset, data), in ixgbe_read_eeprom()
877 * ixgbe_read_eeprom_buffer - Read word(s) from EEPROM
879 * @offset: offset within the EEPROM to be read
880 * @data: read 16 bit word(s) from EEPROM
883 * Reads 16 bit word(s) from EEPROM
886 u16 words, u16 *data) in ixgbe_read_eeprom_buffer() argument
888 return ixgbe_call_func(hw, hw->eeprom.ops.read_buffer, in ixgbe_read_eeprom_buffer()
889 (hw, offset, words, data), in ixgbe_read_eeprom_buffer()
894 * ixgbe_validate_eeprom_checksum - Validate EEPROM checksum
898 * Performs checksum calculation and validates the EEPROM checksum
902 return ixgbe_call_func(hw, hw->eeprom.ops.validate_checksum, in ixgbe_validate_eeprom_checksum()
907 * ixgbe_update_eeprom_checksum - Updates the EEPROM checksum
912 return ixgbe_call_func(hw, hw->eeprom.ops.update_checksum, (hw), in ixgbe_update_eeprom_checksum()
917 * ixgbe_insert_mac_addr - Find a RAR for this mac address
927 return ixgbe_call_func(hw, hw->mac.ops.insert_mac_addr, in ixgbe_insert_mac_addr()
933 * ixgbe_set_rar - Set Rx address register
945 return ixgbe_call_func(hw, hw->mac.ops.set_rar, (hw, index, addr, vmdq, in ixgbe_set_rar()
950 * ixgbe_clear_rar - Clear Rx address register
958 return ixgbe_call_func(hw, hw->mac.ops.clear_rar, (hw, index), in ixgbe_clear_rar()
963 * ixgbe_set_vmdq - Associate a VMDq index with a receive address
970 return ixgbe_call_func(hw, hw->mac.ops.set_vmdq, (hw, rar, vmdq), in ixgbe_set_vmdq()
976 * ixgbe_set_vmdq_san_mac - Associate VMDq index 127 with a receive address
982 return ixgbe_call_func(hw, hw->mac.ops.set_vmdq_san_mac, in ixgbe_set_vmdq_san_mac()
987 * ixgbe_clear_vmdq - Disassociate a VMDq index from a receive address
994 return ixgbe_call_func(hw, hw->mac.ops.clear_vmdq, (hw, rar, vmdq), in ixgbe_clear_vmdq()
999 * ixgbe_init_rx_addrs - Initializes receive address filters.
1008 return ixgbe_call_func(hw, hw->mac.ops.init_rx_addrs, (hw), in ixgbe_init_rx_addrs()
1013 * ixgbe_get_num_rx_addrs - Returns the number of RAR entries.
1018 return hw->mac.num_rar_entries; in ixgbe_get_num_rx_addrs()
1022 * ixgbe_update_uc_addr_list - Updates the MAC's list of secondary addresses
1035 return ixgbe_call_func(hw, hw->mac.ops.update_uc_addr_list, (hw, in ixgbe_update_uc_addr_list()
1041 * ixgbe_update_mc_addr_list - Updates the MAC's list of multicast addresses
1057 return ixgbe_call_func(hw, hw->mac.ops.update_mc_addr_list, (hw, in ixgbe_update_mc_addr_list()
1063 * ixgbe_enable_mc - Enable multicast address in RAR
1070 return ixgbe_call_func(hw, hw->mac.ops.enable_mc, (hw), in ixgbe_enable_mc()
1075 * ixgbe_disable_mc - Disable multicast address in RAR
1082 return ixgbe_call_func(hw, hw->mac.ops.disable_mc, (hw), in ixgbe_disable_mc()
1087 * ixgbe_clear_vfta - Clear VLAN filter table
1094 return ixgbe_call_func(hw, hw->mac.ops.clear_vfta, (hw), in ixgbe_clear_vfta()
1099 * ixgbe_set_vfta - Set VLAN filter table
1111 return ixgbe_call_func(hw, hw->mac.ops.set_vfta, (hw, vlan, vind, in ixgbe_set_vfta()
1116 * ixgbe_set_vlvf - Set VLAN Pool Filter
1131 return ixgbe_call_func(hw, hw->mac.ops.set_vlvf, (hw, vlan, vind, in ixgbe_set_vlvf()
1137 * ixgbe_toggle_txdctl - Toggle VF's queues
1145 return ixgbe_call_func(hw, hw->mac.ops.toggle_txdctl, (hw, in ixgbe_toggle_txdctl()
1150 * ixgbe_fc_enable - Enable flow control
1157 return ixgbe_call_func(hw, hw->mac.ops.fc_enable, (hw), in ixgbe_fc_enable()
1162 * ixgbe_setup_fc - Set up flow control
1169 return ixgbe_call_func(hw, hw->mac.ops.setup_fc, (hw), in ixgbe_setup_fc()
1174 * ixgbe_set_fw_drv_ver - Try to send the driver version number FW
1186 return ixgbe_call_func(hw, hw->mac.ops.set_fw_drv_ver, (hw, maj, min, in ixgbe_set_fw_drv_ver()
1193 * ixgbe_get_thermal_sensor_data - Gathers thermal sensor data
1200 return ixgbe_call_func(hw, hw->mac.ops.get_thermal_sensor_data, (hw), in ixgbe_get_thermal_sensor_data()
1205 * ixgbe_init_thermal_sensor_thresh - Inits thermal sensor thresholds
1212 return ixgbe_call_func(hw, hw->mac.ops.init_thermal_sensor_thresh, (hw), in ixgbe_init_thermal_sensor_thresh()
1217 * ixgbe_dmac_config - Configure DMA Coalescing registers.
1225 return ixgbe_call_func(hw, hw->mac.ops.dmac_config, (hw), in ixgbe_dmac_config()
1230 * ixgbe_dmac_update_tcs - Configure DMA Coalescing registers.
1237 return ixgbe_call_func(hw, hw->mac.ops.dmac_update_tcs, (hw), in ixgbe_dmac_update_tcs()
1242 * ixgbe_dmac_config_tcs - Configure DMA Coalescing registers.
1250 return ixgbe_call_func(hw, hw->mac.ops.dmac_config_tcs, (hw), in ixgbe_dmac_config_tcs()
1255 * ixgbe_setup_eee - Enable/disable EEE support
1260 * Auto-negotiation must be started after BASE-T EEE bits in PHY register 7.3C
1266 return ixgbe_call_func(hw, hw->mac.ops.setup_eee, (hw, enable_eee), in ixgbe_setup_eee()
1271 * ixgbe_set_source_address_pruning - Enable/Disable source address pruning
1274 * @pool: Rx pool - Rx pool to toggle source address pruning
1279 if (hw->mac.ops.set_source_address_pruning) in ixgbe_set_source_address_pruning()
1280 hw->mac.ops.set_source_address_pruning(hw, enable, pool); in ixgbe_set_source_address_pruning()
1284 * ixgbe_set_ethertype_anti_spoofing - Enable/Disable Ethertype anti-spoofing
1286 * @enable: enable or disable switch for Ethertype anti-spoofing
1287 * @vf: Virtual Function pool - VF Pool to set for Ethertype anti-spoofing
1292 if (hw->mac.ops.set_ethertype_anti_spoofing) in ixgbe_set_ethertype_anti_spoofing()
1293 hw->mac.ops.set_ethertype_anti_spoofing(hw, enable, vf); in ixgbe_set_ethertype_anti_spoofing()
1297 * ixgbe_read_iosf_sb_reg - Read 32 bit PHY register
1301 * @phy_data: Pointer to read data from PHY register
1308 return ixgbe_call_func(hw, hw->mac.ops.read_iosf_sb_reg, (hw, reg_addr, in ixgbe_read_iosf_sb_reg()
1313 * ixgbe_write_iosf_sb_reg - Write 32 bit register through IOSF Sideband
1317 * @phy_data: Data to write to the PHY register
1324 return ixgbe_call_func(hw, hw->mac.ops.write_iosf_sb_reg, (hw, reg_addr, in ixgbe_write_iosf_sb_reg()
1329 * ixgbe_disable_mdd - Disable malicious driver detection
1335 if (hw->mac.ops.disable_mdd) in ixgbe_disable_mdd()
1336 hw->mac.ops.disable_mdd(hw); in ixgbe_disable_mdd()
1340 * ixgbe_enable_mdd - Enable malicious driver detection
1346 if (hw->mac.ops.enable_mdd) in ixgbe_enable_mdd()
1347 hw->mac.ops.enable_mdd(hw); in ixgbe_enable_mdd()
1351 * ixgbe_mdd_event - Handle malicious driver detection event
1358 if (hw->mac.ops.mdd_event) in ixgbe_mdd_event()
1359 hw->mac.ops.mdd_event(hw, vf_bitmap); in ixgbe_mdd_event()
1363 * ixgbe_restore_mdd_vf - Restore VF that was disabled during malicious driver
1371 if (hw->mac.ops.restore_mdd_vf) in ixgbe_restore_mdd_vf()
1372 hw->mac.ops.restore_mdd_vf(hw, vf); in ixgbe_restore_mdd_vf()
1376 * ixgbe_fw_recovery_mode - Check if in FW NVM recovery mode
1382 if (hw->mac.ops.fw_recovery_mode) in ixgbe_fw_recovery_mode()
1383 return hw->mac.ops.fw_recovery_mode(hw); in ixgbe_fw_recovery_mode()
1388 * ixgbe_enter_lplu - Transition to low power states
1392 * (from D0 to non-D0).
1396 return ixgbe_call_func(hw, hw->phy.ops.enter_lplu, (hw), in ixgbe_enter_lplu()
1401 * ixgbe_handle_lasi - Handle external Base T PHY interrupt
1413 return ixgbe_call_func(hw, hw->phy.ops.handle_lasi, (hw), in ixgbe_handle_lasi()
1418 * ixgbe_bypass_rw - Bit bang data into by_pass FW
1423 * Bit-bangs the cmd to the by_pass FW status points to what is returned.
1427 return ixgbe_call_func(hw, hw->mac.ops.bypass_rw, (hw, cmd, status), in ixgbe_bypass_rw()
1432 * ixgbe_bypass_valid_rd - Verify valid return from bit-bang.
1434 * @in_reg: The register cmd for the bit-bang read.
1435 * @out_reg: The register returned from a bit-bang read.
1445 return ixgbe_call_func(hw, hw->mac.ops.bypass_valid_rd, in ixgbe_bypass_valid_rd()
1450 * ixgbe_bypass_set - Set a bypass field in the FW CTRL Regiter.
1463 return ixgbe_call_func(hw, hw->mac.ops.bypass_set, in ixgbe_bypass_set()
1469 * ixgbe_bypass_rd_eep - Read the bypass FW eeprom address
1471 * @addr: The bypass eeprom address to read.
1472 * @value: The 8b of data at the address above.
1476 return ixgbe_call_func(hw, hw->mac.ops.bypass_rd_eep, in ixgbe_bypass_rd_eep()
1481 * ixgbe_read_analog_reg8 - Reads 8 bit analog register
1490 return ixgbe_call_func(hw, hw->mac.ops.read_analog_reg8, (hw, reg, in ixgbe_read_analog_reg8()
1495 * ixgbe_write_analog_reg8 - Writes 8 bit analog register
1504 return ixgbe_call_func(hw, hw->mac.ops.write_analog_reg8, (hw, reg, in ixgbe_write_analog_reg8()
1509 * ixgbe_init_uta_tables - Initializes Unicast Table Arrays.
1517 return ixgbe_call_func(hw, hw->mac.ops.init_uta_tables, (hw), in ixgbe_init_uta_tables()
1522 * ixgbe_read_i2c_byte - Reads 8 bit word over I2C at specified device address
1526 * @data: value read
1528 * Performs byte read operation to SFP module's EEPROM over I2C interface.
1531 u8 *data) in ixgbe_read_i2c_byte() argument
1533 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte, (hw, byte_offset, in ixgbe_read_i2c_byte()
1534 dev_addr, data), IXGBE_NOT_IMPLEMENTED); in ixgbe_read_i2c_byte()
1538 * ixgbe_read_i2c_byte_unlocked - Reads 8 bit word via I2C from device address
1542 * @data: value read
1544 * Performs byte read operation to SFP module's EEPROM over I2C interface.
1547 u8 dev_addr, u8 *data) in ixgbe_read_i2c_byte_unlocked() argument
1549 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte_unlocked, in ixgbe_read_i2c_byte_unlocked()
1550 (hw, byte_offset, dev_addr, data), in ixgbe_read_i2c_byte_unlocked()
1555 * ixgbe_read_link - Perform read operation on link device
1565 return ixgbe_call_func(hw, hw->link.ops.read_link, (hw, addr, in ixgbe_read_link()
1570 * ixgbe_read_link_unlocked - Perform read operation on link device
1580 return ixgbe_call_func(hw, hw->link.ops.read_link_unlocked, in ixgbe_read_link_unlocked()
1585 * ixgbe_write_i2c_byte - Writes 8 bit word over I2C
1589 * @data: value to write
1591 * Performs byte write operation to SFP module's EEPROM over I2C interface
1595 u8 data) in ixgbe_write_i2c_byte() argument
1597 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte, (hw, byte_offset, in ixgbe_write_i2c_byte()
1598 dev_addr, data), IXGBE_NOT_IMPLEMENTED); in ixgbe_write_i2c_byte()
1602 * ixgbe_write_i2c_byte_unlocked - Writes 8 bit word over I2C
1606 * @data: value to write
1608 * Performs byte write operation to SFP module's EEPROM over I2C interface
1612 u8 dev_addr, u8 data) in ixgbe_write_i2c_byte_unlocked() argument
1614 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte_unlocked, in ixgbe_write_i2c_byte_unlocked()
1615 (hw, byte_offset, dev_addr, data), in ixgbe_write_i2c_byte_unlocked()
1620 * ixgbe_write_link - Perform write operation on link device
1630 return ixgbe_call_func(hw, hw->link.ops.write_link, in ixgbe_write_link()
1635 * ixgbe_write_link_unlocked - Perform write operation on link device
1645 return ixgbe_call_func(hw, hw->link.ops.write_link_unlocked, in ixgbe_write_link_unlocked()
1650 * ixgbe_write_i2c_eeprom - Writes 8 bit EEPROM word over I2C interface
1652 * @byte_offset: EEPROM byte offset to write
1655 * Performs byte write operation to SFP module's EEPROM over I2C interface.
1660 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_eeprom, in ixgbe_write_i2c_eeprom()
1666 * ixgbe_read_i2c_eeprom - Reads 8 bit EEPROM word over I2C interface
1668 * @byte_offset: EEPROM byte offset to read
1671 * Performs byte read operation to SFP module's EEPROM over I2C interface.
1675 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_eeprom, in ixgbe_read_i2c_eeprom()
1681 * ixgbe_get_supported_physical_layer - Returns physical layer type
1688 return ixgbe_call_func(hw, hw->mac.ops.get_supported_physical_layer, in ixgbe_get_supported_physical_layer()
1693 * ixgbe_enable_rx_dma - Enables Rx DMA unit, dependent on device specifics
1701 return ixgbe_call_func(hw, hw->mac.ops.enable_rx_dma, in ixgbe_enable_rx_dma()
1706 * ixgbe_disable_sec_rx_path - Stops the receive data path
1709 * Stops the receive data path.
1713 return ixgbe_call_func(hw, hw->mac.ops.disable_sec_rx_path, in ixgbe_disable_sec_rx_path()
1718 * ixgbe_enable_sec_rx_path - Enables the receive data path
1721 * Enables the receive data path.
1725 return ixgbe_call_func(hw, hw->mac.ops.enable_sec_rx_path, in ixgbe_enable_sec_rx_path()
1730 * ixgbe_acquire_swfw_semaphore - Acquire SWFW semaphore
1735 * function (CSR, PHY0, PHY1, EEPROM, Flash)
1739 return ixgbe_call_func(hw, hw->mac.ops.acquire_swfw_sync, in ixgbe_acquire_swfw_semaphore()
1744 * ixgbe_release_swfw_semaphore - Release SWFW semaphore
1749 * function (CSR, PHY0, PHY1, EEPROM, Flash)
1753 if (hw->mac.ops.release_swfw_sync) in ixgbe_release_swfw_semaphore()
1754 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_release_swfw_semaphore()
1758 * ixgbe_init_swfw_semaphore - Clean up SWFW semaphore
1768 if (hw->mac.ops.init_swfw_sync) in ixgbe_init_swfw_semaphore()
1769 hw->mac.ops.init_swfw_sync(hw); in ixgbe_init_swfw_semaphore()
1775 if (hw->mac.ops.disable_rx) in ixgbe_disable_rx()
1776 hw->mac.ops.disable_rx(hw); in ixgbe_disable_rx()
1781 if (hw->mac.ops.enable_rx) in ixgbe_enable_rx()
1782 hw->mac.ops.enable_rx(hw); in ixgbe_enable_rx()
1786 * ixgbe_set_rate_select_speed - Set module link speed
1794 if (hw->mac.ops.set_rate_select_speed) in ixgbe_set_rate_select_speed()
1795 hw->mac.ops.set_rate_select_speed(hw, speed); in ixgbe_set_rate_select_speed()