Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_adminq.c
Show First 20 Lines • Show All 640 Lines • ▼ Show 20 Lines | |||||
* - hw->aq.num_arq_entries | * - hw->aq.num_arq_entries | ||||
* - hw->aq.arq_buf_size | * - hw->aq.arq_buf_size | ||||
* - hw->aq.asq_buf_size | * - hw->aq.asq_buf_size | ||||
**/ | **/ | ||||
enum i40e_status_code i40e_init_adminq(struct i40e_hw *hw) | enum i40e_status_code i40e_init_adminq(struct i40e_hw *hw) | ||||
{ | { | ||||
struct i40e_adminq_info *aq = &hw->aq; | struct i40e_adminq_info *aq = &hw->aq; | ||||
enum i40e_status_code ret_code; | enum i40e_status_code ret_code; | ||||
u16 cfg_ptr, oem_hi, oem_lo; | u16 oem_hi = 0, oem_lo = 0; | ||||
u16 eetrack_lo, eetrack_hi; | u16 eetrack_hi = 0; | ||||
u16 eetrack_lo = 0; | |||||
u16 cfg_ptr = 0; | |||||
int retry = 0; | int retry = 0; | ||||
/* verify input for valid configuration */ | /* verify input for valid configuration */ | ||||
if (aq->num_arq_entries == 0 || | if (aq->num_arq_entries == 0 || | ||||
aq->num_asq_entries == 0 || | aq->num_asq_entries == 0 || | ||||
aq->arq_buf_size == 0 || | aq->arq_buf_size == 0 || | ||||
aq->asq_buf_size == 0) { | aq->asq_buf_size == 0) { | ||||
ret_code = I40E_ERR_CONFIG; | ret_code = I40E_ERR_CONFIG; | ||||
▲ Show 20 Lines • Show All 505 Lines • Show Last 20 Lines |