MCPcopy Create free account
hub / github.com/F-Stack/f-stack / e1000_init_mac_params

Function e1000_init_mac_params

dpdk/drivers/net/e1000/base/e1000_api.c:14–31  ·  view source on GitHub ↗

* e1000_init_mac_params - Initialize MAC function pointers * @hw: pointer to the HW structure * * This function initializes the function pointers for the MAC * set of functions. Called by drivers or by e1000_setup_init_funcs. **/

Source from the content-addressed store, hash-verified

12 * set of functions. Called by drivers or by e1000_setup_init_funcs.
13 **/
14s32 e1000_init_mac_params(struct e1000_hw *hw)
15{
16 s32 ret_val = E1000_SUCCESS;
17
18 if (hw->mac.ops.init_params) {
19 ret_val = hw->mac.ops.init_params(hw);
20 if (ret_val) {
21 DEBUGOUT("MAC Initialization Error\n");
22 goto out;
23 }
24 } else {
25 DEBUGOUT("mac.init_mac_params was NULL\n");
26 ret_val = -E1000_ERR_CONFIG;
27 }
28
29out:
30 return ret_val;
31}
32
33/**
34 * e1000_init_nvm_params - Initialize NVM function pointers

Callers 2

igb_reset_swfw_lockFunction · 0.85
e1000_setup_init_funcsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected