diff options
Diffstat (limited to 'drivers/scsi/aic7xxx_old.c')
-rw-r--r-- | drivers/scsi/aic7xxx_old.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c index a6e7bb0d53f4..9e9d0c40187e 100644 --- a/drivers/scsi/aic7xxx_old.c +++ b/drivers/scsi/aic7xxx_old.c | |||
@@ -2700,12 +2700,12 @@ aic7xxx_done(struct aic7xxx_host *p, struct aic7xxx_scb *scb) | |||
2700 | struct scatterlist *sg; | 2700 | struct scatterlist *sg; |
2701 | 2701 | ||
2702 | sg = (struct scatterlist *)cmd->request_buffer; | 2702 | sg = (struct scatterlist *)cmd->request_buffer; |
2703 | pci_unmap_sg(p->pdev, sg, cmd->use_sg, scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 2703 | pci_unmap_sg(p->pdev, sg, cmd->use_sg, cmd->sc_data_direction); |
2704 | } | 2704 | } |
2705 | else if (cmd->request_bufflen) | 2705 | else if (cmd->request_bufflen) |
2706 | pci_unmap_single(p->pdev, aic7xxx_mapping(cmd), | 2706 | pci_unmap_single(p->pdev, aic7xxx_mapping(cmd), |
2707 | cmd->request_bufflen, | 2707 | cmd->request_bufflen, |
2708 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 2708 | cmd->sc_data_direction); |
2709 | if (scb->flags & SCB_SENSE) | 2709 | if (scb->flags & SCB_SENSE) |
2710 | { | 2710 | { |
2711 | pci_unmap_single(p->pdev, | 2711 | pci_unmap_single(p->pdev, |
@@ -10228,7 +10228,7 @@ aic7xxx_buildscb(struct aic7xxx_host *p, Scsi_Cmnd *cmd, | |||
10228 | 10228 | ||
10229 | sg = (struct scatterlist *)cmd->request_buffer; | 10229 | sg = (struct scatterlist *)cmd->request_buffer; |
10230 | scb->sg_length = 0; | 10230 | scb->sg_length = 0; |
10231 | use_sg = pci_map_sg(p->pdev, sg, cmd->use_sg, scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 10231 | use_sg = pci_map_sg(p->pdev, sg, cmd->use_sg, cmd->sc_data_direction); |
10232 | /* | 10232 | /* |
10233 | * Copy the segments into the SG array. NOTE!!! - We used to | 10233 | * Copy the segments into the SG array. NOTE!!! - We used to |
10234 | * have the first entry both in the data_pointer area and the first | 10234 | * have the first entry both in the data_pointer area and the first |
@@ -10256,7 +10256,7 @@ aic7xxx_buildscb(struct aic7xxx_host *p, Scsi_Cmnd *cmd, | |||
10256 | { | 10256 | { |
10257 | unsigned int address = pci_map_single(p->pdev, cmd->request_buffer, | 10257 | unsigned int address = pci_map_single(p->pdev, cmd->request_buffer, |
10258 | cmd->request_bufflen, | 10258 | cmd->request_bufflen, |
10259 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 10259 | cmd->sc_data_direction); |
10260 | aic7xxx_mapping(cmd) = address; | 10260 | aic7xxx_mapping(cmd) = address; |
10261 | scb->sg_list[0].address = cpu_to_le32(address); | 10261 | scb->sg_list[0].address = cpu_to_le32(address); |
10262 | scb->sg_list[0].length = cpu_to_le32(cmd->request_bufflen); | 10262 | scb->sg_list[0].length = cpu_to_le32(cmd->request_bufflen); |