diff options
Diffstat (limited to 'drivers/scsi/cpqfcTSworker.c')
-rw-r--r-- | drivers/scsi/cpqfcTSworker.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/scsi/cpqfcTSworker.c b/drivers/scsi/cpqfcTSworker.c index a5fd7427e9da..d822ddcc52b2 100644 --- a/drivers/scsi/cpqfcTSworker.c +++ b/drivers/scsi/cpqfcTSworker.c | |||
@@ -5129,7 +5129,7 @@ cpqfc_undo_SEST_mappings(struct pci_dev *pcidev, | |||
5129 | for (i=*sgPages_head; i != NULL ;i = next) | 5129 | for (i=*sgPages_head; i != NULL ;i = next) |
5130 | { | 5130 | { |
5131 | pci_unmap_single(pcidev, i->busaddr, i->maplen, | 5131 | pci_unmap_single(pcidev, i->busaddr, i->maplen, |
5132 | scsi_to_pci_dma_dir(PCI_DMA_TODEVICE)); | 5132 | PCI_DMA_TODEVICE); |
5133 | i->busaddr = (dma_addr_t) NULL; | 5133 | i->busaddr = (dma_addr_t) NULL; |
5134 | i->maplen = 0L; | 5134 | i->maplen = 0L; |
5135 | next = i->next; | 5135 | next = i->next; |
@@ -5195,7 +5195,7 @@ static ULONG build_SEST_sgList( | |||
5195 | contigaddr = ulBuff = pci_map_single(pcidev, | 5195 | contigaddr = ulBuff = pci_map_single(pcidev, |
5196 | Cmnd->request_buffer, | 5196 | Cmnd->request_buffer, |
5197 | Cmnd->request_bufflen, | 5197 | Cmnd->request_bufflen, |
5198 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); | 5198 | Cmnd->sc_data_direction); |
5199 | // printk("ms %p ", ulBuff); | 5199 | // printk("ms %p ", ulBuff); |
5200 | } | 5200 | } |
5201 | else { | 5201 | else { |
@@ -5224,7 +5224,7 @@ static ULONG build_SEST_sgList( | |||
5224 | unsigned long btg; | 5224 | unsigned long btg; |
5225 | contigaddr = pci_map_single(pcidev, Cmnd->request_buffer, | 5225 | contigaddr = pci_map_single(pcidev, Cmnd->request_buffer, |
5226 | Cmnd->request_bufflen, | 5226 | Cmnd->request_bufflen, |
5227 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); | 5227 | Cmnd->sc_data_direction); |
5228 | 5228 | ||
5229 | // printk("contigaddr = %p, len = %d\n", | 5229 | // printk("contigaddr = %p, len = %d\n", |
5230 | // (void *) contigaddr, bytes_to_go); | 5230 | // (void *) contigaddr, bytes_to_go); |
@@ -5247,7 +5247,7 @@ static ULONG build_SEST_sgList( | |||
5247 | 5247 | ||
5248 | sgl = (struct scatterlist*)Cmnd->request_buffer; | 5248 | sgl = (struct scatterlist*)Cmnd->request_buffer; |
5249 | sg_count = pci_map_sg(pcidev, sgl, Cmnd->use_sg, | 5249 | sg_count = pci_map_sg(pcidev, sgl, Cmnd->use_sg, |
5250 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); | 5250 | Cmnd->sc_data_direction); |
5251 | if( sg_count <= 3 ) { | 5251 | if( sg_count <= 3 ) { |
5252 | 5252 | ||
5253 | // we need to be careful here that no individual mapping | 5253 | // we need to be careful here that no individual mapping |
@@ -5400,7 +5400,7 @@ static ULONG build_SEST_sgList( | |||
5400 | 5400 | ||
5401 | cpqfc_undo_SEST_mappings(pcidev, contigaddr, | 5401 | cpqfc_undo_SEST_mappings(pcidev, contigaddr, |
5402 | Cmnd->request_bufflen, | 5402 | Cmnd->request_bufflen, |
5403 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction), | 5403 | Cmnd->sc_data_direction, |
5404 | sgl, Cmnd->use_sg, sgPages_head, AllocatedPages+1); | 5404 | sgl, Cmnd->use_sg, sgPages_head, AllocatedPages+1); |
5405 | 5405 | ||
5406 | // FIXME: testing shows that if we get here, | 5406 | // FIXME: testing shows that if we get here, |
@@ -5946,7 +5946,7 @@ cpqfc_pci_unmap_extended_sg(struct pci_dev *pcidev, | |||
5946 | // for each extended scatter gather region needing unmapping... | 5946 | // for each extended scatter gather region needing unmapping... |
5947 | for (i=fcChip->SEST->sgPages[x_ID] ; i != NULL ; i = i->next) | 5947 | for (i=fcChip->SEST->sgPages[x_ID] ; i != NULL ; i = i->next) |
5948 | pci_unmap_single(pcidev, i->busaddr, i->maplen, | 5948 | pci_unmap_single(pcidev, i->busaddr, i->maplen, |
5949 | scsi_to_pci_dma_dir(PCI_DMA_TODEVICE)); | 5949 | PCI_DMA_TODEVICE); |
5950 | } | 5950 | } |
5951 | 5951 | ||
5952 | // Called also from cpqfcTScontrol.o, so can't be static | 5952 | // Called also from cpqfcTScontrol.o, so can't be static |
@@ -5960,14 +5960,14 @@ cpqfc_pci_unmap(struct pci_dev *pcidev, | |||
5960 | if (cmd->use_sg) { // Used scatter gather list for data buffer? | 5960 | if (cmd->use_sg) { // Used scatter gather list for data buffer? |
5961 | cpqfc_pci_unmap_extended_sg(pcidev, fcChip, x_ID); | 5961 | cpqfc_pci_unmap_extended_sg(pcidev, fcChip, x_ID); |
5962 | pci_unmap_sg(pcidev, cmd->buffer, cmd->use_sg, | 5962 | pci_unmap_sg(pcidev, cmd->buffer, cmd->use_sg, |
5963 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 5963 | cmd->sc_data_direction); |
5964 | // printk("umsg %d\n", cmd->use_sg); | 5964 | // printk("umsg %d\n", cmd->use_sg); |
5965 | } | 5965 | } |
5966 | else if (cmd->request_bufflen) { | 5966 | else if (cmd->request_bufflen) { |
5967 | // printk("ums %p ", fcChip->SEST->u[ x_ID ].IWE.GAddr1); | 5967 | // printk("ums %p ", fcChip->SEST->u[ x_ID ].IWE.GAddr1); |
5968 | pci_unmap_single(pcidev, fcChip->SEST->u[ x_ID ].IWE.GAddr1, | 5968 | pci_unmap_single(pcidev, fcChip->SEST->u[ x_ID ].IWE.GAddr1, |
5969 | cmd->request_bufflen, | 5969 | cmd->request_bufflen, |
5970 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 5970 | cmd->sc_data_direction); |
5971 | } | 5971 | } |
5972 | } | 5972 | } |
5973 | 5973 | ||