aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sym53c8xx_2/sym_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_glue.c')
-rw-r--r--drivers/scsi/sym53c8xx_2/sym_glue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c
index 7677fba2ceb5..ea82d3df63af 100644
--- a/drivers/scsi/sym53c8xx_2/sym_glue.c
+++ b/drivers/scsi/sym53c8xx_2/sym_glue.c
@@ -150,7 +150,7 @@ static void __unmap_scsi_data(struct pci_dev *pdev, struct scsi_cmnd *cmd)
150 150
151 switch(SYM_UCMD_PTR(cmd)->data_mapped) { 151 switch(SYM_UCMD_PTR(cmd)->data_mapped) {
152 case 2: 152 case 2:
153 pci_unmap_sg(pdev, cmd->buffer, cmd->use_sg, dma_dir); 153 pci_unmap_sg(pdev, cmd->request_buffer, cmd->use_sg, dma_dir);
154 break; 154 break;
155 case 1: 155 case 1:
156 pci_unmap_single(pdev, SYM_UCMD_PTR(cmd)->data_mapping, 156 pci_unmap_single(pdev, SYM_UCMD_PTR(cmd)->data_mapping,
@@ -180,7 +180,7 @@ static int __map_scsi_sg_data(struct pci_dev *pdev, struct scsi_cmnd *cmd)
180 int use_sg; 180 int use_sg;
181 int dma_dir = cmd->sc_data_direction; 181 int dma_dir = cmd->sc_data_direction;
182 182
183 use_sg = pci_map_sg(pdev, cmd->buffer, cmd->use_sg, dma_dir); 183 use_sg = pci_map_sg(pdev, cmd->request_buffer, cmd->use_sg, dma_dir);
184 if (use_sg > 0) { 184 if (use_sg > 0) {
185 SYM_UCMD_PTR(cmd)->data_mapped = 2; 185 SYM_UCMD_PTR(cmd)->data_mapped = 2;
186 SYM_UCMD_PTR(cmd)->data_mapping = use_sg; 186 SYM_UCMD_PTR(cmd)->data_mapping = use_sg;
@@ -370,7 +370,7 @@ static int sym_scatter(struct sym_hcb *np, struct sym_ccb *cp, struct scsi_cmnd
370 if (!use_sg) 370 if (!use_sg)
371 segment = sym_scatter_no_sglist(np, cp, cmd); 371 segment = sym_scatter_no_sglist(np, cp, cmd);
372 else if ((use_sg = map_scsi_sg_data(np, cmd)) > 0) { 372 else if ((use_sg = map_scsi_sg_data(np, cmd)) > 0) {
373 struct scatterlist *scatter = (struct scatterlist *)cmd->buffer; 373 struct scatterlist *scatter = (struct scatterlist *)cmd->request_buffer;
374 struct sym_tcb *tp = &np->target[cp->target]; 374 struct sym_tcb *tp = &np->target[cp->target];
375 struct sym_tblmove *data; 375 struct sym_tblmove *data;
376 376