Home
last modified time | relevance | path

Searched refs:hw (Results 1 – 25 of 67) sorted by relevance

123

/haiku/src/add-ons/kernel/drivers/network/ether/intel22x/dev/igc/
H A Digc_api.c17 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()
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()
69 s32 igc_init_phy_params(struct igc_hw *hw) in igc_init_phy_params() argument
73 if (hw->phy.ops.init_params) { in igc_init_phy_params()
74 ret_val = hw->phy.ops.init_params(hw); in igc_init_phy_params()
97 s32 igc_set_mac_type(struct igc_hw *hw) in igc_set_mac_type() argument
[all …]
H A Digc_mac.c10 static void igc_config_collision_dist_generic(struct igc_hw *hw);
18 void igc_init_mac_ops_generic(struct igc_hw *hw) in igc_init_mac_ops_generic() argument
20 struct igc_mac_info *mac = &hw->mac; in igc_init_mac_ops_generic()
33 s32 igc_null_ops_generic(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_ops_generic() argument
43 void igc_null_mac_generic(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_mac_generic() argument
55 s32 igc_null_link_info(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_link_info() argument
66 bool igc_null_mng_mode(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_mng_mode() argument
78 void igc_null_update_mc(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_update_mc() argument
91 void igc_null_write_vfta(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_write_vfta() argument
104 int igc_null_rar_set(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_rar_set() argument
[all …]
H A Digc_i225.c10 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);
25 static s32 igc_init_nvm_params_i225(struct igc_hw *hw) in igc_init_nvm_params_i225() argument
[all …]
H A Digc_api.h12 extern void igc_init_function_pointers_i225(struct igc_hw *hw);
14 s32 igc_set_mac_type(struct igc_hw *hw);
15 s32 igc_setup_init_funcs(struct igc_hw *hw, bool init_device);
16 s32 igc_init_mac_params(struct igc_hw *hw);
17 s32 igc_init_nvm_params(struct igc_hw *hw);
18 s32 igc_init_phy_params(struct igc_hw *hw);
19 s32 igc_get_bus_info(struct igc_hw *hw);
20 void igc_clear_vfta(struct igc_hw *hw);
21 void igc_write_vfta(struct igc_hw *hw, u32 offset, u32 value);
22 s32 igc_force_mac_fc(struct igc_hw *hw);
[all …]
H A Digc_base.c19 s32 igc_acquire_phy_base(struct igc_hw *hw) in igc_acquire_phy_base() argument
25 if (hw->bus.func == IGC_FUNC_1) in igc_acquire_phy_base()
28 return hw->mac.ops.acquire_swfw_sync(hw, mask); in igc_acquire_phy_base()
37 void igc_release_phy_base(struct igc_hw *hw) in igc_release_phy_base() argument
43 if (hw->bus.func == IGC_FUNC_1) in igc_release_phy_base()
46 hw->mac.ops.release_swfw_sync(hw, mask); in igc_release_phy_base()
55 s32 igc_init_hw_base(struct igc_hw *hw) in igc_init_hw_base() argument
57 struct igc_mac_info *mac = &hw->mac; in igc_init_hw_base()
64 igc_init_rx_addrs_generic(hw, rar_count); in igc_init_hw_base()
69 IGC_WRITE_REG_ARRAY(hw, IGC_MTA, i, 0); in igc_init_hw_base()
[all …]
H A Digc_mac.h10 void igc_init_mac_ops_generic(struct igc_hw *hw);
11 void igc_null_mac_generic(struct igc_hw *hw);
12 s32 igc_null_ops_generic(struct igc_hw *hw);
13 s32 igc_null_link_info(struct igc_hw *hw, u16 *s, u16 *d);
14 bool igc_null_mng_mode(struct igc_hw *hw);
15 void igc_null_update_mc(struct igc_hw *hw, u8 *h, u32 a);
16 void igc_null_write_vfta(struct igc_hw *hw, u32 a, u32 b);
17 int igc_null_rar_set(struct igc_hw *hw, u8 *h, u32 a);
18 s32 igc_check_for_copper_link_generic(struct igc_hw *hw);
19 s32 igc_config_fc_after_link_up_generic(struct igc_hw *hw);
[all …]
H A Digc_nvm.c10 static void igc_reload_nvm_generic(struct igc_hw *hw);
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()
41 s32 igc_null_read_nvm(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_read_nvm() argument
53 void igc_null_nvm_generic(struct igc_hw IGC_UNUSEDARG *hw) in igc_null_nvm_generic() argument
66 s32 igc_null_write_nvm(struct igc_hw IGC_UNUSEDARG *hw, in igc_null_write_nvm() argument
81 static void igc_raise_eec_clk(struct igc_hw *hw, u32 *eecd) in igc_raise_eec_clk() argument
84 IGC_WRITE_REG(hw, IGC_EECD, *eecd); in igc_raise_eec_clk()
85 IGC_WRITE_FLUSH(hw); in igc_raise_eec_clk()
86 usec_delay(hw->nvm.delay_usec); in igc_raise_eec_clk()
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A De1000_api.c44 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 De1000_82543.c46 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 De1000_80003es2lan.c41 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 De1000_82575.c48 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 De1000_ich8lan.c74 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 De1000_api.h40 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_init_function_pointers_vf(struct e1000_hw *hw);
49 extern void e1000_power_up_fiber_serdes_link(struct e1000_hw *hw);
[all …]
H A De1000_82571.c53 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 De1000_mac.h38 void e1000_init_mac_ops_generic(struct e1000_hw *hw);
40 void e1000_null_mac_generic(struct e1000_hw *hw);
41 s32 e1000_null_ops_generic(struct e1000_hw *hw);
42 s32 e1000_null_link_info(struct e1000_hw *hw, u16 *s, u16 *d);
43 bool e1000_null_mng_mode(struct e1000_hw *hw);
44 void e1000_null_update_mc(struct e1000_hw *hw, u8 *h, u32 a);
45 void e1000_null_write_vfta(struct e1000_hw *hw, u32 a, u32 b);
46 int e1000_null_rar_set(struct e1000_hw *hw, u8 *h, u32 a);
47 s32 e1000_null_set_obff_timer(struct e1000_hw *hw, u32 a);
48 s32 e1000_blink_led_generic(struct e1000_hw *hw);
[all …]
H A De1000_mac.c37 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);
47 void e1000_init_mac_ops_generic(struct e1000_hw *hw) in e1000_init_mac_ops_generic() argument
49 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_ops_generic()
87 s32 e1000_null_ops_generic(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_ops_generic() argument
97 void e1000_null_mac_generic(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_mac_generic() argument
109 s32 e1000_null_link_info(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_link_info() argument
120 bool e1000_null_mng_mode(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_mng_mode() argument
132 void e1000_null_update_mc(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_update_mc() argument
[all …]
H A De1000_82540.c48 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 De1000_82542.c41 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 De1000_phy.c37 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()
108 s32 e1000_null_set_page(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_set_page() argument
121 s32 e1000_null_read_reg(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_read_reg() argument
132 void e1000_null_phy_generic(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_phy_generic() argument
143 s32 e1000_null_lplu_state(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_lplu_state() argument
156 s32 e1000_null_write_reg(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_write_reg() argument
[all …]
H A De1000_82541.c46 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 De1000_base.c47 s32 e1000_acquire_phy_base(struct e1000_hw *hw) in e1000_acquire_phy_base() argument
53 if (hw->bus.func == E1000_FUNC_1) in e1000_acquire_phy_base()
55 else if (hw->bus.func == E1000_FUNC_2) in e1000_acquire_phy_base()
57 else if (hw->bus.func == E1000_FUNC_3) in e1000_acquire_phy_base()
60 return hw->mac.ops.acquire_swfw_sync(hw, mask); in e1000_acquire_phy_base()
69 void e1000_release_phy_base(struct e1000_hw *hw) in e1000_release_phy_base() argument
75 if (hw->bus.func == E1000_FUNC_1) in e1000_release_phy_base()
77 else if (hw->bus.func == E1000_FUNC_2) in e1000_release_phy_base()
79 else if (hw->bus.func == E1000_FUNC_3) in e1000_release_phy_base()
82 hw->mac.ops.release_swfw_sync(hw, mask); in e1000_release_phy_base()
[all …]
H A De1000_nvm.c37 static void e1000_reload_nvm_generic(struct e1000_hw *hw);
45 void e1000_init_nvm_ops_generic(struct e1000_hw *hw) in e1000_init_nvm_ops_generic() argument
47 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_ops_generic()
69 s32 e1000_null_read_nvm(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_read_nvm() argument
81 void e1000_null_nvm_generic(struct e1000_hw E1000_UNUSEDARG *hw) in e1000_null_nvm_generic() argument
92 s32 e1000_null_led_default(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_led_default() argument
106 s32 e1000_null_write_nvm(struct e1000_hw E1000_UNUSEDARG *hw, in e1000_null_write_nvm() argument
121 static void e1000_raise_eec_clk(struct e1000_hw *hw, u32 *eecd) in e1000_raise_eec_clk() argument
124 E1000_WRITE_REG(hw, E1000_EECD, *eecd); in e1000_raise_eec_clk()
125 E1000_WRITE_FLUSH(hw); in e1000_raise_eec_clk()
[all …]
H A De1000_osdep.h139 #define ASSERT_CTX_LOCK_HELD(hw) (sx_assert(iflib_ctx_lock_get(((struct e1000_osdep *)hw->back)->ct… argument
141 #define ASSERT_CTX_LOCK_HELD(hw) argument
166 #define E1000_REGISTER(hw, reg) (((hw)->mac.type >= e1000_82543) \ argument
172 #define E1000_READ_OFFSET(hw, offset) \ argument
173 bus_space_read_4(((struct e1000_osdep *)(hw)->back)->mem_bus_space_tag, \
174 ((struct e1000_osdep *)(hw)->back)->mem_bus_space_handle, offset)
177 #define E1000_WRITE_OFFSET(hw, offset, value) \ argument
178 bus_space_write_4(((struct e1000_osdep *)(hw)->back)->mem_bus_space_tag, \
179 ((struct e1000_osdep *)(hw)->back)->mem_bus_space_handle, offset, value)
183 #define E1000_READ_REG(hw, reg) \ argument
[all …]
H A De1000_i210.c38 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);
54 static s32 e1000_acquire_nvm_i210(struct e1000_hw *hw) in e1000_acquire_nvm_i210() argument
60 ret_val = e1000_acquire_swfw_sync(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_i210()
72 static void e1000_release_nvm_i210(struct e1000_hw *hw) in e1000_release_nvm_i210() argument
76 e1000_release_swfw_sync(hw, E1000_SWFW_EEP_SM); in e1000_release_nvm_i210()
89 s32 e1000_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words, in e1000_read_nvm_srrd_i210() argument
[all …]
H A De1000_vf.c39 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);
47 static s32 e1000_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed,
49 static s32 e1000_init_hw_vf(struct e1000_hw *hw);
[all …]

123