src/dpdk/drivers/net/i40e/base/i40e_nvm.c
void i40e_nvmupd_clear_wait_state(struct i40e_hw *hw)
{
	i40e_debug(hw, I40E_DEBUG_NVM,
		   "NVMUPD: clearing wait on opcode 0x%04x\n",
		   hw->nvm_wait_opcode);

	if (hw->nvm_release_on_done) {
		i40e_release_nvm(hw);
		hw->nvm_release_on_done = false;
	}
	hw->nvm_wait_opcode = 0;

	if (hw->aq.arq_last_status) {
		hw->nvmupd_state = I40E_NVMUPD_STATE_ERROR;
		return;
	}

	switch (hw->nvmupd_state) {
	case I40E_NVMUPD_STATE_INIT_WAIT:
		hw->nvmupd_state = I40E_NVMUPD_STATE_INIT;
		break;

	case I40E_NVMUPD_STATE_WRITE_WAIT:
		hw->nvmupd_state = I40E_NVMUPD_STATE_WRITING;
		break;

	default:
		break;
	}
}
/**
 * i40e_nvmupd_clear_wait_state - clear wait state on hw
 * @hw: pointer to the hardware structure
 **/
clear wait state on hw
@hw: pointer to the hardware structure
clear wait state on hw @hw : pointer to the hardware structure
void i40e_nvmupd_clear_wait_state(struct i40e_hw *hw)
{
	i40e_debug(hw, I40E_DEBUG_NVM,
		   "NVMUPD: clearing wait on opcode 0x%04x\n",
		   hw->nvm_wait_opcode);
	if (hw->nvm_release_on_done) {
		i40e_release_nvm(hw);
		hw->nvm_release_on_done = false;
	}
	hw->nvm_wait_opcode = 0;
	if (hw->aq.arq_last_status) {
		hw->nvmupd_state = I40E_NVMUPD_STATE_ERROR;
		return;
	}
	switch (hw->nvmupd_state) {
	case I40E_NVMUPD_STATE_INIT_WAIT:
		hw->nvmupd_state = I40E_NVMUPD_STATE_INIT;
		break;
	case I40E_NVMUPD_STATE_WRITE_WAIT:
		hw->nvmupd_state = I40E_NVMUPD_STATE_WRITING;
		break;
	default:
		break;
	}
}
void i40e_nvmupd_clear_wait_state ( struct i40e_hw * hw ) { i40e_debug ( hw , I40E_DEBUG_NVM , " \n " , hw -> nvm_wait_opcode ) ; if ( hw -> nvm_release_on_done ) { i40e_release_nvm ( hw ) ; hw -> nvm_release_on_done = false ; } hw -> nvm_wait_opcode = 0 ; if ( hw -> aq . arq_last_status ) { hw -> nvmupd_state = I40E_NVMUPD_STATE_ERROR ; return ; } switch ( hw -> nvmupd_state ) { case I40E_NVMUPD_STATE_INIT_WAIT : hw -> nvmupd_state = I40E_NVMUPD_STATE_INIT ; break ; case I40E_NVMUPD_STATE_WRITE_WAIT : hw -> nvmupd_state = I40E_NVMUPD_STATE_WRITING ; break ; default : break ; } }
i40e_nvmupd_clear_wait_state - clear wait state on hw
 @hw: pointer to the hardware structure
i40e_nvmupd_clear_wait_state - clear wait state on hw @hw : pointer to the hardware structure