Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ixl/i40e_common.c
Show First 20 Lines • Show All 377 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* i40e_check_asq_alive | * i40e_check_asq_alive | ||||
* @hw: pointer to the hw struct | * @hw: pointer to the hw struct | ||||
* | * | ||||
* Returns TRUE if Queue is enabled else FALSE. | * Returns TRUE if Queue is enabled else FALSE. | ||||
**/ | **/ | ||||
bool i40e_check_asq_alive(struct i40e_hw *hw) | bool i40e_check_asq_alive(struct i40e_hw *hw) | ||||
{ | { | ||||
if (hw->aq.asq.len) | if (hw->aq.asq.len) { | ||||
if (!i40e_is_vf(hw)) | if (!i40e_is_vf(hw)) | ||||
return !!(rd32(hw, hw->aq.asq.len) & | return !!(rd32(hw, hw->aq.asq.len) & | ||||
I40E_PF_ATQLEN_ATQENABLE_MASK); | I40E_PF_ATQLEN_ATQENABLE_MASK); | ||||
if (i40e_is_vf(hw)) | else | ||||
return !!(rd32(hw, hw->aq.asq.len) & | return !!(rd32(hw, hw->aq.asq.len) & | ||||
I40E_VF_ATQLEN1_ATQENABLE_MASK); | I40E_VF_ATQLEN1_ATQENABLE_MASK); | ||||
} | |||||
return FALSE; | return FALSE; | ||||
} | } | ||||
/** | /** | ||||
* i40e_aq_queue_shutdown | * i40e_aq_queue_shutdown | ||||
* @hw: pointer to the hw struct | * @hw: pointer to the hw struct | ||||
* @unloading: is the driver unloading itself | * @unloading: is the driver unloading itself | ||||
* | * | ||||
▲ Show 20 Lines • Show All 6,782 Lines • Show Last 20 Lines |