* 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 **/
| 15 | * This assumes the alloc_asq and alloc_arq functions have already been called |
| 16 | **/ |
| 17 | STATIC 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 |
no test coverage detected