src/dpdk/drivers/net/i40e/base/i40e_nvm.c
enum i40e_status_code __i40e_read_nvm_word(struct i40e_hw *hw,
					   u16 offset,
					   u16 *data)
{

	if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
		return i40e_read_nvm_word_aq(hw, offset, data);

	return i40e_read_nvm_word_srctl(hw, offset, data);
}
/**
 * __i40e_read_nvm_word - Reads NVM word, assumes caller does the locking
 * @hw: pointer to the HW structure
 * @offset: offset of the Shadow RAM word to read (0x000000 - 0x001FFF)
 * @data: word read from the Shadow RAM
 *
 * Reads one 16 bit word from the Shadow RAM.
 *
 * Do not use this function except in cases where the nvm lock is already
 * taken via i40e_acquire_nvm().
 **/
Reads NVM word, assumes caller does the locking
@hw: pointer to the HW structure
@offset: offset of the Shadow RAM word to read (0x000000 - 0x001FFF)
@data: word read from the Shadow RAM

Reads one 16 bit word from the Shadow RAM.

Do not use this function except in cases where the nvm lock is already
taken via i40e_acquire_nvm().
Reads NVM word assumes caller does the locking @hw : pointer to the HW structure @offset : offset of the Shadow RAM word to read ( 0x000000 - 0x001FFF ) @data : word read from the Shadow RAM Reads one 16 bit word from the Shadow RAM . Do not use this function except in cases where the nvm lock is already taken via i40e_acquire_nvm () .
enum i40e_status_code __i40e_read_nvm_word(struct i40e_hw *hw,
					   u16 offset,
					   u16 *data)
{
	if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
		return i40e_read_nvm_word_aq(hw, offset, data);
	return i40e_read_nvm_word_srctl(hw, offset, data);
}
enum i40e_status_code __i40e_read_nvm_word ( struct i40e_hw * hw , u16 offset , u16 * data ) { if ( hw -> flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE ) return i40e_read_nvm_word_aq ( hw , offset , data ) ; return i40e_read_nvm_word_srctl ( hw , offset , data ) ; }
__i40e_read_nvm_word - Reads NVM word, assumes caller does the locking
 @hw: pointer to the HW structure
 @offset: offset of the Shadow RAM word to read (0x000000 - 0x001FFF)
 @data: word read from the Shadow RAM
__i40e_read_nvm_word - Reads NVM word assumes caller does the locking @hw : pointer to the HW structure @offset : offset of the Shadow RAM word to read ( 0x000000 - 0x001FFF ) @data : word read from the Shadow RAM