src/dpdk/drivers/net/e1000/base/e1000_manage.c
s32 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw,
				      struct e1000_host_mng_command_header *hdr)
{
	u16 i, length = sizeof(struct e1000_host_mng_command_header);

	DEBUGFUNC("e1000_mng_write_cmd_header_generic");

	/* Write the whole command header structure with new checksum. */

	hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length);

	length >>= 2;
	/* Write the relevant command block into the ram area. */
	for (i = 0; i < length; i++) {
		E1000_WRITE_REG_ARRAY_DWORD(hw, E1000_HOST_IF, i,
					    *((u32 *) hdr + i));
		E1000_WRITE_FLUSH(hw);
	}

	return E1000_SUCCESS;
}
/**
 *  e1000_mng_write_cmd_header_generic - Writes manageability command header
 *  @hw: pointer to the HW structure
 *  @hdr: pointer to the host interface command header
 *
 *  Writes the command header after does the checksum calculation.
 **/
Writes manageability command header
@hw: pointer to the HW structure
@hdr: pointer to the host interface command header

Writes the command header after does the checksum calculation.
Writes manageability command header @hw : pointer to the HW structure @hdr : pointer to the host interface command header Writes the command header after does the checksum calculation .
s32 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw,
				      struct e1000_host_mng_command_header *hdr)
{
	u16 i, length = sizeof(struct e1000_host_mng_command_header);
	DEBUGFUNC("e1000_mng_write_cmd_header_generic");
	hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length);
	length >>= 2;
	for (i = 0; i < length; i++) {
		E1000_WRITE_REG_ARRAY_DWORD(hw, E1000_HOST_IF, i,
					    *((u32 *) hdr + i));
		E1000_WRITE_FLUSH(hw);
	}
	return E1000_SUCCESS;
}
s32 e1000_mng_write_cmd_header_generic ( struct e1000_hw * hw , struct e1000_host_mng_command_header * hdr ) { u16 i , length = sizeof ( struct e1000_host_mng_command_header ) ; DEBUGFUNC ( " " ) ; hdr -> checksum = e1000_calculate_checksum ( ( u8 * ) hdr , length ) ; length >>= 2 ; for ( i = 0 ; i < length ; i ++ ) { E1000_WRITE_REG_ARRAY_DWORD ( hw , E1000_HOST_IF , i , * ( ( u32 * ) hdr + i ) ) ; E1000_WRITE_FLUSH ( hw ) ; } return E1000_SUCCESS ; }
e1000_mng_write_cmd_header_generic - Writes manageability command header
  @hw: pointer to the HW structure
  @hdr: pointer to the host interface command header
e1000_mng_write_cmd_header_generic - Writes manageability command header @hw : pointer to the HW structure @hdr : pointer to the host interface command header
/* Write the whole command header structure with new checksum. */ /* Write the relevant command block into the ram area. */