* i40e_alloc_adminq_arq_ring - Allocate Admin Queue receive rings * @hw: pointer to the hardware structure **/
| 76 | * @hw: pointer to the hardware structure |
| 77 | **/ |
| 78 | enum i40e_status_code i40e_alloc_adminq_arq_ring(struct i40e_hw *hw) |
| 79 | { |
| 80 | enum i40e_status_code ret_code; |
| 81 | |
| 82 | ret_code = i40e_allocate_dma_mem(hw, &hw->aq.arq.desc_buf, |
| 83 | i40e_mem_arq_ring, |
| 84 | (hw->aq.num_arq_entries * |
| 85 | sizeof(struct i40e_aq_desc)), |
| 86 | I40E_ADMINQ_DESC_ALIGNMENT); |
| 87 | |
| 88 | return ret_code; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * i40e_free_adminq_asq - Free Admin Queue send rings |