/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_api.c | 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() 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() [all …]
|
H A D | ixgbe_phy.c | 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); 47 static void ixgbe_lower_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 48 static s32 ixgbe_set_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl, bool data); [all …]
|
H A D | ixgbe_api.h | 40 void ixgbe_dcb_get_rtrup2tc(struct ixgbe_hw *hw, u8 *map); 42 s32 ixgbe_init_shared_code(struct ixgbe_hw *hw); 44 extern s32 ixgbe_init_ops_82598(struct ixgbe_hw *hw); 45 extern s32 ixgbe_init_ops_82599(struct ixgbe_hw *hw); 46 extern s32 ixgbe_init_ops_X540(struct ixgbe_hw *hw); 47 extern s32 ixgbe_init_ops_X550(struct ixgbe_hw *hw); 48 extern s32 ixgbe_init_ops_X550EM(struct ixgbe_hw *hw); 49 extern s32 ixgbe_init_ops_X550EM_x(struct ixgbe_hw *hw); 50 extern s32 ixgbe_init_ops_X550EM_a(struct ixgbe_hw *hw); 51 extern s32 ixgbe_init_ops_vf(struct ixgbe_hw *hw); [all …]
|
H A D | ixgbe_x550.c | 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); 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() 89 switch (hw->device_id) { in ixgbe_init_ops_X550() 91 hw->mac.ops.led_on = NULL; in ixgbe_init_ops_X550() 92 hw->mac.ops.led_off = NULL; in ixgbe_init_ops_X550() [all …]
|
H A D | ixgbe_common.c | 41 static s32 ixgbe_acquire_eeprom(struct ixgbe_hw *hw); 42 static s32 ixgbe_get_eeprom_semaphore(struct ixgbe_hw *hw); 43 static void ixgbe_release_eeprom_semaphore(struct ixgbe_hw *hw); 44 static s32 ixgbe_ready_eeprom(struct ixgbe_hw *hw); 45 static void ixgbe_standby_eeprom(struct ixgbe_hw *hw); 46 static void ixgbe_shift_out_eeprom_bits(struct ixgbe_hw *hw, u16 data, 48 static u16 ixgbe_shift_in_eeprom_bits(struct ixgbe_hw *hw, u16 count); 49 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 50 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 51 static void ixgbe_release_eeprom(struct ixgbe_hw *hw); [all …]
|
H A D | ixgbe_common.h | 39 #define IXGBE_WRITE_REG64(hw, reg, value) \ argument 41 IXGBE_WRITE_REG(hw, reg, (u32) value); \ 42 IXGBE_WRITE_REG(hw, reg + 4, (u32) (value >> 32)); \ 50 void ixgbe_dcb_get_rtrup2tc_generic(struct ixgbe_hw *hw, u8 *map); 52 u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw); 53 s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw); 54 s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw); 55 s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw); 56 void ixgbe_start_hw_gen2(struct ixgbe_hw *hw); 57 s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw); [all …]
|
H A D | ixgbe_x540.c | 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); 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() 63 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_X540() 69 ret_val = ixgbe_init_phy_ops_generic(hw); in ixgbe_init_ops_X540() 70 ret_val = ixgbe_init_ops_generic(hw); in ixgbe_init_ops_X540() [all …]
|
H A D | ixgbe_mbx.c | 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); 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() 65 return mbx->ops[mbx_id].read(hw, msg, size, mbx_id); in ixgbe_read_mbx() 72 * @hw: pointer to the HW structure 79 s32 ixgbe_poll_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) in ixgbe_poll_mbx() argument 81 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_poll_mbx() 98 ret_val = ixgbe_poll_for_msg(hw, mbx_id); in ixgbe_poll_mbx() [all …]
|
/freebsd/sys/dev/igc/ |
H A D | igc_api.c | 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() 38 * @hw: pointer to the HW structure 43 s32 igc_init_nvm_params(struct igc_hw *hw) in igc_init_nvm_params() argument 47 if (hw->nvm.ops.init_params) { in igc_init_nvm_params() 48 ret_val = hw->nvm.ops.init_params(hw); in igc_init_nvm_params() 64 * @hw: pointer to the HW structure 69 s32 igc_init_phy_params(struct igc_hw *hw) in igc_init_phy_params() argument [all …]
|
H A D | igc_i225.c | 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, 19 static s32 igc_pool_flash_update_done_i225(struct igc_hw *hw); 23 * @hw: pointer to the HW structure [all …]
|
/freebsd/sys/dev/e1000/ |
H A D | e1000_api.c | 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() 65 * @hw: pointer to the HW structure 70 s32 e1000_init_nvm_params(struct e1000_hw *hw) in e1000_init_nvm_params() argument 74 if (hw->nvm.ops.init_params) { in e1000_init_nvm_params() 75 ret_val = hw->nvm.ops.init_params(hw); in e1000_init_nvm_params() 91 * @hw: pointer to the HW structure 96 s32 e1000_init_phy_params(struct e1000_hw *hw) in e1000_init_phy_params() argument [all …]
|
H A D | e1000_80003es2lan.c | 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); 54 static s32 e1000_phy_force_speed_duplex_80003es2lan(struct e1000_hw *hw); 55 static s32 e1000_get_cable_length_80003es2lan(struct e1000_hw *hw); [all …]
|
H A D | e1000_82575.c | 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, 57 static s32 e1000_phy_hw_reset_sgmii_82575(struct e1000_hw *hw); 58 static s32 e1000_read_phy_reg_sgmii_82575(struct e1000_hw *hw, u32 offset, [all …]
|
H A D | e1000_ich8lan.c | 74 static s32 e1000_oem_bits_config_ich8lan(struct e1000_hw *hw, bool d0_state); 75 static s32 e1000_acquire_swflag_ich8lan(struct e1000_hw *hw); 76 static void e1000_release_swflag_ich8lan(struct e1000_hw *hw); 77 static s32 e1000_acquire_nvm_ich8lan(struct e1000_hw *hw); 78 static void e1000_release_nvm_ich8lan(struct e1000_hw *hw); 79 static bool e1000_check_mng_mode_ich8lan(struct e1000_hw *hw); 80 static bool e1000_check_mng_mode_pchlan(struct e1000_hw *hw); 81 static int e1000_rar_set_pch2lan(struct e1000_hw *hw, u8 *addr, u32 index); 82 static int e1000_rar_set_pch_lpt(struct e1000_hw *hw, u8 *addr, u32 index); 83 static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw); [all …]
|
H A D | e1000_82571.c | 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); 63 static s32 e1000_init_hw_82571(struct e1000_hw *hw); 64 static void e1000_clear_vfta_82571(struct e1000_hw *hw); [all …]
|
H A D | e1000_82543.c | 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); 56 static s32 e1000_init_hw_82543(struct e1000_hw *hw); 57 static s32 e1000_setup_link_82543(struct e1000_hw *hw); [all …]
|
H A D | e1000_82540.c | 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); 56 static s32 e1000_set_vco_speed_82540(struct e1000_hw *hw); 57 static s32 e1000_setup_copper_link_82540(struct e1000_hw *hw); [all …]
|
H A D | e1000_82541.c | 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); 55 static s32 e1000_check_for_link_82541(struct e1000_hw *hw); 56 static s32 e1000_get_cable_length_igp_82541(struct e1000_hw *hw); [all …]
|
H A D | e1000_phy.c | 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, 66 * @hw: pointer to the HW structure 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() 105 * @hw: pointer to the HW structure 108 s32 e1000_null_set_page(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_set_page() argument 117 * @hw: pointer to the HW structure 121 s32 e1000_null_read_reg(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_read_reg() argument [all …]
|
/freebsd/sys/dev/iavf/ |
H A D | iavf_adminq.c | 40 * @hw: pointer to the hardware structure 44 STATIC void iavf_adminq_init_regs(struct iavf_hw *hw) in iavf_adminq_init_regs() argument 47 hw->aq.asq.tail = IAVF_VF_ATQT1; in iavf_adminq_init_regs() 48 hw->aq.asq.head = IAVF_VF_ATQH1; in iavf_adminq_init_regs() 49 hw->aq.asq.len = IAVF_VF_ATQLEN1; in iavf_adminq_init_regs() 50 hw->aq.asq.bal = IAVF_VF_ATQBAL1; in iavf_adminq_init_regs() 51 hw->aq.asq.bah = IAVF_VF_ATQBAH1; in iavf_adminq_init_regs() 52 hw->aq.arq.tail = IAVF_VF_ARQT1; in iavf_adminq_init_regs() 53 hw->aq.arq.head = IAVF_VF_ARQH1; in iavf_adminq_init_regs() 54 hw->aq.arq.len = IAVF_VF_ARQLEN1; in iavf_adminq_init_regs() [all …]
|
/freebsd/sys/dev/ixl/ |
H A D | i40e_adminq.c | 42 * @hw: pointer to the hardware structure 46 static void i40e_adminq_init_regs(struct i40e_hw *hw) in i40e_adminq_init_regs() argument 49 if (i40e_is_vf(hw)) { in i40e_adminq_init_regs() 50 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs() 51 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs() 52 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs() 53 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs() 54 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs() 55 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs() 56 hw->aq.arq.head = I40E_VF_ARQH1; in i40e_adminq_init_regs() [all …]
|
H A D | i40e_prototype.h | 49 enum i40e_status_code i40e_init_adminq(struct i40e_hw *hw); 50 enum i40e_status_code i40e_shutdown_adminq(struct i40e_hw *hw); 51 enum i40e_status_code i40e_init_asq(struct i40e_hw *hw); 52 enum i40e_status_code i40e_init_arq(struct i40e_hw *hw); 53 enum i40e_status_code i40e_alloc_adminq_asq_ring(struct i40e_hw *hw); 54 enum i40e_status_code i40e_alloc_adminq_arq_ring(struct i40e_hw *hw); 55 enum i40e_status_code i40e_shutdown_asq(struct i40e_hw *hw); 56 enum i40e_status_code i40e_shutdown_arq(struct i40e_hw *hw); 57 u16 i40e_clean_asq(struct i40e_hw *hw); 58 void i40e_free_adminq_asq(struct i40e_hw *hw); [all …]
|
H A D | i40e_nvm.c | 38 * @hw: pointer to the HW structure 46 enum i40e_status_code i40e_init_nvm(struct i40e_hw *hw) in i40e_init_nvm() argument 48 struct i40e_nvm_info *nvm = &hw->nvm; in i40e_init_nvm() 58 gens = rd32(hw, I40E_GLNVM_GENS); in i40e_init_nvm() 65 fla = rd32(hw, I40E_GLNVM_FLA); in i40e_init_nvm() 73 i40e_debug(hw, I40E_DEBUG_NVM, "NVM init error: unsupported blank mode.\n"); in i40e_init_nvm() 81 * @hw: pointer to the HW structure 87 enum i40e_status_code i40e_acquire_nvm(struct i40e_hw *hw, in i40e_acquire_nvm() argument 96 if (hw->nvm.blank_nvm_mode) in i40e_acquire_nvm() 99 ret_code = i40e_aq_request_resource(hw, I40E_NVM_RESOURCE_ID, access, in i40e_acquire_nvm() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_hw.c | 34 * Defines and implements the Hardware Abstraction Layer (HW). 35 * All interaction with the hardware is performed through the HW, which abstracts 69 /* HW global data */ 73 static void ocs_hw_adjust_wqs(ocs_hw_t *hw); 74 static uint32_t ocs_hw_get_num_chutes(ocs_hw_t *hw); 88 static void ocs_hw_io_quarantine(ocs_hw_t *hw, hw_wq_t *wq, ocs_hw_io_t *io); 91 static ocs_hw_rtn_e ocs_hw_firmware_write_lancer(ocs_hw_t *hw, ocs_dma_t *dma, uint32_t size, uint3… 96 static int32_t ocs_hw_cb_host_stat(ocs_hw_t *hw, int32_t status, uint8_t *mqe, void *arg); 97 static void ocs_hw_dmtf_clp_cb(ocs_hw_t *hw, int32_t status, uint8_t *mqe, void *arg); 98 static int32_t ocs_hw_clp_resp_get_value(ocs_hw_t *hw, const char *keyword, char *value, uint32_t v… [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_80211_macops.c | 51 lkpi_80211_mo_start(struct ieee80211_hw *hw) in lkpi_80211_mo_start() argument 56 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_start() 67 LKPI_80211_TRACE_MO("hw %p", hw); in lkpi_80211_mo_start() 68 error = lhw->ops->start(hw); in lkpi_80211_mo_start() 77 lkpi_80211_mo_stop(struct ieee80211_hw *hw, bool suspend) in lkpi_80211_mo_stop() argument 81 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_stop() 85 LKPI_80211_TRACE_MO("hw %p suspend %d", hw, suspend); in lkpi_80211_mo_stop() 86 lhw->ops->stop(hw, suspend); in lkpi_80211_mo_stop() 91 lkpi_80211_mo_get_antenna(struct ieee80211_hw *hw, u32 *txs, u32 *rxs) in lkpi_80211_mo_get_antenna() argument 96 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_get_antenna() [all …]
|