src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
static s32 txgbe_fdir_check_cmd_complete(struct txgbe_hw *hw, u32 *fdircmd)
{
	int i;

	for (i = 0; i < TXGBE_FDIRCMD_CMD_POLL; i++) {
		*fdircmd = rd32(hw, TXGBE_FDIRPICMD);
		if (!(*fdircmd & TXGBE_FDIRPICMD_OP_MASK))
			return 0;
		usec_delay(10);
	}

	return TXGBE_ERR_FDIR_CMD_INCOMPLETE;
}
/**
 * txgbe_fdir_check_cmd_complete - poll to check whether FDIRPICMD is complete
 * @hw: pointer to hardware structure
 * @fdircmd: current value of FDIRCMD register
 */
poll to check whether FDIRPICMD is complete
@hw: pointer to hardware structure
@fdircmd: current value of FDIRCMD register
poll to check whether FDIRPICMD is complete @hw : pointer to hardware structure @fdircmd : current value of FDIRCMD register
static s32 txgbe_fdir_check_cmd_complete(struct txgbe_hw *hw, u32 *fdircmd)
{
	int i;
	for (i = 0; i < TXGBE_FDIRCMD_CMD_POLL; i++) {
		*fdircmd = rd32(hw, TXGBE_FDIRPICMD);
		if (!(*fdircmd & TXGBE_FDIRPICMD_OP_MASK))
			return 0;
		usec_delay(10);
	}
	return TXGBE_ERR_FDIR_CMD_INCOMPLETE;
}
static s32 txgbe_fdir_check_cmd_complete ( struct txgbe_hw * hw , u32 * fdircmd ) { int i ; for ( i = 0 ; i < TXGBE_FDIRCMD_CMD_POLL ; i ++ ) { * fdircmd = rd32 ( hw , TXGBE_FDIRPICMD ) ; if ( ! ( * fdircmd & TXGBE_FDIRPICMD_OP_MASK ) ) return 0 ; usec_delay ( 10 ) ; } return TXGBE_ERR_FDIR_CMD_INCOMPLETE ; }
txgbe_fdir_check_cmd_complete - poll to check whether FDIRPICMD is complete
 @hw: pointer to hardware structure
 @fdircmd: current value of FDIRCMD register
txgbe_fdir_check_cmd_complete - poll to check whether FDIRPICMD is complete @hw : pointer to hardware structure @fdircmd : current value of FDIRCMD register