/* The routine copies the entire FCP command from @fcp_cmnd to @data while byte swapping the data to big endian format for transmission on the wire.  */
static void lpfc_fcpcmd_to_iocb(uint8_t *data, struct fcp_cmnd *fcp_cmnd)
/* The routine copies the entire FCP command from @fcp_cmnd to @data while byte swapping the data to big endian format for transmission on the wire.  */
static void lpfc_fcpcmd_to_iocb(uint8_t *data, struct fcp_cmnd *fcp_cmnd)
{
	int i, j;
	for (i = 0, j = 0; i < sizeof(struct fcp_cmnd);
	     i += sizeof(uint32_t), j++) {
		((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]);
	}
}