src/dpdk/drivers/net/i40e/base/i40e_nvm.c
enum i40e_status_code __i40e_write_nvm_word(struct i40e_hw *hw, u32 offset,
					    void *data)
{
	DEBUGFUNC("i40e_write_nvm_word");

	*((__le16 *)data) = CPU_TO_LE16(*((u16 *)data));

	/* Value 0x00 below means that we treat SR as a flat mem */
	return i40e_write_nvm_aq(hw, 0x00, offset, 1, data, false);
}
/**
 * __i40e_write_nvm_word - Writes Shadow RAM word
 * @hw: pointer to the HW structure
 * @offset: offset of the Shadow RAM word to write
 * @data: word to write to the Shadow RAM
 *
 * Writes a 16 bit word to the SR using the i40e_write_nvm_aq() method.
 * NVM ownership have to be acquired and released (on ARQ completion event
 * reception) by caller. To commit SR to NVM update checksum function
 * should be called.
 **/
Writes Shadow RAM word
@hw: pointer to the HW structure
@offset: offset of the Shadow RAM word to write
@data: word to write to the Shadow RAM

Writes a 16 bit word to the SR using the i40e_write_nvm_aq() method.
NVM ownership have to be acquired and released (on ARQ completion event
reception) by caller. To commit SR to NVM update checksum function
should be called.
Writes Shadow RAM word @hw : pointer to the HW structure @offset : offset of the Shadow RAM word to write @data : word to write to the Shadow RAM Writes a 16 bit word to the SR using the i40e_write_nvm_aq () method . NVM ownership have to be acquired and released ( on ARQ completion event reception ) by caller . To commit SR to NVM update checksum function should be called .
enum i40e_status_code __i40e_write_nvm_word(struct i40e_hw *hw, u32 offset,
					    void *data)
{
	DEBUGFUNC("i40e_write_nvm_word");
	*((__le16 *)data) = CPU_TO_LE16(*((u16 *)data));
	return i40e_write_nvm_aq(hw, 0x00, offset, 1, data, false);
}
enum i40e_status_code __i40e_write_nvm_word ( struct i40e_hw * hw , u32 offset , void * data ) { DEBUGFUNC ( " " ) ; * ( ( __le16 * ) data ) = CPU_TO_LE16 ( * ( ( u16 * ) data ) ) ; return i40e_write_nvm_aq ( hw , 0x00 , offset , 1 , data , false ) ; }
__i40e_write_nvm_word - Writes Shadow RAM word
 @hw: pointer to the HW structure
 @offset: offset of the Shadow RAM word to write
 @data: word to write to the Shadow RAM
__i40e_write_nvm_word - Writes Shadow RAM word @hw : pointer to the HW structure @offset : offset of the Shadow RAM word to write @data : word to write to the Shadow RAM
/* Value 0x00 below means that we treat SR as a flat mem */