/titanic_41/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_api.c | 50 s32 ixgbe_init_shared_code(struct ixgbe_hw *hw) in ixgbe_init_shared_code() argument 59 status = ixgbe_set_mac_type(hw); in ixgbe_init_shared_code() 63 switch (hw->mac.type) { in ixgbe_init_shared_code() 65 status = ixgbe_init_ops_82598(hw); in ixgbe_init_shared_code() 68 status = ixgbe_init_ops_82599(hw); in ixgbe_init_shared_code() 71 status = ixgbe_init_ops_X540(hw); in ixgbe_init_shared_code() 88 s32 ixgbe_set_mac_type(struct ixgbe_hw *hw) in ixgbe_set_mac_type() argument 94 if (hw->vendor_id == IXGBE_INTEL_VENDOR_ID) { in ixgbe_set_mac_type() 95 switch (hw->device_id) { in ixgbe_set_mac_type() 108 hw->mac.type = ixgbe_mac_82598EB; in ixgbe_set_mac_type() [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 s32 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 s32 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_common.c | 39 static s32 ixgbe_acquire_eeprom(struct ixgbe_hw *hw); 40 static s32 ixgbe_get_eeprom_semaphore(struct ixgbe_hw *hw); 41 static void ixgbe_release_eeprom_semaphore(struct ixgbe_hw *hw); 42 static s32 ixgbe_ready_eeprom(struct ixgbe_hw *hw); 43 static void ixgbe_standby_eeprom(struct ixgbe_hw *hw); 44 static void ixgbe_shift_out_eeprom_bits(struct ixgbe_hw *hw, u16 data, 46 static u16 ixgbe_shift_in_eeprom_bits(struct ixgbe_hw *hw, u16 count); 47 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 48 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 49 static void ixgbe_release_eeprom(struct ixgbe_hw *hw); [all …]
|
H A D | ixgbe_api.h | 40 s32 ixgbe_init_shared_code(struct ixgbe_hw *hw); 42 extern s32 ixgbe_init_ops_82598(struct ixgbe_hw *hw); 43 extern s32 ixgbe_init_ops_82599(struct ixgbe_hw *hw); 44 extern s32 ixgbe_init_ops_X540(struct ixgbe_hw *hw); 45 extern s32 ixgbe_init_ops_vf(struct ixgbe_hw *hw); 47 s32 ixgbe_set_mac_type(struct ixgbe_hw *hw); 48 s32 ixgbe_init_hw(struct ixgbe_hw *hw); 49 s32 ixgbe_reset_hw(struct ixgbe_hw *hw); 50 s32 ixgbe_start_hw(struct ixgbe_hw *hw); 51 void ixgbe_enable_relaxed_ordering(struct ixgbe_hw *hw); [all …]
|
H A D | ixgbe_x540.c | 41 static s32 ixgbe_update_flash_X540(struct ixgbe_hw *hw); 42 static s32 ixgbe_poll_flash_update_done_X540(struct ixgbe_hw *hw); 43 static s32 ixgbe_get_swfw_sync_semaphore(struct ixgbe_hw *hw); 44 static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw); 53 s32 ixgbe_init_ops_X540(struct ixgbe_hw *hw) in ixgbe_init_ops_X540() argument 55 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X540() 56 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_ops_X540() 57 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_X540() 62 ret_val = ixgbe_init_phy_ops_generic(hw); in ixgbe_init_ops_X540() 63 ret_val = ixgbe_init_ops_generic(hw); in ixgbe_init_ops_X540() [all …]
|
H A D | ixgbe_82598.c | 41 static s32 ixgbe_get_link_capabilities_82598(struct ixgbe_hw *hw, 44 static enum ixgbe_media_type ixgbe_get_media_type_82598(struct ixgbe_hw *hw); 45 static s32 ixgbe_start_mac_link_82598(struct ixgbe_hw *hw, 47 static s32 ixgbe_check_mac_link_82598(struct ixgbe_hw *hw, 50 static s32 ixgbe_setup_mac_link_82598(struct ixgbe_hw *hw, 54 static s32 ixgbe_setup_copper_link_82598(struct ixgbe_hw *hw, 58 static s32 ixgbe_reset_hw_82598(struct ixgbe_hw *hw); 59 static s32 ixgbe_clear_vmdq_82598(struct ixgbe_hw *hw, u32 rar, u32 vmdq); 60 static s32 ixgbe_clear_vfta_82598(struct ixgbe_hw *hw); 61 static void ixgbe_set_rxpba_82598(struct ixgbe_hw *hw, int num_pb, [all …]
|
H A D | ixgbe_common.h | 41 #define IXGBE_WRITE_REG64(hw, reg, value) hw = hw argument 43 #define IXGBE_WRITE_REG64(hw, reg, value) \ argument 45 IXGBE_WRITE_REG(hw, reg, (u32) value); \ 46 IXGBE_WRITE_REG(hw, reg + 4, (u32) (value >> 32)); \ 50 u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw); 52 s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw); 53 s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw); 54 s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw); 55 s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw); 56 s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw); [all …]
|
H A D | ixgbe_82599.c | 41 static s32 ixgbe_setup_copper_link_82599(struct ixgbe_hw *hw, 45 static s32 ixgbe_verify_fw_version_82599(struct ixgbe_hw *hw); 46 static s32 ixgbe_read_eeprom_82599(struct ixgbe_hw *hw, 48 static s32 ixgbe_read_eeprom_buffer_82599(struct ixgbe_hw *hw, u16 offset, 51 void ixgbe_init_mac_link_ops_82599(struct ixgbe_hw *hw) in ixgbe_init_mac_link_ops_82599() argument 53 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() 58 if (mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) { in ixgbe_init_mac_link_ops_82599() 71 if (hw->phy.multispeed_fiber) { in ixgbe_init_mac_link_ops_82599() 75 if ((ixgbe_get_media_type(hw) == ixgbe_media_type_backplane) && in ixgbe_init_mac_link_ops_82599() 76 (hw->phy.smart_speed == ixgbe_smart_speed_auto || in ixgbe_init_mac_link_ops_82599() [all …]
|
/titanic_41/usr/src/uts/common/io/e1000api/ |
H A D | e1000_api.c | 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() 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() 96 s32 e1000_init_phy_params(struct e1000_hw *hw) in e1000_init_phy_params() argument 100 if (hw->phy.ops.init_params) { in e1000_init_phy_params() 101 ret_val = hw->phy.ops.init_params(hw); in e1000_init_phy_params() 122 s32 e1000_init_mbx_params(struct e1000_hw *hw) in e1000_init_mbx_params() argument [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_phy_82575(struct e1000_hw *hw); 51 static void e1000_release_phy_82575(struct e1000_hw *hw); 52 static s32 e1000_acquire_nvm_82575(struct e1000_hw *hw); 53 static void e1000_release_nvm_82575(struct e1000_hw *hw); 54 static s32 e1000_check_for_link_82575(struct e1000_hw *hw); 55 static s32 e1000_check_for_link_media_swap(struct e1000_hw *hw); 56 static s32 e1000_get_cfg_done_82575(struct e1000_hw *hw); 57 static s32 e1000_get_link_up_info_82575(struct e1000_hw *hw, u16 *speed, [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_ich8lan.c | 74 static s32 e1000_acquire_swflag_ich8lan(struct e1000_hw *hw); 75 static void e1000_release_swflag_ich8lan(struct e1000_hw *hw); 76 static s32 e1000_acquire_nvm_ich8lan(struct e1000_hw *hw); 77 static void e1000_release_nvm_ich8lan(struct e1000_hw *hw); 78 static bool e1000_check_mng_mode_ich8lan(struct e1000_hw *hw); 79 static bool e1000_check_mng_mode_pchlan(struct e1000_hw *hw); 80 static int e1000_rar_set_pch2lan(struct e1000_hw *hw, u8 *addr, u32 index); 81 static int e1000_rar_set_pch_lpt(struct e1000_hw *hw, u8 *addr, u32 index); 82 static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw); 83 static void e1000_update_mc_addr_list_pch2lan(struct e1000_hw *hw, [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_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_mac.c | 37 static s32 e1000_validate_mdi_setting_generic(struct e1000_hw *hw); 38 static void e1000_set_lan_id_multi_port_pcie(struct e1000_hw *hw); 39 static void e1000_config_collision_dist_generic(struct e1000_hw *hw); 40 static int e1000_rar_set_generic(struct e1000_hw *hw, u8 *addr, u32 index); 48 void e1000_init_mac_ops_generic(struct e1000_hw *hw) in e1000_init_mac_ops_generic() argument 50 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_ops_generic() 88 s32 e1000_null_ops_generic(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_ops_generic() argument 98 void e1000_null_mac_generic(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_mac_generic() argument 108 s32 e1000_null_link_info(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_link_info() argument 119 bool e1000_null_mng_mode(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_mng_mode() argument [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_api.h | 40 extern void e1000_init_function_pointers_82542(struct e1000_hw *hw); 41 extern void e1000_init_function_pointers_82543(struct e1000_hw *hw); 42 extern void e1000_init_function_pointers_82540(struct e1000_hw *hw); 43 extern void e1000_init_function_pointers_82571(struct e1000_hw *hw); 44 extern void e1000_init_function_pointers_82541(struct e1000_hw *hw); 45 extern void e1000_init_function_pointers_80003es2lan(struct e1000_hw *hw); 46 extern void e1000_init_function_pointers_ich8lan(struct e1000_hw *hw); 47 extern void e1000_init_function_pointers_82575(struct e1000_hw *hw); 48 extern void e1000_rx_fifo_flush_82575(struct e1000_hw *hw); 49 extern void e1000_init_function_pointers_vf(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, 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() 107 s32 e1000_null_set_page(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_set_page() argument 118 s32 e1000_null_read_reg(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_read_reg() argument 129 void e1000_null_phy_generic(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_phy_generic() argument 139 s32 e1000_null_lplu_state(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_lplu_state() argument 150 s32 e1000_null_write_reg(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_write_reg() argument [all …]
|
H A D | e1000_82542.c | 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); 49 static s32 e1000_led_off_82542(struct e1000_hw *hw); 50 static int e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index); [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_i210.c | 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_get_hw_semaphore_i210(struct e1000_hw *hw); 41 static s32 e1000_write_nvm_srwr(struct e1000_hw *hw, u16 offset, u16 words, 43 static s32 e1000_pool_flash_update_done_i210(struct e1000_hw *hw); 44 static s32 e1000_valid_led_default_i210(struct e1000_hw *hw, u16 *data); 55 static s32 e1000_acquire_nvm_i210(struct e1000_hw *hw) in e1000_acquire_nvm_i210() argument 61 ret_val = e1000_acquire_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_i210() 73 static void e1000_release_nvm_i210(struct e1000_hw *hw) in e1000_release_nvm_i210() argument 77 e1000_release_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); in e1000_release_nvm_i210() [all …]
|
H A D | e1000_mac.h | 38 void e1000_init_mac_ops_generic(struct e1000_hw *hw); 42 void e1000_null_mac_generic(struct e1000_hw *hw); 43 s32 e1000_null_ops_generic(struct e1000_hw *hw); 44 s32 e1000_null_link_info(struct e1000_hw *hw, u16 *s, u16 *d); 45 bool e1000_null_mng_mode(struct e1000_hw *hw); 46 void e1000_null_update_mc(struct e1000_hw *hw, u8 *h, u32 a); 47 void e1000_null_write_vfta(struct e1000_hw *hw, u32 a, u32 b); 48 int e1000_null_rar_set(struct e1000_hw *hw, u8 *h, u32 a); 49 s32 e1000_null_set_obff_timer(struct e1000_hw *hw, u32 a); 50 s32 e1000_blink_led_generic(struct e1000_hw *hw); [all …]
|
/titanic_41/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_adminq.c | 47 static void i40e_adminq_init_regs(struct i40e_hw *hw) in i40e_adminq_init_regs() argument 50 if (i40e_is_vf(hw)) { in i40e_adminq_init_regs() 51 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs() 52 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs() 53 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs() 54 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs() 55 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs() 56 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs() 57 hw->aq.arq.head = I40E_VF_ARQH1; in i40e_adminq_init_regs() 58 hw->aq.arq.len = I40E_VF_ARQLEN1; in i40e_adminq_init_regs() [all …]
|
H A D | i40e_nvm.c | 37 enum i40e_status_code i40e_read_nvm_word_srctl(struct i40e_hw *hw, u16 offset, 39 enum i40e_status_code i40e_read_nvm_word_aq(struct i40e_hw *hw, u16 offset, 41 enum i40e_status_code i40e_read_nvm_buffer_srctl(struct i40e_hw *hw, u16 offset, 43 enum i40e_status_code i40e_read_nvm_buffer_aq(struct i40e_hw *hw, u16 offset, 45 enum i40e_status_code i40e_read_nvm_aq(struct i40e_hw *hw, u8 module_pointer, 59 enum i40e_status_code i40e_init_nvm(struct i40e_hw *hw) in i40e_init_nvm() argument 61 struct i40e_nvm_info *nvm = &hw->nvm; in i40e_init_nvm() 71 gens = rd32(hw, I40E_GLNVM_GENS); in i40e_init_nvm() 78 fla = rd32(hw, I40E_GLNVM_FLA); in i40e_init_nvm() 86 i40e_debug(hw, I40E_DEBUG_NVM, "NVM init error: unsupported blank mode.\n"); in i40e_init_nvm() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/netboot/ |
H A D | e1000.c | 88 static struct e1000_hw hw; variable 100 static int e1000_setup_link(struct e1000_hw *hw); 101 static int e1000_setup_fiber_serdes_link(struct e1000_hw *hw); 102 static int e1000_setup_copper_link(struct e1000_hw *hw); 103 static int e1000_phy_setup_autoneg(struct e1000_hw *hw); 104 static void e1000_config_collision_dist(struct e1000_hw *hw); 105 static int e1000_config_mac_to_phy(struct e1000_hw *hw); 106 static int e1000_config_fc_after_link_up(struct e1000_hw *hw); 107 static int e1000_check_for_link(struct e1000_hw *hw); 108 static int e1000_wait_autoneg(struct e1000_hw *hw); [all …]
|