diff options
Diffstat (limited to 'drivers/scsi/qla1280.c')
-rw-r--r-- | drivers/scsi/qla1280.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 6481deb57048..637fb6565d28 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c | |||
@@ -1546,7 +1546,7 @@ qla1280_return_status(struct response * sts, struct scsi_cmnd *cp) | |||
1546 | int host_status = DID_ERROR; | 1546 | int host_status = DID_ERROR; |
1547 | uint16_t comp_status = le16_to_cpu(sts->comp_status); | 1547 | uint16_t comp_status = le16_to_cpu(sts->comp_status); |
1548 | uint16_t state_flags = le16_to_cpu(sts->state_flags); | 1548 | uint16_t state_flags = le16_to_cpu(sts->state_flags); |
1549 | uint16_t residual_length = le16_to_cpu(sts->residual_length); | 1549 | uint16_t residual_length = le32_to_cpu(sts->residual_length); |
1550 | uint16_t scsi_status = le16_to_cpu(sts->scsi_status); | 1550 | uint16_t scsi_status = le16_to_cpu(sts->scsi_status); |
1551 | #if DEBUG_QLA1280_INTR | 1551 | #if DEBUG_QLA1280_INTR |
1552 | static char *reason[] = { | 1552 | static char *reason[] = { |
@@ -1932,7 +1932,7 @@ qla1280_load_firmware_dma(struct scsi_qla_host *ha) | |||
1932 | "%d,%d(0x%x)\n", | 1932 | "%d,%d(0x%x)\n", |
1933 | risc_code_address, cnt, num, risc_address); | 1933 | risc_code_address, cnt, num, risc_address); |
1934 | for(i = 0; i < cnt; i++) | 1934 | for(i = 0; i < cnt; i++) |
1935 | ((uint16_t *)ha->request_ring)[i] = | 1935 | ((__le16 *)ha->request_ring)[i] = |
1936 | cpu_to_le16(risc_code_address[i]); | 1936 | cpu_to_le16(risc_code_address[i]); |
1937 | 1937 | ||
1938 | mb[0] = MBC_LOAD_RAM; | 1938 | mb[0] = MBC_LOAD_RAM; |
@@ -2986,7 +2986,7 @@ qla1280_64bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) | |||
2986 | struct scsi_cmnd *cmd = sp->cmd; | 2986 | struct scsi_cmnd *cmd = sp->cmd; |
2987 | cmd_a64_entry_t *pkt; | 2987 | cmd_a64_entry_t *pkt; |
2988 | struct scatterlist *sg = NULL; | 2988 | struct scatterlist *sg = NULL; |
2989 | u32 *dword_ptr; | 2989 | __le32 *dword_ptr; |
2990 | dma_addr_t dma_handle; | 2990 | dma_addr_t dma_handle; |
2991 | int status = 0; | 2991 | int status = 0; |
2992 | int cnt; | 2992 | int cnt; |
@@ -3273,7 +3273,7 @@ qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) | |||
3273 | struct scsi_cmnd *cmd = sp->cmd; | 3273 | struct scsi_cmnd *cmd = sp->cmd; |
3274 | struct cmd_entry *pkt; | 3274 | struct cmd_entry *pkt; |
3275 | struct scatterlist *sg = NULL; | 3275 | struct scatterlist *sg = NULL; |
3276 | uint32_t *dword_ptr; | 3276 | __le32 *dword_ptr; |
3277 | int status = 0; | 3277 | int status = 0; |
3278 | int cnt; | 3278 | int cnt; |
3279 | int req_cnt; | 3279 | int req_cnt; |