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

Function i40e_adminq_init_regs

dpdk/drivers/net/i40e/base/i40e_adminq.c:17–45  ·  view source on GitHub ↗

* i40e_adminq_init_regs - Initialize AdminQ registers * @hw: pointer to the hardware structure * * This assumes the alloc_asq and alloc_arq functions have already been called **/

Source from the content-addressed store, hash-verified

15 * This assumes the alloc_asq and alloc_arq functions have already been called
16 **/
17STATIC void i40e_adminq_init_regs(struct i40e_hw *hw)
18{
19 /* set head and tail registers in our local struct */
20 if (i40e_is_vf(hw)) {
21 hw->aq.asq.tail = I40E_VF_ATQT1;
22 hw->aq.asq.head = I40E_VF_ATQH1;
23 hw->aq.asq.len = I40E_VF_ATQLEN1;
24 hw->aq.asq.bal = I40E_VF_ATQBAL1;
25 hw->aq.asq.bah = I40E_VF_ATQBAH1;
26 hw->aq.arq.tail = I40E_VF_ARQT1;
27 hw->aq.arq.head = I40E_VF_ARQH1;
28 hw->aq.arq.len = I40E_VF_ARQLEN1;
29 hw->aq.arq.bal = I40E_VF_ARQBAL1;
30 hw->aq.arq.bah = I40E_VF_ARQBAH1;
31#ifdef PF_DRIVER
32 } else {
33 hw->aq.asq.tail = I40E_PF_ATQT;
34 hw->aq.asq.head = I40E_PF_ATQH;
35 hw->aq.asq.len = I40E_PF_ATQLEN;
36 hw->aq.asq.bal = I40E_PF_ATQBAL;
37 hw->aq.asq.bah = I40E_PF_ATQBAH;
38 hw->aq.arq.tail = I40E_PF_ARQT;
39 hw->aq.arq.head = I40E_PF_ARQH;
40 hw->aq.arq.len = I40E_PF_ARQLEN;
41 hw->aq.arq.bal = I40E_PF_ARQBAL;
42 hw->aq.arq.bah = I40E_PF_ARQBAH;
43#endif
44 }
45}
46
47/**
48 * i40e_alloc_adminq_asq_ring - Allocate Admin Queue send rings

Callers 1

i40e_init_adminqFunction · 0.85

Calls 1

i40e_is_vfFunction · 0.85

Tested by

no test coverage detected