| /freebsd/sys/compat/linuxkpi/common/src/ |
| H A D | linux_80211_macops.c | 1 /*- 2 * Copyright (c) 2021-2022 The FreeBSD Foundation 44 __func__, __LINE__, curcpu, curthread->td_tid, \ 51 lkpi_80211_mo_start(struct ieee80211_hw *hw) in lkpi_80211_mo_start() argument 56 lockdep_assert_wiphy(hw->wiphy); in lkpi_80211_mo_start() 58 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_start() 59 if (lhw->ops->start == NULL) { in lkpi_80211_mo_start() 64 if ((lhw->sc_flags & LKPI_MAC80211_DRV_STARTED)) { in lkpi_80211_mo_start() 69 LKPI_80211_TRACE_MO("hw %p", hw); in lkpi_80211_mo_start() 70 error = lhw->ops->start(hw); in lkpi_80211_mo_start() [all …]
|
| /freebsd/sys/dev/igc/ |
| H A D | igc_api.c | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 11 * igc_init_mac_params - Initialize MAC function pointers 12 * @hw: pointer to the HW structure 17 s32 igc_init_mac_params(struct igc_hw *hw) in igc_init_mac_params() argument 21 if (hw->mac.ops.init_params) { in igc_init_mac_params() 22 ret_val = hw->mac.ops.init_params(hw); in igc_init_mac_params() 29 ret_val = -IGC_ERR_CONFIG; in igc_init_mac_params() 37 * igc_init_nvm_params - Initialize NVM function pointers 38 * @hw: pointer to the HW structure [all …]
|
| H A D | igc_phy.c | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 10 static s32 igc_wait_autoneg(struct igc_hw *hw); 13 * igc_init_phy_ops_generic - Initialize PHY function pointers 14 * @hw: pointer to the HW structure 16 * Setups up the function pointers to no-op functions 18 void igc_init_phy_ops_generic(struct igc_hw *hw) in igc_init_phy_ops_generic() argument 20 struct igc_phy_info *phy = &hw->phy; in igc_init_phy_ops_generic() 24 phy->ops.init_params = igc_null_ops_generic; in igc_init_phy_ops_generic() 25 phy->ops.acquire = igc_null_ops_generic; in igc_init_phy_ops_generic() [all …]
|
| H A D | igc_i225.c | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 10 static s32 igc_init_nvm_params_i225(struct igc_hw *hw); 11 static s32 igc_init_mac_params_i225(struct igc_hw *hw); 12 static s32 igc_init_phy_params_i225(struct igc_hw *hw); 13 static s32 igc_reset_hw_i225(struct igc_hw *hw); 14 static s32 igc_acquire_nvm_i225(struct igc_hw *hw); 15 static void igc_release_nvm_i225(struct igc_hw *hw); 16 static s32 igc_get_hw_semaphore_i225(struct igc_hw *hw); 17 static s32 __igc_write_nvm_srwr(struct igc_hw *hw, u16 offset, u16 words, [all …]
|
| H A D | igc_nvm.c | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 10 static void igc_reload_nvm_generic(struct igc_hw *hw); 13 * igc_init_nvm_ops_generic - Initialize NVM function pointers 14 * @hw: pointer to the HW structure 16 * Setups up the function pointers to no-op functions 18 void igc_init_nvm_ops_generic(struct igc_hw *hw) in igc_init_nvm_ops_generic() argument 20 struct igc_nvm_info *nvm = &hw->nvm; in igc_init_nvm_ops_generic() 24 nvm->ops.init_params = igc_null_ops_generic; in igc_init_nvm_ops_generic() 25 nvm->ops.acquire = igc_null_ops_generic; in igc_init_nvm_ops_generic() [all …]
|
| /freebsd/sys/dev/ixgbe/ |
| H A D | ixgbe_api.c | 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 [all …]
|
| H A D | ixgbe_x540.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 48 static s32 ixgbe_poll_flash_update_done_X540(struct ixgbe_hw *hw); 49 static s32 ixgbe_get_swfw_sync_semaphore(struct ixgbe_hw *hw); 50 static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw); 53 * ixgbe_init_ops_X540 - Inits func ptrs and MAC type 54 * @hw: pointer to hardware structure 59 s32 ixgbe_init_ops_X540(struct ixgbe_hw *hw) in ixgbe_init_ops_X540() argument 61 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X540() 62 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_ops_X540() [all …]
|
| H A D | ixgbe_x550.c | 3 Copyright (c) 2001-2020, Intel Corporation 41 static s32 ixgbe_setup_ixfi_x550em(struct ixgbe_hw *hw, ixgbe_link_speed *speed); 44 static s32 ixgbe_read_mng_if_sel_x550em(struct ixgbe_hw *hw); 47 * ixgbe_init_ops_X550 - Inits func ptrs and MAC type 48 * @hw: pointer to hardware structure 53 s32 ixgbe_init_ops_X550(struct ixgbe_hw *hw) in ixgbe_init_ops_X550() argument 55 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X550() 56 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_X550() 61 ret_val = ixgbe_init_ops_X540(hw); in ixgbe_init_ops_X550() 62 mac->ops.dmac_config = ixgbe_dmac_config_X550; in ixgbe_init_ops_X550() [all …]
|
| H A D | ixgbe_phy.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 39 static void ixgbe_i2c_start(struct ixgbe_hw *hw); 40 static void ixgbe_i2c_stop(struct ixgbe_hw *hw); 41 static void ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data); 42 static s32 ixgbe_clock_out_i2c_byte(struct ixgbe_hw *hw, u8 data); 43 static s32 ixgbe_get_i2c_ack(struct ixgbe_hw *hw); 44 static void ixgbe_clock_in_i2c_bit(struct ixgbe_hw *hw, bool *data); 45 static s32 ixgbe_clock_out_i2c_bit(struct ixgbe_hw *hw, bool data); 46 static void ixgbe_raise_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); [all …]
|
| H A D | ixgbe_82598.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 48 static s32 ixgbe_get_link_capabilities_82598(struct ixgbe_hw *hw, 51 static enum ixgbe_media_type ixgbe_get_media_type_82598(struct ixgbe_hw *hw); 52 static s32 ixgbe_start_mac_link_82598(struct ixgbe_hw *hw, 54 static s32 ixgbe_check_mac_link_82598(struct ixgbe_hw *hw, 57 static s32 ixgbe_setup_mac_link_82598(struct ixgbe_hw *hw, 60 static s32 ixgbe_setup_copper_link_82598(struct ixgbe_hw *hw, 63 static s32 ixgbe_reset_hw_82598(struct ixgbe_hw *hw); 64 static s32 ixgbe_clear_vmdq_82598(struct ixgbe_hw *hw, u32 rar, u32 vmdq); [all …]
|
| H A D | ixgbe_mbx.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 38 static s32 ixgbe_poll_for_msg(struct ixgbe_hw *hw, u16 mbx_id); 39 static s32 ixgbe_poll_for_ack(struct ixgbe_hw *hw, u16 mbx_id); 42 * ixgbe_read_mbx - Reads a message from the mailbox 43 * @hw: pointer to the HW structure 50 s32 ixgbe_read_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) in ixgbe_read_mbx() argument 52 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_mbx() 57 if (size > mbx->size) { in ixgbe_read_mbx() 60 size, mbx->size); in ixgbe_read_mbx() [all …]
|
| H A D | ixgbe_82599.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 48 static s32 ixgbe_setup_copper_link_82599(struct ixgbe_hw *hw, 51 static s32 ixgbe_verify_fw_version_82599(struct ixgbe_hw *hw); 52 static s32 ixgbe_read_eeprom_82599(struct ixgbe_hw *hw, 54 static s32 ixgbe_read_eeprom_buffer_82599(struct ixgbe_hw *hw, u16 offset, 56 static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset, 58 static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset, 61 void ixgbe_init_mac_link_ops_82599(struct ixgbe_hw *hw) in ixgbe_init_mac_link_ops_82599() argument 63 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() [all …]
|
| /freebsd/sys/dev/e1000/ |
| H A D | e1000_82541.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 46 static s32 e1000_init_phy_params_82541(struct e1000_hw *hw); 47 static s32 e1000_init_nvm_params_82541(struct e1000_hw *hw); 48 static s32 e1000_init_mac_params_82541(struct e1000_hw *hw); 49 static s32 e1000_reset_hw_82541(struct e1000_hw *hw); 50 static s32 e1000_init_hw_82541(struct e1000_hw *hw); 51 static s32 e1000_get_link_up_info_82541(struct e1000_hw *hw, u16 *speed, 53 static s32 e1000_phy_hw_reset_82541(struct e1000_hw *hw); 54 static s32 e1000_setup_copper_link_82541(struct e1000_hw *hw); [all …]
|
| H A D | e1000_82540.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 48 static s32 e1000_init_phy_params_82540(struct e1000_hw *hw); 49 static s32 e1000_init_nvm_params_82540(struct e1000_hw *hw); 50 static s32 e1000_init_mac_params_82540(struct e1000_hw *hw); 51 static s32 e1000_adjust_serdes_amplitude_82540(struct e1000_hw *hw); 52 static void e1000_clear_hw_cntrs_82540(struct e1000_hw *hw); 53 static s32 e1000_init_hw_82540(struct e1000_hw *hw); 54 static s32 e1000_reset_hw_82540(struct e1000_hw *hw); 55 static s32 e1000_set_phy_mode_82540(struct e1000_hw *hw); [all …]
|
| H A D | e1000_api.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 38 * e1000_init_mac_params - Initialize MAC function pointers 39 * @hw: pointer to the HW structure 44 s32 e1000_init_mac_params(struct e1000_hw *hw) in e1000_init_mac_params() argument 48 if (hw->mac.ops.init_params) { in e1000_init_mac_params() 49 ret_val = hw->mac.ops.init_params(hw); in e1000_init_mac_params() 56 ret_val = -E1000_ERR_CONFIG; in e1000_init_mac_params() 64 * e1000_init_nvm_params - Initialize NVM function pointers 65 * @hw: pointer to the HW structure [all …]
|
| H A D | e1000_80003es2lan.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 41 static s32 e1000_acquire_phy_80003es2lan(struct e1000_hw *hw); 42 static void e1000_release_phy_80003es2lan(struct e1000_hw *hw); 43 static s32 e1000_acquire_nvm_80003es2lan(struct e1000_hw *hw); 44 static void e1000_release_nvm_80003es2lan(struct e1000_hw *hw); 45 static s32 e1000_read_phy_reg_gg82563_80003es2lan(struct e1000_hw *hw, 48 static s32 e1000_write_phy_reg_gg82563_80003es2lan(struct e1000_hw *hw, 51 static s32 e1000_write_nvm_80003es2lan(struct e1000_hw *hw, u16 offset, 53 static s32 e1000_get_cfg_done_80003es2lan(struct e1000_hw *hw); [all …]
|
| H A D | e1000_82571.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 53 static s32 e1000_acquire_nvm_82571(struct e1000_hw *hw); 54 static void e1000_release_nvm_82571(struct e1000_hw *hw); 55 static s32 e1000_write_nvm_82571(struct e1000_hw *hw, u16 offset, 57 static s32 e1000_update_nvm_checksum_82571(struct e1000_hw *hw); 58 static s32 e1000_validate_nvm_checksum_82571(struct e1000_hw *hw); 59 static s32 e1000_get_cfg_done_82571(struct e1000_hw *hw); 60 static s32 e1000_set_d0_lplu_state_82571(struct e1000_hw *hw, 62 static s32 e1000_reset_hw_82571(struct e1000_hw *hw); [all …]
|
| H A D | e1000_82575.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 48 static s32 e1000_init_phy_params_82575(struct e1000_hw *hw); 49 static s32 e1000_init_mac_params_82575(struct e1000_hw *hw); 50 static s32 e1000_acquire_nvm_82575(struct e1000_hw *hw); 51 static void e1000_release_nvm_82575(struct e1000_hw *hw); 52 static s32 e1000_check_for_link_82575(struct e1000_hw *hw); 53 static s32 e1000_check_for_link_media_swap(struct e1000_hw *hw); 54 static s32 e1000_get_cfg_done_82575(struct e1000_hw *hw); 55 static s32 e1000_get_link_up_info_82575(struct e1000_hw *hw, u16 *speed, [all …]
|
| H A D | e1000_phy.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 37 static s32 e1000_wait_autoneg(struct e1000_hw *hw); 38 static s32 e1000_access_phy_wakeup_reg_bm(struct e1000_hw *hw, u32 offset, 41 static s32 e1000_access_phy_debug_regs_hv(struct e1000_hw *hw, u32 offset, 65 * e1000_init_phy_ops_generic - Initialize PHY function pointers 66 * @hw: pointer to the HW structure 68 * Setups up the function pointers to no-op functions 70 void e1000_init_phy_ops_generic(struct e1000_hw *hw) in e1000_init_phy_ops_generic() argument 72 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_ops_generic() [all …]
|
| H A D | e1000_ich8lan.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 36 * 82562G-2 10/100 Network Connection 38 * 82562GT-2 10/100 Network Connection 40 * 82562V-2 10/100 Network Connection 41 * 82566DC-2 Gigabit Network Connection 43 * 82566DM-2 Gigabit Network Connection 50 * 82567LM-2 Gigabit Network Connection 51 * 82567LF-2 Gigabit Network Connection 52 * 82567V-2 Gigabit Network Connection [all …]
|
| H A D | e1000_mbx.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 38 * e1000_null_mbx_check_for_flag - No-op function, return 0 39 * @hw: pointer to the HW structure 42 static s32 e1000_null_mbx_check_for_flag(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_mbx_check_for_flag() argument 51 * e1000_null_mbx_transact - No-op function, return 0 52 * @hw: pointer to the HW structure 57 static s32 e1000_null_mbx_transact(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_mbx_transact() argument 68 * e1000_read_mbx - Reads a message from the mailbox 69 * @hw: pointer to the HW structure [all …]
|
| H A D | e1000_82542.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 41 static s32 e1000_init_phy_params_82542(struct e1000_hw *hw); 42 static s32 e1000_init_nvm_params_82542(struct e1000_hw *hw); 43 static s32 e1000_init_mac_params_82542(struct e1000_hw *hw); 44 static s32 e1000_get_bus_info_82542(struct e1000_hw *hw); 45 static s32 e1000_reset_hw_82542(struct e1000_hw *hw); 46 static s32 e1000_init_hw_82542(struct e1000_hw *hw); 47 static s32 e1000_setup_link_82542(struct e1000_hw *hw); 48 static s32 e1000_led_on_82542(struct e1000_hw *hw); [all …]
|
| H A D | e1000_82543.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 46 static s32 e1000_init_phy_params_82543(struct e1000_hw *hw); 47 static s32 e1000_init_nvm_params_82543(struct e1000_hw *hw); 48 static s32 e1000_init_mac_params_82543(struct e1000_hw *hw); 49 static s32 e1000_read_phy_reg_82543(struct e1000_hw *hw, u32 offset, 51 static s32 e1000_write_phy_reg_82543(struct e1000_hw *hw, u32 offset, 53 static s32 e1000_phy_force_speed_duplex_82543(struct e1000_hw *hw); 54 static s32 e1000_phy_hw_reset_82543(struct e1000_hw *hw); 55 static s32 e1000_reset_hw_82543(struct e1000_hw *hw); [all …]
|
| H A D | e1000_vf.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 39 static s32 e1000_init_phy_params_vf(struct e1000_hw *hw); 40 static s32 e1000_init_nvm_params_vf(struct e1000_hw *hw); 41 static void e1000_release_vf(struct e1000_hw *hw); 42 static s32 e1000_acquire_vf(struct e1000_hw *hw); 43 static s32 e1000_setup_link_vf(struct e1000_hw *hw); 44 static s32 e1000_get_bus_info_pcie_vf(struct e1000_hw *hw); 45 static s32 e1000_init_mac_params_vf(struct e1000_hw *hw); 46 static s32 e1000_check_for_link_vf(struct e1000_hw *hw); [all …]
|
| H A D | e1000_i210.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 38 static s32 e1000_acquire_nvm_i210(struct e1000_hw *hw); 39 static void e1000_release_nvm_i210(struct e1000_hw *hw); 40 static s32 e1000_write_nvm_srwr(struct e1000_hw *hw, u16 offset, u16 words, 42 static s32 e1000_pool_flash_update_done_i210(struct e1000_hw *hw); 43 static s32 e1000_valid_led_default_i210(struct e1000_hw *hw, u16 *data); 46 * e1000_acquire_nvm_i210 - Request for access to EEPROM 47 * @hw: pointer to the HW structure 52 * EEPROM access and return -E1000_ERR_NVM (-1). [all …]
|