src/dpdk/drivers/common/iavf/iavf_adminq.c
enum iavf_status iavf_shutdown_adminq(struct iavf_hw *hw)
{
	enum iavf_status ret_code = IAVF_SUCCESS;

	if (iavf_check_asq_alive(hw))
		iavf_aq_queue_shutdown(hw, true);

	iavf_shutdown_asq(hw);
	iavf_shutdown_arq(hw);
	iavf_destroy_spinlock(&hw->aq.asq_spinlock);
	iavf_destroy_spinlock(&hw->aq.arq_spinlock);

	return ret_code;
}
/**
 *  iavf_shutdown_adminq - shutdown routine for the Admin Queue
 *  @hw: pointer to the hardware structure
 **/
shutdown routine for the Admin Queue
@hw: pointer to the hardware structure
shutdown routine for the Admin Queue @hw : pointer to the hardware structure
enum iavf_status iavf_shutdown_adminq(struct iavf_hw *hw)
{
	enum iavf_status ret_code = IAVF_SUCCESS;
	if (iavf_check_asq_alive(hw))
		iavf_aq_queue_shutdown(hw, true);
	iavf_shutdown_asq(hw);
	iavf_shutdown_arq(hw);
	iavf_destroy_spinlock(&hw->aq.asq_spinlock);
	iavf_destroy_spinlock(&hw->aq.arq_spinlock);
	return ret_code;
}
enum iavf_status iavf_shutdown_adminq ( struct iavf_hw * hw ) { enum iavf_status ret_code = IAVF_SUCCESS ; if ( iavf_check_asq_alive ( hw ) ) iavf_aq_queue_shutdown ( hw , true ) ; iavf_shutdown_asq ( hw ) ; iavf_shutdown_arq ( hw ) ; iavf_destroy_spinlock ( & hw -> aq . asq_spinlock ) ; iavf_destroy_spinlock ( & hw -> aq . arq_spinlock ) ; return ret_code ; }
iavf_shutdown_adminq - shutdown routine for the Admin Queue
  @hw: pointer to the hardware structure
iavf_shutdown_adminq - shutdown routine for the Admin Queue @hw : pointer to the hardware structure