src/dpdk/drivers/net/i40e/base/i40e_nvm.c
static enum i40e_status_code i40e_poll_sr_srctl_done_bit(struct i40e_hw *hw)
{
	enum i40e_status_code ret_code = I40E_ERR_TIMEOUT;
	u32 srctl, wait_cnt;

	DEBUGFUNC("i40e_poll_sr_srctl_done_bit");

	/* Poll the I40E_GLNVM_SRCTL until the done bit is set */
	for (wait_cnt = 0; wait_cnt < I40E_SRRD_SRCTL_ATTEMPTS; wait_cnt++) {
		srctl = rd32(hw, I40E_GLNVM_SRCTL);
		if (srctl & I40E_GLNVM_SRCTL_DONE_MASK) {
			ret_code = I40E_SUCCESS;
			break;
		}
		i40e_usec_delay(5);
	}
	if (ret_code == I40E_ERR_TIMEOUT)
		i40e_debug(hw, I40E_DEBUG_NVM, "Done bit in GLNVM_SRCTL not set");
	return ret_code;
}
/**
 * i40e_poll_sr_srctl_done_bit - Polls the GLNVM_SRCTL done bit
 * @hw: pointer to the HW structure
 *
 * Polls the SRCTL Shadow RAM register done bit.
 **/
Polls the GLNVM_SRCTL done bit
@hw: pointer to the HW structure

Polls the SRCTL Shadow RAM register done bit.
Polls the GLNVM_SRCTL done bit @hw : pointer to the HW structure Polls the SRCTL Shadow RAM register done bit .
static enum i40e_status_code i40e_poll_sr_srctl_done_bit(struct i40e_hw *hw)
{
	enum i40e_status_code ret_code = I40E_ERR_TIMEOUT;
	u32 srctl, wait_cnt;
	DEBUGFUNC("i40e_poll_sr_srctl_done_bit");
	for (wait_cnt = 0; wait_cnt < I40E_SRRD_SRCTL_ATTEMPTS; wait_cnt++) {
		srctl = rd32(hw, I40E_GLNVM_SRCTL);
		if (srctl & I40E_GLNVM_SRCTL_DONE_MASK) {
			ret_code = I40E_SUCCESS;
			break;
		}
		i40e_usec_delay(5);
	}
	if (ret_code == I40E_ERR_TIMEOUT)
		i40e_debug(hw, I40E_DEBUG_NVM, "Done bit in GLNVM_SRCTL not set");
	return ret_code;
}
static enum i40e_status_code i40e_poll_sr_srctl_done_bit ( struct i40e_hw * hw ) { enum i40e_status_code ret_code = I40E_ERR_TIMEOUT ; u32 srctl , wait_cnt ; DEBUGFUNC ( " " ) ; for ( wait_cnt = 0 ; wait_cnt < I40E_SRRD_SRCTL_ATTEMPTS ; wait_cnt ++ ) { srctl = rd32 ( hw , I40E_GLNVM_SRCTL ) ; if ( srctl & I40E_GLNVM_SRCTL_DONE_MASK ) { ret_code = I40E_SUCCESS ; break ; } i40e_usec_delay ( 5 ) ; } if ( ret_code == I40E_ERR_TIMEOUT ) i40e_debug ( hw , I40E_DEBUG_NVM , " " ) ; return ret_code ; }
i40e_poll_sr_srctl_done_bit - Polls the GLNVM_SRCTL done bit
 @hw: pointer to the HW structure
i40e_poll_sr_srctl_done_bit - Polls the GLNVM_SRCTL done bit @hw : pointer to the HW structure
/* Poll the I40E_GLNVM_SRCTL until the done bit is set */