aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mesh.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/mesh.c')
-rw-r--r--drivers/scsi/mesh.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c
index 57a95e2c3442..555367f00228 100644
--- a/drivers/scsi/mesh.c
+++ b/drivers/scsi/mesh.c
@@ -1287,9 +1287,9 @@ static void set_dma_cmds(struct mesh_state *ms, struct scsi_cmnd *cmd)
1287 } 1287 }
1288 if (dma_len > 0xffff) 1288 if (dma_len > 0xffff)
1289 panic("mesh: scatterlist element >= 64k"); 1289 panic("mesh: scatterlist element >= 64k");
1290 st_le16(&dcmds->req_count, dma_len - off); 1290 dcmds->req_count = cpu_to_le16(dma_len - off);
1291 st_le16(&dcmds->command, dma_cmd); 1291 dcmds->command = cpu_to_le16(dma_cmd);
1292 st_le32(&dcmds->phy_addr, dma_addr + off); 1292 dcmds->phy_addr = cpu_to_le32(dma_addr + off);
1293 dcmds->xfer_status = 0; 1293 dcmds->xfer_status = 0;
1294 ++dcmds; 1294 ++dcmds;
1295 dtot += dma_len - off; 1295 dtot += dma_len - off;
@@ -1303,15 +1303,15 @@ static void set_dma_cmds(struct mesh_state *ms, struct scsi_cmnd *cmd)
1303 static char mesh_extra_buf[64]; 1303 static char mesh_extra_buf[64];
1304 1304
1305 dtot = sizeof(mesh_extra_buf); 1305 dtot = sizeof(mesh_extra_buf);
1306 st_le16(&dcmds->req_count, dtot); 1306 dcmds->req_count = cpu_to_le16(dtot);
1307 st_le32(&dcmds->phy_addr, virt_to_phys(mesh_extra_buf)); 1307 dcmds->phy_addr = cpu_to_le32(virt_to_phys(mesh_extra_buf));
1308 dcmds->xfer_status = 0; 1308 dcmds->xfer_status = 0;
1309 ++dcmds; 1309 ++dcmds;
1310 } 1310 }
1311 dma_cmd += OUTPUT_LAST - OUTPUT_MORE; 1311 dma_cmd += OUTPUT_LAST - OUTPUT_MORE;
1312 st_le16(&dcmds[-1].command, dma_cmd); 1312 dcmds[-1].command = cpu_to_le16(dma_cmd);
1313 memset(dcmds, 0, sizeof(*dcmds)); 1313 memset(dcmds, 0, sizeof(*dcmds));
1314 st_le16(&dcmds->command, DBDMA_STOP); 1314 dcmds->command = cpu_to_le16(DBDMA_STOP);
1315 ms->dma_count = dtot; 1315 ms->dma_count = dtot;
1316} 1316}
1317 1317