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

Function iavf_adminq_init_regs

dpdk/drivers/common/iavf/iavf_adminq.c:17–30  ·  view source on GitHub ↗

* iavf_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 iavf_adminq_init_regs(struct iavf_hw *hw)
18{
19 /* set head and tail registers in our local struct */
20 hw->aq.asq.tail = IAVF_VF_ATQT1;
21 hw->aq.asq.head = IAVF_VF_ATQH1;
22 hw->aq.asq.len = IAVF_VF_ATQLEN1;
23 hw->aq.asq.bal = IAVF_VF_ATQBAL1;
24 hw->aq.asq.bah = IAVF_VF_ATQBAH1;
25 hw->aq.arq.tail = IAVF_VF_ARQT1;
26 hw->aq.arq.head = IAVF_VF_ARQH1;
27 hw->aq.arq.len = IAVF_VF_ARQLEN1;
28 hw->aq.arq.bal = IAVF_VF_ARQBAL1;
29 hw->aq.arq.bah = IAVF_VF_ARQBAH1;
30}
31
32/**
33 * iavf_alloc_adminq_asq_ring - Allocate Admin Queue send rings

Callers 1

iavf_init_adminqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected