Lines Matching +full:hw +full:- +full:ops
2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
61 * ixgbe_dcb_get_rtrup2tc - read rtrup2tc reg
62 * @hw: pointer to hardware structure
65 * Read the rtrup2tc HW register and resolve its content into map
67 void ixgbe_dcb_get_rtrup2tc(struct ixgbe_hw *hw, u8 *map) in ixgbe_dcb_get_rtrup2tc() argument
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
75 * @hw: pointer to hardware structure
81 * hw structure should be filled in prior to calling this function:
85 s32 ixgbe_init_shared_code(struct ixgbe_hw *hw) in ixgbe_init_shared_code() argument
94 ixgbe_set_mac_type(hw); in ixgbe_init_shared_code()
96 switch (hw->mac.type) { in ixgbe_init_shared_code()
98 status = ixgbe_init_ops_82598(hw); in ixgbe_init_shared_code()
101 status = ixgbe_init_ops_82599(hw); in ixgbe_init_shared_code()
104 status = ixgbe_init_ops_X540(hw); in ixgbe_init_shared_code()
107 status = ixgbe_init_ops_X550(hw); in ixgbe_init_shared_code()
110 status = ixgbe_init_ops_X550EM_x(hw); in ixgbe_init_shared_code()
113 status = ixgbe_init_ops_X550EM_a(hw); in ixgbe_init_shared_code()
116 status = ixgbe_init_ops_E610(hw); in ixgbe_init_shared_code()
124 status = ixgbe_init_ops_vf(hw); in ixgbe_init_shared_code()
130 hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME; in ixgbe_init_shared_code()
136 * ixgbe_set_mac_type - Sets MAC type
137 * @hw: pointer to the HW structure
140 * vendor ID and device ID stored in the hw structure.
142 s32 ixgbe_set_mac_type(struct ixgbe_hw *hw) in ixgbe_set_mac_type() argument
148 if (hw->vendor_id != IXGBE_INTEL_VENDOR_ID) { in ixgbe_set_mac_type()
150 "Unsupported vendor id: %x", hw->vendor_id); in ixgbe_set_mac_type()
154 hw->mvals = ixgbe_mvals_base; in ixgbe_set_mac_type()
156 switch (hw->device_id) { in ixgbe_set_mac_type()
169 hw->mac.type = ixgbe_mac_82598EB; in ixgbe_set_mac_type()
187 hw->mac.type = ixgbe_mac_82599EB; in ixgbe_set_mac_type()
191 hw->mac.type = ixgbe_mac_82599_vf; in ixgbe_set_mac_type()
195 hw->mac.type = ixgbe_mac_X540_vf; in ixgbe_set_mac_type()
196 hw->mvals = ixgbe_mvals_X540; in ixgbe_set_mac_type()
201 hw->mac.type = ixgbe_mac_X540; in ixgbe_set_mac_type()
202 hw->mvals = ixgbe_mvals_X540; in ixgbe_set_mac_type()
206 hw->mac.type = ixgbe_mac_X550; in ixgbe_set_mac_type()
207 hw->mvals = ixgbe_mvals_X550; in ixgbe_set_mac_type()
215 hw->mac.type = ixgbe_mac_X550EM_x; in ixgbe_set_mac_type()
216 hw->mvals = ixgbe_mvals_X550EM_x; in ixgbe_set_mac_type()
229 hw->mac.type = ixgbe_mac_X550EM_a; in ixgbe_set_mac_type()
230 hw->mvals = ixgbe_mvals_X550EM_a; in ixgbe_set_mac_type()
234 hw->mac.type = ixgbe_mac_X550_vf; in ixgbe_set_mac_type()
235 hw->mvals = ixgbe_mvals_X550; in ixgbe_set_mac_type()
239 hw->mac.type = ixgbe_mac_X550EM_x_vf; in ixgbe_set_mac_type()
240 hw->mvals = ixgbe_mvals_X550EM_x; in ixgbe_set_mac_type()
244 hw->mac.type = ixgbe_mac_X550EM_a_vf; in ixgbe_set_mac_type()
245 hw->mvals = ixgbe_mvals_X550EM_a; in ixgbe_set_mac_type()
252 hw->mac.type = ixgbe_mac_E610; in ixgbe_set_mac_type()
253 hw->mvals = ixgbe_mvals_X550EM_a; in ixgbe_set_mac_type()
256 hw->mac.type = ixgbe_mac_E610_vf; in ixgbe_set_mac_type()
257 hw->mvals = ixgbe_mvals_X550EM_a; in ixgbe_set_mac_type()
263 hw->device_id); in ixgbe_set_mac_type()
268 hw->mac.type, ret_val); in ixgbe_set_mac_type()
273 * ixgbe_init_hw - Initialize the hardware
274 * @hw: pointer to hardware structure
278 s32 ixgbe_init_hw(struct ixgbe_hw *hw) in ixgbe_init_hw() argument
280 return ixgbe_call_func(hw, hw->mac.ops.init_hw, (hw), in ixgbe_init_hw()
285 * ixgbe_reset_hw - Performs a hardware reset
286 * @hw: pointer to hardware structure
291 s32 ixgbe_reset_hw(struct ixgbe_hw *hw) in ixgbe_reset_hw() argument
293 return ixgbe_call_func(hw, hw->mac.ops.reset_hw, (hw), in ixgbe_reset_hw()
298 * ixgbe_start_hw - Prepares hardware for Rx/Tx
299 * @hw: pointer to hardware structure
307 s32 ixgbe_start_hw(struct ixgbe_hw *hw) in ixgbe_start_hw() argument
309 return ixgbe_call_func(hw, hw->mac.ops.start_hw, (hw), in ixgbe_start_hw()
314 * ixgbe_enable_relaxed_ordering - Enables tx relaxed ordering,
317 * @hw: pointer to hardware structure
321 void ixgbe_enable_relaxed_ordering(struct ixgbe_hw *hw) in ixgbe_enable_relaxed_ordering() argument
323 if (hw->mac.ops.enable_relaxed_ordering) in ixgbe_enable_relaxed_ordering()
324 hw->mac.ops.enable_relaxed_ordering(hw); in ixgbe_enable_relaxed_ordering()
328 * ixgbe_clear_hw_cntrs - Clear hardware counters
329 * @hw: pointer to hardware structure
334 s32 ixgbe_clear_hw_cntrs(struct ixgbe_hw *hw) in ixgbe_clear_hw_cntrs() argument
336 return ixgbe_call_func(hw, hw->mac.ops.clear_hw_cntrs, (hw), in ixgbe_clear_hw_cntrs()
341 * ixgbe_get_media_type - Get media type
342 * @hw: pointer to hardware structure
346 enum ixgbe_media_type ixgbe_get_media_type(struct ixgbe_hw *hw) in ixgbe_get_media_type() argument
348 return ixgbe_call_func(hw, hw->mac.ops.get_media_type, (hw), in ixgbe_get_media_type()
353 * ixgbe_get_mac_addr - Get MAC address
354 * @hw: pointer to hardware structure
362 s32 ixgbe_get_mac_addr(struct ixgbe_hw *hw, u8 *mac_addr) in ixgbe_get_mac_addr() argument
364 return ixgbe_call_func(hw, hw->mac.ops.get_mac_addr, in ixgbe_get_mac_addr()
365 (hw, mac_addr), IXGBE_NOT_IMPLEMENTED); in ixgbe_get_mac_addr()
369 * ixgbe_get_san_mac_addr - Get SAN MAC address
370 * @hw: pointer to hardware structure
374 * per-port, so set_lan_id() must be called before reading the addresses.
376 s32 ixgbe_get_san_mac_addr(struct ixgbe_hw *hw, u8 *san_mac_addr) in ixgbe_get_san_mac_addr() argument
378 return ixgbe_call_func(hw, hw->mac.ops.get_san_mac_addr, in ixgbe_get_san_mac_addr()
379 (hw, san_mac_addr), IXGBE_NOT_IMPLEMENTED); in ixgbe_get_san_mac_addr()
383 * ixgbe_set_san_mac_addr - Write a SAN MAC address
384 * @hw: pointer to hardware structure
389 s32 ixgbe_set_san_mac_addr(struct ixgbe_hw *hw, u8 *san_mac_addr) in ixgbe_set_san_mac_addr() argument
391 return ixgbe_call_func(hw, hw->mac.ops.set_san_mac_addr, in ixgbe_set_san_mac_addr()
392 (hw, san_mac_addr), IXGBE_NOT_IMPLEMENTED); in ixgbe_set_san_mac_addr()
396 * ixgbe_get_device_caps - Get additional device capabilities
397 * @hw: pointer to hardware structure
402 s32 ixgbe_get_device_caps(struct ixgbe_hw *hw, u16 *device_caps) in ixgbe_get_device_caps() argument
404 return ixgbe_call_func(hw, hw->mac.ops.get_device_caps, in ixgbe_get_device_caps()
405 (hw, device_caps), IXGBE_NOT_IMPLEMENTED); in ixgbe_get_device_caps()
409 * ixgbe_get_wwn_prefix - Get alternative WWNN/WWPN prefix from the EEPROM
410 * @hw: pointer to hardware structure
417 s32 ixgbe_get_wwn_prefix(struct ixgbe_hw *hw, u16 *wwnn_prefix, in ixgbe_get_wwn_prefix() argument
420 return ixgbe_call_func(hw, hw->mac.ops.get_wwn_prefix, in ixgbe_get_wwn_prefix()
421 (hw, wwnn_prefix, wwpn_prefix), in ixgbe_get_wwn_prefix()
426 * ixgbe_get_fcoe_boot_status - Get FCOE boot status from EEPROM
427 * @hw: pointer to hardware structure
432 s32 ixgbe_get_fcoe_boot_status(struct ixgbe_hw *hw, u16 *bs) in ixgbe_get_fcoe_boot_status() argument
434 return ixgbe_call_func(hw, hw->mac.ops.get_fcoe_boot_status, in ixgbe_get_fcoe_boot_status()
435 (hw, bs), in ixgbe_get_fcoe_boot_status()
440 * ixgbe_get_bus_info - Set PCI bus info
441 * @hw: pointer to hardware structure
445 s32 ixgbe_get_bus_info(struct ixgbe_hw *hw) in ixgbe_get_bus_info() argument
447 return ixgbe_call_func(hw, hw->mac.ops.get_bus_info, (hw), in ixgbe_get_bus_info()
452 * ixgbe_get_num_of_tx_queues - Get Tx queues
453 * @hw: pointer to hardware structure
457 u32 ixgbe_get_num_of_tx_queues(struct ixgbe_hw *hw) in ixgbe_get_num_of_tx_queues() argument
459 return hw->mac.max_tx_queues; in ixgbe_get_num_of_tx_queues()
463 * ixgbe_get_num_of_rx_queues - Get Rx queues
464 * @hw: pointer to hardware structure
468 u32 ixgbe_get_num_of_rx_queues(struct ixgbe_hw *hw) in ixgbe_get_num_of_rx_queues() argument
470 return hw->mac.max_rx_queues; in ixgbe_get_num_of_rx_queues()
474 * ixgbe_stop_adapter - Disable Rx/Tx units
475 * @hw: pointer to hardware structure
482 s32 ixgbe_stop_adapter(struct ixgbe_hw *hw) in ixgbe_stop_adapter() argument
484 return ixgbe_call_func(hw, hw->mac.ops.stop_adapter, (hw), in ixgbe_stop_adapter()
489 * ixgbe_read_pba_string - Reads part number string from EEPROM
490 * @hw: pointer to hardware structure
496 s32 ixgbe_read_pba_string(struct ixgbe_hw *hw, u8 *pba_num, u32 pba_num_size) in ixgbe_read_pba_string() argument
498 return ixgbe_read_pba_string_generic(hw, pba_num, pba_num_size); in ixgbe_read_pba_string()
502 * ixgbe_read_pba_num - Reads part number from EEPROM
503 * @hw: pointer to hardware structure
508 s32 ixgbe_read_pba_num(struct ixgbe_hw *hw, u32 *pba_num) in ixgbe_read_pba_num() argument
510 return ixgbe_read_pba_num_generic(hw, pba_num); in ixgbe_read_pba_num()
514 * ixgbe_identify_phy - Get PHY type
515 * @hw: pointer to hardware structure
519 s32 ixgbe_identify_phy(struct ixgbe_hw *hw) in ixgbe_identify_phy() argument
523 if (hw->phy.type == ixgbe_phy_unknown) { in ixgbe_identify_phy()
524 status = ixgbe_call_func(hw, hw->phy.ops.identify, (hw), in ixgbe_identify_phy()
532 * ixgbe_reset_phy - Perform a PHY reset
533 * @hw: pointer to hardware structure
535 s32 ixgbe_reset_phy(struct ixgbe_hw *hw) in ixgbe_reset_phy() argument
539 if (hw->phy.type == ixgbe_phy_unknown) { in ixgbe_reset_phy()
540 if (ixgbe_identify_phy(hw) != IXGBE_SUCCESS) in ixgbe_reset_phy()
545 status = ixgbe_call_func(hw, hw->phy.ops.reset, (hw), in ixgbe_reset_phy()
552 * ixgbe_get_phy_firmware_version -
553 * @hw: pointer to hardware structure
556 s32 ixgbe_get_phy_firmware_version(struct ixgbe_hw *hw, u16 *firmware_version) in ixgbe_get_phy_firmware_version() argument
560 status = ixgbe_call_func(hw, hw->phy.ops.get_firmware_version, in ixgbe_get_phy_firmware_version()
561 (hw, firmware_version), in ixgbe_get_phy_firmware_version()
567 * ixgbe_read_phy_reg - Read PHY register
568 * @hw: pointer to hardware structure
575 s32 ixgbe_read_phy_reg(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, in ixgbe_read_phy_reg() argument
578 if (hw->phy.id == 0) in ixgbe_read_phy_reg()
579 ixgbe_identify_phy(hw); in ixgbe_read_phy_reg()
581 return ixgbe_call_func(hw, hw->phy.ops.read_reg, (hw, reg_addr, in ixgbe_read_phy_reg()
586 * ixgbe_write_phy_reg - Write PHY register
587 * @hw: pointer to hardware structure
594 s32 ixgbe_write_phy_reg(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, in ixgbe_write_phy_reg() argument
597 if (hw->phy.id == 0) in ixgbe_write_phy_reg()
598 ixgbe_identify_phy(hw); in ixgbe_write_phy_reg()
600 return ixgbe_call_func(hw, hw->phy.ops.write_reg, (hw, reg_addr, in ixgbe_write_phy_reg()
605 * ixgbe_setup_phy_link - Restart PHY autoneg
606 * @hw: pointer to hardware structure
610 s32 ixgbe_setup_phy_link(struct ixgbe_hw *hw) in ixgbe_setup_phy_link() argument
612 return ixgbe_call_func(hw, hw->phy.ops.setup_link, (hw), in ixgbe_setup_phy_link()
617 * ixgbe_setup_internal_phy - Configure integrated PHY
618 * @hw: pointer to hardware structure
624 s32 ixgbe_setup_internal_phy(struct ixgbe_hw *hw) in ixgbe_setup_internal_phy() argument
626 return ixgbe_call_func(hw, hw->phy.ops.setup_internal_link, (hw), in ixgbe_setup_internal_phy()
631 * ixgbe_check_phy_link - Determine link and speed status
632 * @hw: pointer to hardware structure
639 s32 ixgbe_check_phy_link(struct ixgbe_hw *hw, ixgbe_link_speed *speed, in ixgbe_check_phy_link() argument
642 return ixgbe_call_func(hw, hw->phy.ops.check_link, (hw, speed, in ixgbe_check_phy_link()
647 * ixgbe_setup_phy_link_speed - Set auto advertise
648 * @hw: pointer to hardware structure
654 s32 ixgbe_setup_phy_link_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed, in ixgbe_setup_phy_link_speed() argument
657 return ixgbe_call_func(hw, hw->phy.ops.setup_link_speed, (hw, speed, in ixgbe_setup_phy_link_speed()
663 * ixgbe_set_phy_power - Control the phy power state
664 * @hw: pointer to hardware structure
667 s32 ixgbe_set_phy_power(struct ixgbe_hw *hw, bool on) in ixgbe_set_phy_power() argument
669 return ixgbe_call_func(hw, hw->phy.ops.set_phy_power, (hw, on), in ixgbe_set_phy_power()
674 * ixgbe_check_link - Get link and speed status
675 * @hw: pointer to hardware structure
682 s32 ixgbe_check_link(struct ixgbe_hw *hw, ixgbe_link_speed *speed, in ixgbe_check_link() argument
685 return ixgbe_call_func(hw, hw->mac.ops.check_link, (hw, speed, in ixgbe_check_link()
691 * ixgbe_disable_tx_laser - Disable Tx laser
692 * @hw: pointer to hardware structure
696 void ixgbe_disable_tx_laser(struct ixgbe_hw *hw) in ixgbe_disable_tx_laser() argument
698 if (hw->mac.ops.disable_tx_laser) in ixgbe_disable_tx_laser()
699 hw->mac.ops.disable_tx_laser(hw); in ixgbe_disable_tx_laser()
703 * ixgbe_enable_tx_laser - Enable Tx laser
704 * @hw: pointer to hardware structure
708 void ixgbe_enable_tx_laser(struct ixgbe_hw *hw) in ixgbe_enable_tx_laser() argument
710 if (hw->mac.ops.enable_tx_laser) in ixgbe_enable_tx_laser()
711 hw->mac.ops.enable_tx_laser(hw); in ixgbe_enable_tx_laser()
715 * ixgbe_flap_tx_laser - flap Tx laser to start autotry process
716 * @hw: pointer to hardware structure
722 void ixgbe_flap_tx_laser(struct ixgbe_hw *hw) in ixgbe_flap_tx_laser() argument
724 if (hw->mac.ops.flap_tx_laser) in ixgbe_flap_tx_laser()
725 hw->mac.ops.flap_tx_laser(hw); in ixgbe_flap_tx_laser()
729 * ixgbe_setup_link - Set link speed
730 * @hw: pointer to hardware structure
737 s32 ixgbe_setup_link(struct ixgbe_hw *hw, ixgbe_link_speed speed, in ixgbe_setup_link() argument
740 return ixgbe_call_func(hw, hw->mac.ops.setup_link, (hw, speed, in ixgbe_setup_link()
746 * ixgbe_setup_mac_link - Set link speed
747 * @hw: pointer to hardware structure
754 s32 ixgbe_setup_mac_link(struct ixgbe_hw *hw, ixgbe_link_speed speed, in ixgbe_setup_mac_link() argument
757 return ixgbe_call_func(hw, hw->mac.ops.setup_mac_link, (hw, speed, in ixgbe_setup_mac_link()
763 * ixgbe_get_link_capabilities - Returns link capabilities
764 * @hw: pointer to hardware structure
770 s32 ixgbe_get_link_capabilities(struct ixgbe_hw *hw, ixgbe_link_speed *speed, in ixgbe_get_link_capabilities() argument
773 return ixgbe_call_func(hw, hw->mac.ops.get_link_capabilities, (hw, in ixgbe_get_link_capabilities()
778 * ixgbe_led_on - Turn on LEDs
779 * @hw: pointer to hardware structure
784 s32 ixgbe_led_on(struct ixgbe_hw *hw, u32 index) in ixgbe_led_on() argument
786 return ixgbe_call_func(hw, hw->mac.ops.led_on, (hw, index), in ixgbe_led_on()
791 * ixgbe_led_off - Turn off LEDs
792 * @hw: pointer to hardware structure
797 s32 ixgbe_led_off(struct ixgbe_hw *hw, u32 index) in ixgbe_led_off() argument
799 return ixgbe_call_func(hw, hw->mac.ops.led_off, (hw, index), in ixgbe_led_off()
804 * ixgbe_blink_led_start - Blink LEDs
805 * @hw: pointer to hardware structure
810 s32 ixgbe_blink_led_start(struct ixgbe_hw *hw, u32 index) in ixgbe_blink_led_start() argument
812 return ixgbe_call_func(hw, hw->mac.ops.blink_led_start, (hw, index), in ixgbe_blink_led_start()
817 * ixgbe_blink_led_stop - Stop blinking LEDs
818 * @hw: pointer to hardware structure
823 s32 ixgbe_blink_led_stop(struct ixgbe_hw *hw, u32 index) in ixgbe_blink_led_stop() argument
825 return ixgbe_call_func(hw, hw->mac.ops.blink_led_stop, (hw, index), in ixgbe_blink_led_stop()
830 * ixgbe_init_eeprom_params - Initialize EEPROM parameters
831 * @hw: pointer to hardware structure
836 s32 ixgbe_init_eeprom_params(struct ixgbe_hw *hw) in ixgbe_init_eeprom_params() argument
838 return ixgbe_call_func(hw, hw->eeprom.ops.init_params, (hw), in ixgbe_init_eeprom_params()
844 * ixgbe_write_eeprom - Write word to EEPROM
845 * @hw: pointer to hardware structure
853 s32 ixgbe_write_eeprom(struct ixgbe_hw *hw, u16 offset, u16 data) in ixgbe_write_eeprom() argument
855 return ixgbe_call_func(hw, hw->eeprom.ops.write, (hw, offset, data), in ixgbe_write_eeprom()
860 * ixgbe_write_eeprom_buffer - Write word(s) to EEPROM
861 * @hw: pointer to hardware structure
870 s32 ixgbe_write_eeprom_buffer(struct ixgbe_hw *hw, u16 offset, u16 words, in ixgbe_write_eeprom_buffer() argument
873 return ixgbe_call_func(hw, hw->eeprom.ops.write_buffer, in ixgbe_write_eeprom_buffer()
874 (hw, offset, words, data), in ixgbe_write_eeprom_buffer()
879 * ixgbe_read_eeprom - Read word from EEPROM
880 * @hw: pointer to hardware structure
886 s32 ixgbe_read_eeprom(struct ixgbe_hw *hw, u16 offset, u16 *data) in ixgbe_read_eeprom() argument
888 return ixgbe_call_func(hw, hw->eeprom.ops.read, (hw, offset, data), in ixgbe_read_eeprom()
893 * ixgbe_read_eeprom_buffer - Read word(s) from EEPROM
894 * @hw: pointer to hardware structure
901 s32 ixgbe_read_eeprom_buffer(struct ixgbe_hw *hw, u16 offset, in ixgbe_read_eeprom_buffer() argument
904 return ixgbe_call_func(hw, hw->eeprom.ops.read_buffer, in ixgbe_read_eeprom_buffer()
905 (hw, offset, words, data), in ixgbe_read_eeprom_buffer()
910 * ixgbe_validate_eeprom_checksum - Validate EEPROM checksum
911 * @hw: pointer to hardware structure
916 s32 ixgbe_validate_eeprom_checksum(struct ixgbe_hw *hw, u16 *checksum_val) in ixgbe_validate_eeprom_checksum() argument
918 return ixgbe_call_func(hw, hw->eeprom.ops.validate_checksum, in ixgbe_validate_eeprom_checksum()
919 (hw, checksum_val), IXGBE_NOT_IMPLEMENTED); in ixgbe_validate_eeprom_checksum()
923 * ixgbe_update_eeprom_checksum - Updates the EEPROM checksum
924 * @hw: pointer to hardware structure
926 s32 ixgbe_update_eeprom_checksum(struct ixgbe_hw *hw) in ixgbe_update_eeprom_checksum() argument
928 return ixgbe_call_func(hw, hw->eeprom.ops.update_checksum, (hw), in ixgbe_update_eeprom_checksum()
933 * ixgbe_insert_mac_addr - Find a RAR for this mac address
934 * @hw: pointer to hardware structure
941 s32 ixgbe_insert_mac_addr(struct ixgbe_hw *hw, u8 *addr, u32 vmdq) in ixgbe_insert_mac_addr() argument
943 return ixgbe_call_func(hw, hw->mac.ops.insert_mac_addr, in ixgbe_insert_mac_addr()
944 (hw, addr, vmdq), in ixgbe_insert_mac_addr()
949 * ixgbe_set_rar - Set Rx address register
950 * @hw: pointer to hardware structure
958 s32 ixgbe_set_rar(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq, in ixgbe_set_rar() argument
961 return ixgbe_call_func(hw, hw->mac.ops.set_rar, (hw, index, addr, vmdq, in ixgbe_set_rar()
966 * ixgbe_clear_rar - Clear Rx address register
967 * @hw: pointer to hardware structure
972 s32 ixgbe_clear_rar(struct ixgbe_hw *hw, u32 index) in ixgbe_clear_rar() argument
974 return ixgbe_call_func(hw, hw->mac.ops.clear_rar, (hw, index), in ixgbe_clear_rar()
979 * ixgbe_set_vmdq - Associate a VMDq index with a receive address
980 * @hw: pointer to hardware structure
984 s32 ixgbe_set_vmdq(struct ixgbe_hw *hw, u32 rar, u32 vmdq) in ixgbe_set_vmdq() argument
986 return ixgbe_call_func(hw, hw->mac.ops.set_vmdq, (hw, rar, vmdq), in ixgbe_set_vmdq()
992 * ixgbe_set_vmdq_san_mac - Associate VMDq index 127 with a receive address
993 * @hw: pointer to hardware structure
996 s32 ixgbe_set_vmdq_san_mac(struct ixgbe_hw *hw, u32 vmdq) in ixgbe_set_vmdq_san_mac() argument
998 return ixgbe_call_func(hw, hw->mac.ops.set_vmdq_san_mac, in ixgbe_set_vmdq_san_mac()
999 (hw, vmdq), IXGBE_NOT_IMPLEMENTED); in ixgbe_set_vmdq_san_mac()
1003 * ixgbe_clear_vmdq - Disassociate a VMDq index from a receive address
1004 * @hw: pointer to hardware structure
1008 s32 ixgbe_clear_vmdq(struct ixgbe_hw *hw, u32 rar, u32 vmdq) in ixgbe_clear_vmdq() argument
1010 return ixgbe_call_func(hw, hw->mac.ops.clear_vmdq, (hw, rar, vmdq), in ixgbe_clear_vmdq()
1015 * ixgbe_init_rx_addrs - Initializes receive address filters.
1016 * @hw: pointer to hardware structure
1022 s32 ixgbe_init_rx_addrs(struct ixgbe_hw *hw) in ixgbe_init_rx_addrs() argument
1024 return ixgbe_call_func(hw, hw->mac.ops.init_rx_addrs, (hw), in ixgbe_init_rx_addrs()
1029 * ixgbe_get_num_rx_addrs - Returns the number of RAR entries.
1030 * @hw: pointer to hardware structure
1032 u32 ixgbe_get_num_rx_addrs(struct ixgbe_hw *hw) in ixgbe_get_num_rx_addrs() argument
1034 return hw->mac.num_rar_entries; in ixgbe_get_num_rx_addrs()
1038 * ixgbe_update_uc_addr_list - Updates the MAC's list of secondary addresses
1039 * @hw: pointer to hardware structure
1048 s32 ixgbe_update_uc_addr_list(struct ixgbe_hw *hw, u8 *addr_list, in ixgbe_update_uc_addr_list() argument
1051 return ixgbe_call_func(hw, hw->mac.ops.update_uc_addr_list, (hw, in ixgbe_update_uc_addr_list()
1057 * ixgbe_update_mc_addr_list - Updates the MAC's list of multicast addresses
1058 * @hw: pointer to hardware structure
1069 s32 ixgbe_update_mc_addr_list(struct ixgbe_hw *hw, u8 *mc_addr_list, in ixgbe_update_mc_addr_list() argument
1073 return ixgbe_call_func(hw, hw->mac.ops.update_mc_addr_list, (hw, in ixgbe_update_mc_addr_list()
1079 * ixgbe_enable_mc - Enable multicast address in RAR
1080 * @hw: pointer to hardware structure
1084 s32 ixgbe_enable_mc(struct ixgbe_hw *hw) in ixgbe_enable_mc() argument
1086 return ixgbe_call_func(hw, hw->mac.ops.enable_mc, (hw), in ixgbe_enable_mc()
1091 * ixgbe_disable_mc - Disable multicast address in RAR
1092 * @hw: pointer to hardware structure
1096 s32 ixgbe_disable_mc(struct ixgbe_hw *hw) in ixgbe_disable_mc() argument
1098 return ixgbe_call_func(hw, hw->mac.ops.disable_mc, (hw), in ixgbe_disable_mc()
1103 * ixgbe_clear_vfta - Clear VLAN filter table
1104 * @hw: pointer to hardware structure
1108 s32 ixgbe_clear_vfta(struct ixgbe_hw *hw) in ixgbe_clear_vfta() argument
1110 return ixgbe_call_func(hw, hw->mac.ops.clear_vfta, (hw), in ixgbe_clear_vfta()
1115 * ixgbe_set_vfta - Set VLAN filter table
1116 * @hw: pointer to hardware structure
1124 s32 ixgbe_set_vfta(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on, in ixgbe_set_vfta() argument
1127 return ixgbe_call_func(hw, hw->mac.ops.set_vfta, (hw, vlan, vind, in ixgbe_set_vfta()
1132 * ixgbe_set_vlvf - Set VLAN Pool Filter
1133 * @hw: pointer to hardware structure
1144 s32 ixgbe_set_vlvf(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on, in ixgbe_set_vlvf() argument
1147 return ixgbe_call_func(hw, hw->mac.ops.set_vlvf, (hw, vlan, vind, in ixgbe_set_vlvf()
1153 * ixgbe_toggle_txdctl - Toggle VF's queues
1154 * @hw: pointer to hardware structure
1159 s32 ixgbe_toggle_txdctl(struct ixgbe_hw *hw, u32 vind) in ixgbe_toggle_txdctl() argument
1161 return ixgbe_call_func(hw, hw->mac.ops.toggle_txdctl, (hw, in ixgbe_toggle_txdctl()
1166 * ixgbe_fc_enable - Enable flow control
1167 * @hw: pointer to hardware structure
1171 s32 ixgbe_fc_enable(struct ixgbe_hw *hw) in ixgbe_fc_enable() argument
1173 return ixgbe_call_func(hw, hw->mac.ops.fc_enable, (hw), in ixgbe_fc_enable()
1178 * ixgbe_setup_fc - Set up flow control
1179 * @hw: pointer to hardware structure
1183 s32 ixgbe_setup_fc(struct ixgbe_hw *hw) in ixgbe_setup_fc() argument
1185 return ixgbe_call_func(hw, hw->mac.ops.setup_fc, (hw), in ixgbe_setup_fc()
1190 * ixgbe_set_fw_drv_ver - Try to send the driver version number FW
1191 * @hw: pointer to hardware structure
1199 s32 ixgbe_set_fw_drv_ver(struct ixgbe_hw *hw, u8 maj, u8 min, u8 build, in ixgbe_set_fw_drv_ver() argument
1202 return ixgbe_call_func(hw, hw->mac.ops.set_fw_drv_ver, (hw, maj, min, in ixgbe_set_fw_drv_ver()
1209 * ixgbe_get_thermal_sensor_data - Gathers thermal sensor data
1210 * @hw: pointer to hardware structure
1214 s32 ixgbe_get_thermal_sensor_data(struct ixgbe_hw *hw) in ixgbe_get_thermal_sensor_data() argument
1216 return ixgbe_call_func(hw, hw->mac.ops.get_thermal_sensor_data, (hw), in ixgbe_get_thermal_sensor_data()
1221 * ixgbe_init_thermal_sensor_thresh - Inits thermal sensor thresholds
1222 * @hw: pointer to hardware structure
1226 s32 ixgbe_init_thermal_sensor_thresh(struct ixgbe_hw *hw) in ixgbe_init_thermal_sensor_thresh() argument
1228 return ixgbe_call_func(hw, hw->mac.ops.init_thermal_sensor_thresh, (hw), in ixgbe_init_thermal_sensor_thresh()
1233 * ixgbe_dmac_config - Configure DMA Coalescing registers.
1234 * @hw: pointer to hardware structure
1239 s32 ixgbe_dmac_config(struct ixgbe_hw *hw) in ixgbe_dmac_config() argument
1241 return ixgbe_call_func(hw, hw->mac.ops.dmac_config, (hw), in ixgbe_dmac_config()
1246 * ixgbe_dmac_update_tcs - Configure DMA Coalescing registers.
1247 * @hw: pointer to hardware structure
1251 s32 ixgbe_dmac_update_tcs(struct ixgbe_hw *hw) in ixgbe_dmac_update_tcs() argument
1253 return ixgbe_call_func(hw, hw->mac.ops.dmac_update_tcs, (hw), in ixgbe_dmac_update_tcs()
1258 * ixgbe_dmac_config_tcs - Configure DMA Coalescing registers.
1259 * @hw: pointer to hardware structure
1264 s32 ixgbe_dmac_config_tcs(struct ixgbe_hw *hw) in ixgbe_dmac_config_tcs() argument
1266 return ixgbe_call_func(hw, hw->mac.ops.dmac_config_tcs, (hw), in ixgbe_dmac_config_tcs()
1271 * ixgbe_setup_eee - Enable/disable EEE support
1272 * @hw: pointer to the HW structure
1276 * Auto-negotiation must be started after BASE-T EEE bits in PHY register 7.3C
1280 s32 ixgbe_setup_eee(struct ixgbe_hw *hw, bool enable_eee) in ixgbe_setup_eee() argument
1282 return ixgbe_call_func(hw, hw->mac.ops.setup_eee, (hw, enable_eee), in ixgbe_setup_eee()
1287 * ixgbe_set_source_address_pruning - Enable/Disable source address pruning
1288 * @hw: pointer to hardware structure
1290 * @pool: Rx pool - Rx pool to toggle source address pruning
1292 void ixgbe_set_source_address_pruning(struct ixgbe_hw *hw, bool enable, in ixgbe_set_source_address_pruning() argument
1295 if (hw->mac.ops.set_source_address_pruning) in ixgbe_set_source_address_pruning()
1296 hw->mac.ops.set_source_address_pruning(hw, enable, pool); in ixgbe_set_source_address_pruning()
1300 * ixgbe_set_ethertype_anti_spoofing - Enable/Disable Ethertype anti-spoofing
1301 * @hw: pointer to hardware structure
1302 * @enable: enable or disable switch for Ethertype anti-spoofing
1303 * @vf: Virtual Function pool - VF Pool to set for Ethertype anti-spoofing
1306 void ixgbe_set_ethertype_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf) in ixgbe_set_ethertype_anti_spoofing() argument
1308 if (hw->mac.ops.set_ethertype_anti_spoofing) in ixgbe_set_ethertype_anti_spoofing()
1309 hw->mac.ops.set_ethertype_anti_spoofing(hw, enable, vf); in ixgbe_set_ethertype_anti_spoofing()
1313 * ixgbe_read_iosf_sb_reg - Read 32 bit PHY register
1314 * @hw: pointer to hardware structure
1321 s32 ixgbe_read_iosf_sb_reg(struct ixgbe_hw *hw, u32 reg_addr, in ixgbe_read_iosf_sb_reg() argument
1324 return ixgbe_call_func(hw, hw->mac.ops.read_iosf_sb_reg, (hw, reg_addr, in ixgbe_read_iosf_sb_reg()
1329 * ixgbe_write_iosf_sb_reg - Write 32 bit register through IOSF Sideband
1330 * @hw: pointer to hardware structure
1337 s32 ixgbe_write_iosf_sb_reg(struct ixgbe_hw *hw, u32 reg_addr, in ixgbe_write_iosf_sb_reg() argument
1340 return ixgbe_call_func(hw, hw->mac.ops.write_iosf_sb_reg, (hw, reg_addr, in ixgbe_write_iosf_sb_reg()
1345 * ixgbe_disable_mdd - Disable malicious driver detection
1346 * @hw: pointer to hardware structure
1349 void ixgbe_disable_mdd(struct ixgbe_hw *hw) in ixgbe_disable_mdd() argument
1351 if (hw->mac.ops.disable_mdd) in ixgbe_disable_mdd()
1352 hw->mac.ops.disable_mdd(hw); in ixgbe_disable_mdd()
1356 * ixgbe_enable_mdd - Enable malicious driver detection
1357 * @hw: pointer to hardware structure
1360 void ixgbe_enable_mdd(struct ixgbe_hw *hw) in ixgbe_enable_mdd() argument
1362 if (hw->mac.ops.enable_mdd) in ixgbe_enable_mdd()
1363 hw->mac.ops.enable_mdd(hw); in ixgbe_enable_mdd()
1367 * ixgbe_mdd_event - Handle malicious driver detection event
1368 * @hw: pointer to hardware structure
1372 void ixgbe_mdd_event(struct ixgbe_hw *hw, u32 *vf_bitmap) in ixgbe_mdd_event() argument
1374 if (hw->mac.ops.mdd_event) in ixgbe_mdd_event()
1375 hw->mac.ops.mdd_event(hw, vf_bitmap); in ixgbe_mdd_event()
1379 * ixgbe_restore_mdd_vf - Restore VF that was disabled during malicious driver
1381 * @hw: pointer to hardware structure
1385 void ixgbe_restore_mdd_vf(struct ixgbe_hw *hw, u32 vf) in ixgbe_restore_mdd_vf() argument
1387 if (hw->mac.ops.restore_mdd_vf) in ixgbe_restore_mdd_vf()
1388 hw->mac.ops.restore_mdd_vf(hw, vf); in ixgbe_restore_mdd_vf()
1392 * ixgbe_fw_recovery_mode - Check if in FW NVM recovery mode
1393 * @hw: pointer to hardware structure
1396 bool ixgbe_fw_recovery_mode(struct ixgbe_hw *hw) in ixgbe_fw_recovery_mode() argument
1398 if (hw->mac.ops.fw_recovery_mode) in ixgbe_fw_recovery_mode()
1399 return hw->mac.ops.fw_recovery_mode(hw); in ixgbe_fw_recovery_mode()
1404 * ixgbe_enter_lplu - Transition to low power states
1405 * @hw: pointer to hardware structure
1408 * (from D0 to non-D0).
1410 s32 ixgbe_enter_lplu(struct ixgbe_hw *hw) in ixgbe_enter_lplu() argument
1412 return ixgbe_call_func(hw, hw->phy.ops.enter_lplu, (hw), in ixgbe_enter_lplu()
1417 * ixgbe_handle_lasi - Handle external Base T PHY interrupt
1418 * @hw: pointer to hardware structure
1427 s32 ixgbe_handle_lasi(struct ixgbe_hw *hw) in ixgbe_handle_lasi() argument
1429 return ixgbe_call_func(hw, hw->phy.ops.handle_lasi, (hw), in ixgbe_handle_lasi()
1434 * ixgbe_bypass_rw - Bit bang data into by_pass FW
1435 * @hw: pointer to hardware structure
1439 * Bit-bangs the cmd to the by_pass FW status points to what is returned.
1441 s32 ixgbe_bypass_rw(struct ixgbe_hw *hw, u32 cmd, u32 *status) in ixgbe_bypass_rw() argument
1443 return ixgbe_call_func(hw, hw->mac.ops.bypass_rw, (hw, cmd, status), in ixgbe_bypass_rw()
1448 * ixgbe_bypass_valid_rd - Verify valid return from bit-bang.
1449 * @hw: pointer to hardware structure
1450 * @in_reg: The register cmd for the bit-bang read.
1451 * @out_reg: The register returned from a bit-bang read.
1459 bool ixgbe_bypass_valid_rd(struct ixgbe_hw *hw, u32 in_reg, u32 out_reg) in ixgbe_bypass_valid_rd() argument
1461 return ixgbe_call_func(hw, hw->mac.ops.bypass_valid_rd, in ixgbe_bypass_valid_rd()
1466 * ixgbe_bypass_set - Set a bypass field in the FW CTRL Regiter.
1467 * @hw: pointer to hardware structure
1477 s32 ixgbe_bypass_set(struct ixgbe_hw *hw, u32 cmd, u32 event, u32 action) in ixgbe_bypass_set() argument
1479 return ixgbe_call_func(hw, hw->mac.ops.bypass_set, in ixgbe_bypass_set()
1480 (hw, cmd, event, action), in ixgbe_bypass_set()
1485 * ixgbe_bypass_rd_eep - Read the bypass FW eeprom address
1486 * @hw: pointer to hardware structure
1490 s32 ixgbe_bypass_rd_eep(struct ixgbe_hw *hw, u32 addr, u8 *value) in ixgbe_bypass_rd_eep() argument
1492 return ixgbe_call_func(hw, hw->mac.ops.bypass_rd_eep, in ixgbe_bypass_rd_eep()
1493 (hw, addr, value), IXGBE_NOT_IMPLEMENTED); in ixgbe_bypass_rd_eep()
1497 * ixgbe_read_analog_reg8 - Reads 8 bit analog register
1498 * @hw: pointer to hardware structure
1504 s32 ixgbe_read_analog_reg8(struct ixgbe_hw *hw, u32 reg, u8 *val) in ixgbe_read_analog_reg8() argument
1506 return ixgbe_call_func(hw, hw->mac.ops.read_analog_reg8, (hw, reg, in ixgbe_read_analog_reg8()
1511 * ixgbe_write_analog_reg8 - Writes 8 bit analog register
1512 * @hw: pointer to hardware structure
1518 s32 ixgbe_write_analog_reg8(struct ixgbe_hw *hw, u32 reg, u8 val) in ixgbe_write_analog_reg8() argument
1520 return ixgbe_call_func(hw, hw->mac.ops.write_analog_reg8, (hw, reg, in ixgbe_write_analog_reg8()
1525 * ixgbe_init_uta_tables - Initializes Unicast Table Arrays.
1526 * @hw: pointer to hardware structure
1531 s32 ixgbe_init_uta_tables(struct ixgbe_hw *hw) in ixgbe_init_uta_tables() argument
1533 return ixgbe_call_func(hw, hw->mac.ops.init_uta_tables, (hw), in ixgbe_init_uta_tables()
1538 * ixgbe_read_i2c_byte - Reads 8 bit word over I2C at specified device address
1539 * @hw: pointer to hardware structure
1546 s32 ixgbe_read_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, in ixgbe_read_i2c_byte() argument
1549 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte, (hw, byte_offset, in ixgbe_read_i2c_byte()
1554 * ixgbe_read_i2c_byte_unlocked - Reads 8 bit word via I2C from device address
1555 * @hw: pointer to hardware structure
1562 s32 ixgbe_read_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_byte_unlocked() argument
1565 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte_unlocked, in ixgbe_read_i2c_byte_unlocked()
1566 (hw, byte_offset, dev_addr, data), in ixgbe_read_i2c_byte_unlocked()
1571 * ixgbe_read_link - Perform read operation on link device
1572 * @hw: pointer to the hardware structure
1579 s32 ixgbe_read_link(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 *val) in ixgbe_read_link() argument
1581 return ixgbe_call_func(hw, hw->link.ops.read_link, (hw, addr, in ixgbe_read_link()
1586 * ixgbe_read_link_unlocked - Perform read operation on link device
1587 * @hw: pointer to the hardware structure
1594 s32 ixgbe_read_link_unlocked(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 *val) in ixgbe_read_link_unlocked() argument
1596 return ixgbe_call_func(hw, hw->link.ops.read_link_unlocked, in ixgbe_read_link_unlocked()
1597 (hw, addr, reg, val), IXGBE_NOT_IMPLEMENTED); in ixgbe_read_link_unlocked()
1601 * ixgbe_write_i2c_byte - Writes 8 bit word over I2C
1602 * @hw: pointer to hardware structure
1610 s32 ixgbe_write_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, in ixgbe_write_i2c_byte() argument
1613 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte, (hw, byte_offset, in ixgbe_write_i2c_byte()
1618 * ixgbe_write_i2c_byte_unlocked - Writes 8 bit word over I2C
1619 * @hw: pointer to hardware structure
1627 s32 ixgbe_write_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_byte_unlocked() argument
1630 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte_unlocked, in ixgbe_write_i2c_byte_unlocked()
1631 (hw, byte_offset, dev_addr, data), in ixgbe_write_i2c_byte_unlocked()
1636 * ixgbe_write_link - Perform write operation on link device
1637 * @hw: pointer to the hardware structure
1644 s32 ixgbe_write_link(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 val) in ixgbe_write_link() argument
1646 return ixgbe_call_func(hw, hw->link.ops.write_link, in ixgbe_write_link()
1647 (hw, addr, reg, val), IXGBE_NOT_IMPLEMENTED); in ixgbe_write_link()
1651 * ixgbe_write_link_unlocked - Perform write operation on link device
1652 * @hw: pointer to the hardware structure
1659 s32 ixgbe_write_link_unlocked(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 val) in ixgbe_write_link_unlocked() argument
1661 return ixgbe_call_func(hw, hw->link.ops.write_link_unlocked, in ixgbe_write_link_unlocked()
1662 (hw, addr, reg, val), IXGBE_NOT_IMPLEMENTED); in ixgbe_write_link_unlocked()
1666 * ixgbe_write_i2c_eeprom - Writes 8 bit EEPROM word over I2C interface
1667 * @hw: pointer to hardware structure
1673 s32 ixgbe_write_i2c_eeprom(struct ixgbe_hw *hw, in ixgbe_write_i2c_eeprom() argument
1676 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_eeprom, in ixgbe_write_i2c_eeprom()
1677 (hw, byte_offset, eeprom_data), in ixgbe_write_i2c_eeprom()
1682 * ixgbe_read_i2c_eeprom - Reads 8 bit EEPROM word over I2C interface
1683 * @hw: pointer to hardware structure
1689 s32 ixgbe_read_i2c_eeprom(struct ixgbe_hw *hw, u8 byte_offset, u8 *eeprom_data) in ixgbe_read_i2c_eeprom() argument
1691 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_eeprom, in ixgbe_read_i2c_eeprom()
1692 (hw, byte_offset, eeprom_data), in ixgbe_read_i2c_eeprom()
1697 * ixgbe_get_supported_physical_layer - Returns physical layer type
1698 * @hw: pointer to hardware structure
1702 u64 ixgbe_get_supported_physical_layer(struct ixgbe_hw *hw) in ixgbe_get_supported_physical_layer() argument
1704 return ixgbe_call_func(hw, hw->mac.ops.get_supported_physical_layer, in ixgbe_get_supported_physical_layer()
1705 (hw), IXGBE_PHYSICAL_LAYER_UNKNOWN); in ixgbe_get_supported_physical_layer()
1709 * ixgbe_enable_rx_dma - Enables Rx DMA unit, dependent on device specifics
1710 * @hw: pointer to hardware structure
1715 s32 ixgbe_enable_rx_dma(struct ixgbe_hw *hw, u32 regval) in ixgbe_enable_rx_dma() argument
1717 return ixgbe_call_func(hw, hw->mac.ops.enable_rx_dma, in ixgbe_enable_rx_dma()
1718 (hw, regval), IXGBE_NOT_IMPLEMENTED); in ixgbe_enable_rx_dma()
1722 * ixgbe_disable_sec_rx_path - Stops the receive data path
1723 * @hw: pointer to hardware structure
1727 s32 ixgbe_disable_sec_rx_path(struct ixgbe_hw *hw) in ixgbe_disable_sec_rx_path() argument
1729 return ixgbe_call_func(hw, hw->mac.ops.disable_sec_rx_path, in ixgbe_disable_sec_rx_path()
1730 (hw), IXGBE_NOT_IMPLEMENTED); in ixgbe_disable_sec_rx_path()
1734 * ixgbe_enable_sec_rx_path - Enables the receive data path
1735 * @hw: pointer to hardware structure
1739 s32 ixgbe_enable_sec_rx_path(struct ixgbe_hw *hw) in ixgbe_enable_sec_rx_path() argument
1741 return ixgbe_call_func(hw, hw->mac.ops.enable_sec_rx_path, in ixgbe_enable_sec_rx_path()
1742 (hw), IXGBE_NOT_IMPLEMENTED); in ixgbe_enable_sec_rx_path()
1746 * ixgbe_acquire_swfw_semaphore - Acquire SWFW semaphore
1747 * @hw: pointer to hardware structure
1753 s32 ixgbe_acquire_swfw_semaphore(struct ixgbe_hw *hw, u32 mask) in ixgbe_acquire_swfw_semaphore() argument
1755 return ixgbe_call_func(hw, hw->mac.ops.acquire_swfw_sync, in ixgbe_acquire_swfw_semaphore()
1756 (hw, mask), IXGBE_NOT_IMPLEMENTED); in ixgbe_acquire_swfw_semaphore()
1760 * ixgbe_release_swfw_semaphore - Release SWFW semaphore
1761 * @hw: pointer to hardware structure
1767 void ixgbe_release_swfw_semaphore(struct ixgbe_hw *hw, u32 mask) in ixgbe_release_swfw_semaphore() argument
1769 if (hw->mac.ops.release_swfw_sync) in ixgbe_release_swfw_semaphore()
1770 hw->mac.ops.release_swfw_sync(hw, mask); in ixgbe_release_swfw_semaphore()
1774 * ixgbe_init_swfw_semaphore - Clean up SWFW semaphore
1775 * @hw: pointer to hardware structure
1782 void ixgbe_init_swfw_semaphore(struct ixgbe_hw *hw) in ixgbe_init_swfw_semaphore() argument
1784 if (hw->mac.ops.init_swfw_sync) in ixgbe_init_swfw_semaphore()
1785 hw->mac.ops.init_swfw_sync(hw); in ixgbe_init_swfw_semaphore()
1789 void ixgbe_disable_rx(struct ixgbe_hw *hw) in ixgbe_disable_rx() argument
1791 if (hw->mac.ops.disable_rx) in ixgbe_disable_rx()
1792 hw->mac.ops.disable_rx(hw); in ixgbe_disable_rx()
1795 void ixgbe_enable_rx(struct ixgbe_hw *hw) in ixgbe_enable_rx() argument
1797 if (hw->mac.ops.enable_rx) in ixgbe_enable_rx()
1798 hw->mac.ops.enable_rx(hw); in ixgbe_enable_rx()
1802 * ixgbe_set_rate_select_speed - Set module link speed
1803 * @hw: pointer to hardware structure
1808 void ixgbe_set_rate_select_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed) in ixgbe_set_rate_select_speed() argument
1810 if (hw->mac.ops.set_rate_select_speed) in ixgbe_set_rate_select_speed()
1811 hw->mac.ops.set_rate_select_speed(hw, speed); in ixgbe_set_rate_select_speed()