diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/acard-ahci.c | 10 | ||||
-rw-r--r-- | drivers/ata/ahci.c | 10 | ||||
-rw-r--r-- | drivers/ata/libata-sff.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_atp867x.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_cs5520.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_hpt3x3.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_ninja32.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_pdc2027x.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_scc.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_sil680.c | 4 | ||||
-rw-r--r-- | drivers/ata/pdc_adma.c | 4 | ||||
-rw-r--r-- | drivers/ata/sata_inic162x.c | 4 | ||||
-rw-r--r-- | drivers/ata/sata_mv.c | 10 | ||||
-rw-r--r-- | drivers/ata/sata_nv.c | 12 | ||||
-rw-r--r-- | drivers/ata/sata_promise.c | 4 | ||||
-rw-r--r-- | drivers/ata/sata_qstor.c | 10 | ||||
-rw-r--r-- | drivers/ata/sata_sil.c | 4 | ||||
-rw-r--r-- | drivers/ata/sata_sil24.c | 10 | ||||
-rw-r--r-- | drivers/ata/sata_svw.c | 4 | ||||
-rw-r--r-- | drivers/ata/sata_sx4.c | 4 | ||||
-rw-r--r-- | drivers/ata/sata_via.c | 4 | ||||
-rw-r--r-- | drivers/ata/sata_vsc.c | 4 |
22 files changed, 63 insertions, 63 deletions
diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c index c962886d7e71..12489ce863c4 100644 --- a/drivers/ata/acard-ahci.c +++ b/drivers/ata/acard-ahci.c | |||
@@ -181,10 +181,10 @@ static int acard_ahci_configure_dma_masks(struct pci_dev *pdev, int using_dac) | |||
181 | int rc; | 181 | int rc; |
182 | 182 | ||
183 | if (using_dac && | 183 | if (using_dac && |
184 | !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { | 184 | !dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) { |
185 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); | 185 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64)); |
186 | if (rc) { | 186 | if (rc) { |
187 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 187 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
188 | if (rc) { | 188 | if (rc) { |
189 | dev_err(&pdev->dev, | 189 | dev_err(&pdev->dev, |
190 | "64-bit DMA enable failed\n"); | 190 | "64-bit DMA enable failed\n"); |
@@ -192,12 +192,12 @@ static int acard_ahci_configure_dma_masks(struct pci_dev *pdev, int using_dac) | |||
192 | } | 192 | } |
193 | } | 193 | } |
194 | } else { | 194 | } else { |
195 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 195 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
196 | if (rc) { | 196 | if (rc) { |
197 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 197 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
198 | return rc; | 198 | return rc; |
199 | } | 199 | } |
200 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 200 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
201 | if (rc) { | 201 | if (rc) { |
202 | dev_err(&pdev->dev, | 202 | dev_err(&pdev->dev, |
203 | "32-bit consistent DMA enable failed\n"); | 203 | "32-bit consistent DMA enable failed\n"); |
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 33bb06e006c9..c7a92a743ed0 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -738,10 +738,10 @@ static int ahci_configure_dma_masks(struct pci_dev *pdev, int using_dac) | |||
738 | return 0; | 738 | return 0; |
739 | 739 | ||
740 | if (using_dac && | 740 | if (using_dac && |
741 | !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { | 741 | !dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) { |
742 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); | 742 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64)); |
743 | if (rc) { | 743 | if (rc) { |
744 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 744 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
745 | if (rc) { | 745 | if (rc) { |
746 | dev_err(&pdev->dev, | 746 | dev_err(&pdev->dev, |
747 | "64-bit DMA enable failed\n"); | 747 | "64-bit DMA enable failed\n"); |
@@ -749,12 +749,12 @@ static int ahci_configure_dma_masks(struct pci_dev *pdev, int using_dac) | |||
749 | } | 749 | } |
750 | } | 750 | } |
751 | } else { | 751 | } else { |
752 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 752 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
753 | if (rc) { | 753 | if (rc) { |
754 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 754 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
755 | return rc; | 755 | return rc; |
756 | } | 756 | } |
757 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 757 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
758 | if (rc) { | 758 | if (rc) { |
759 | dev_err(&pdev->dev, | 759 | dev_err(&pdev->dev, |
760 | "32-bit consistent DMA enable failed\n"); | 760 | "32-bit consistent DMA enable failed\n"); |
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 2e86e3b85266..cdf6215a9a22 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -3220,11 +3220,11 @@ void ata_pci_bmdma_init(struct ata_host *host) | |||
3220 | * ->sff_irq_clear method. Try to initialize bmdma_addr | 3220 | * ->sff_irq_clear method. Try to initialize bmdma_addr |
3221 | * regardless of dma masks. | 3221 | * regardless of dma masks. |
3222 | */ | 3222 | */ |
3223 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 3223 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
3224 | if (rc) | 3224 | if (rc) |
3225 | ata_bmdma_nodma(host, "failed to set dma mask"); | 3225 | ata_bmdma_nodma(host, "failed to set dma mask"); |
3226 | if (!rc) { | 3226 | if (!rc) { |
3227 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 3227 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
3228 | if (rc) | 3228 | if (rc) |
3229 | ata_bmdma_nodma(host, | 3229 | ata_bmdma_nodma(host, |
3230 | "failed to set consistent dma mask"); | 3230 | "failed to set consistent dma mask"); |
diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c index a705cfca90f7..3ea50dc5ea47 100644 --- a/drivers/ata/pata_atp867x.c +++ b/drivers/ata/pata_atp867x.c | |||
@@ -475,11 +475,11 @@ static int atp867x_ata_pci_sff_init_host(struct ata_host *host) | |||
475 | 475 | ||
476 | atp867x_fixup(host); | 476 | atp867x_fixup(host); |
477 | 477 | ||
478 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 478 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
479 | if (rc) | 479 | if (rc) |
480 | return rc; | 480 | return rc; |
481 | 481 | ||
482 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 482 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
483 | return rc; | 483 | return rc; |
484 | } | 484 | } |
485 | 485 | ||
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c index d65cb9d2fa8c..4cb24070cc2d 100644 --- a/drivers/ata/pata_cs5520.c +++ b/drivers/ata/pata_cs5520.c | |||
@@ -164,11 +164,11 @@ static int cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
164 | return -ENODEV; | 164 | return -ENODEV; |
165 | } | 165 | } |
166 | 166 | ||
167 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { | 167 | if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) { |
168 | printk(KERN_ERR DRV_NAME ": unable to configure DMA mask.\n"); | 168 | printk(KERN_ERR DRV_NAME ": unable to configure DMA mask.\n"); |
169 | return -ENODEV; | 169 | return -ENODEV; |
170 | } | 170 | } |
171 | if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { | 171 | if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32))) { |
172 | printk(KERN_ERR DRV_NAME ": unable to configure consistent DMA mask.\n"); | 172 | printk(KERN_ERR DRV_NAME ": unable to configure consistent DMA mask.\n"); |
173 | return -ENODEV; | 173 | return -ENODEV; |
174 | } | 174 | } |
diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c index d019cdd5bc9f..b2fc023783b1 100644 --- a/drivers/ata/pata_hpt3x3.c +++ b/drivers/ata/pata_hpt3x3.c | |||
@@ -221,10 +221,10 @@ static int hpt3x3_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
221 | if (rc) | 221 | if (rc) |
222 | return rc; | 222 | return rc; |
223 | host->iomap = pcim_iomap_table(pdev); | 223 | host->iomap = pcim_iomap_table(pdev); |
224 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 224 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
225 | if (rc) | 225 | if (rc) |
226 | return rc; | 226 | return rc; |
227 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 227 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
228 | if (rc) | 228 | if (rc) |
229 | return rc; | 229 | return rc; |
230 | 230 | ||
diff --git a/drivers/ata/pata_ninja32.c b/drivers/ata/pata_ninja32.c index efb272da8567..633aa2934a18 100644 --- a/drivers/ata/pata_ninja32.c +++ b/drivers/ata/pata_ninja32.c | |||
@@ -122,10 +122,10 @@ static int ninja32_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
122 | return rc; | 122 | return rc; |
123 | 123 | ||
124 | host->iomap = pcim_iomap_table(dev); | 124 | host->iomap = pcim_iomap_table(dev); |
125 | rc = pci_set_dma_mask(dev, ATA_DMA_MASK); | 125 | rc = dma_set_mask(&dev->dev, ATA_DMA_MASK); |
126 | if (rc) | 126 | if (rc) |
127 | return rc; | 127 | return rc; |
128 | rc = pci_set_consistent_dma_mask(dev, ATA_DMA_MASK); | 128 | rc = dma_set_coherent_mask(&dev->dev, ATA_DMA_MASK); |
129 | if (rc) | 129 | if (rc) |
130 | return rc; | 130 | return rc; |
131 | pci_set_master(dev); | 131 | pci_set_master(dev); |
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index dca8251b1aea..d9ef9e276225 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -730,11 +730,11 @@ static int pdc2027x_init_one(struct pci_dev *pdev, | |||
730 | return rc; | 730 | return rc; |
731 | host->iomap = pcim_iomap_table(pdev); | 731 | host->iomap = pcim_iomap_table(pdev); |
732 | 732 | ||
733 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 733 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
734 | if (rc) | 734 | if (rc) |
735 | return rc; | 735 | return rc; |
736 | 736 | ||
737 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 737 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
738 | if (rc) | 738 | if (rc) |
739 | return rc; | 739 | return rc; |
740 | 740 | ||
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c index 7f4cb76ed9fa..5cd60d6388ec 100644 --- a/drivers/ata/pata_scc.c +++ b/drivers/ata/pata_scc.c | |||
@@ -1029,10 +1029,10 @@ static int scc_host_init(struct ata_host *host) | |||
1029 | if (rc) | 1029 | if (rc) |
1030 | return rc; | 1030 | return rc; |
1031 | 1031 | ||
1032 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 1032 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
1033 | if (rc) | 1033 | if (rc) |
1034 | return rc; | 1034 | return rc; |
1035 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 1035 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
1036 | if (rc) | 1036 | if (rc) |
1037 | return rc; | 1037 | return rc; |
1038 | 1038 | ||
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index f597edccedec..c14071be4f55 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -374,10 +374,10 @@ static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
374 | host->iomap = pcim_iomap_table(pdev); | 374 | host->iomap = pcim_iomap_table(pdev); |
375 | 375 | ||
376 | /* Setup DMA masks */ | 376 | /* Setup DMA masks */ |
377 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 377 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
378 | if (rc) | 378 | if (rc) |
379 | return rc; | 379 | return rc; |
380 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 380 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
381 | if (rc) | 381 | if (rc) |
382 | return rc; | 382 | return rc; |
383 | pci_set_master(pdev); | 383 | pci_set_master(pdev); |
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index f10631beffa8..64d682c6ee57 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c | |||
@@ -593,12 +593,12 @@ static int adma_set_dma_masks(struct pci_dev *pdev, void __iomem *mmio_base) | |||
593 | { | 593 | { |
594 | int rc; | 594 | int rc; |
595 | 595 | ||
596 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 596 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
597 | if (rc) { | 597 | if (rc) { |
598 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 598 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
599 | return rc; | 599 | return rc; |
600 | } | 600 | } |
601 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 601 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
602 | if (rc) { | 602 | if (rc) { |
603 | dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n"); | 603 | dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n"); |
604 | return rc; | 604 | return rc; |
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 069827826b20..e81a8217f1ff 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c | |||
@@ -856,13 +856,13 @@ static int inic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
856 | } | 856 | } |
857 | 857 | ||
858 | /* Set dma_mask. This devices doesn't support 64bit addressing. */ | 858 | /* Set dma_mask. This devices doesn't support 64bit addressing. */ |
859 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 859 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
860 | if (rc) { | 860 | if (rc) { |
861 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 861 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
862 | return rc; | 862 | return rc; |
863 | } | 863 | } |
864 | 864 | ||
865 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 865 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
866 | if (rc) { | 866 | if (rc) { |
867 | dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n"); | 867 | dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n"); |
868 | return rc; | 868 | return rc; |
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 0281785c7a28..bd74ee555278 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
@@ -4320,10 +4320,10 @@ static int pci_go_64(struct pci_dev *pdev) | |||
4320 | { | 4320 | { |
4321 | int rc; | 4321 | int rc; |
4322 | 4322 | ||
4323 | if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { | 4323 | if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) { |
4324 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); | 4324 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64)); |
4325 | if (rc) { | 4325 | if (rc) { |
4326 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 4326 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
4327 | if (rc) { | 4327 | if (rc) { |
4328 | dev_err(&pdev->dev, | 4328 | dev_err(&pdev->dev, |
4329 | "64-bit DMA enable failed\n"); | 4329 | "64-bit DMA enable failed\n"); |
@@ -4331,12 +4331,12 @@ static int pci_go_64(struct pci_dev *pdev) | |||
4331 | } | 4331 | } |
4332 | } | 4332 | } |
4333 | } else { | 4333 | } else { |
4334 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 4334 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
4335 | if (rc) { | 4335 | if (rc) { |
4336 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 4336 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
4337 | return rc; | 4337 | return rc; |
4338 | } | 4338 | } |
4339 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 4339 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
4340 | if (rc) { | 4340 | if (rc) { |
4341 | dev_err(&pdev->dev, | 4341 | dev_err(&pdev->dev, |
4342 | "32-bit consistent DMA enable failed\n"); | 4342 | "32-bit consistent DMA enable failed\n"); |
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index 1db6f5ce5e89..7ece85f43020 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -756,10 +756,10 @@ static int nv_adma_slave_config(struct scsi_device *sdev) | |||
756 | blk_queue_bounce_limit(sdev1->request_queue, | 756 | blk_queue_bounce_limit(sdev1->request_queue, |
757 | ATA_DMA_MASK); | 757 | ATA_DMA_MASK); |
758 | 758 | ||
759 | pci_set_dma_mask(pdev, ATA_DMA_MASK); | 759 | dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
760 | } else { | 760 | } else { |
761 | /** This shouldn't fail as it was set to this value before */ | 761 | /** This shouldn't fail as it was set to this value before */ |
762 | pci_set_dma_mask(pdev, pp->adma_dma_mask); | 762 | dma_set_mask(&pdev->dev, pp->adma_dma_mask); |
763 | if (sdev0) | 763 | if (sdev0) |
764 | blk_queue_bounce_limit(sdev0->request_queue, | 764 | blk_queue_bounce_limit(sdev0->request_queue, |
765 | pp->adma_dma_mask); | 765 | pp->adma_dma_mask); |
@@ -1133,10 +1133,10 @@ static int nv_adma_port_start(struct ata_port *ap) | |||
1133 | 1133 | ||
1134 | /* Ensure DMA mask is set to 32-bit before allocating legacy PRD and | 1134 | /* Ensure DMA mask is set to 32-bit before allocating legacy PRD and |
1135 | pad buffers */ | 1135 | pad buffers */ |
1136 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 1136 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
1137 | if (rc) | 1137 | if (rc) |
1138 | return rc; | 1138 | return rc; |
1139 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 1139 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
1140 | if (rc) | 1140 | if (rc) |
1141 | return rc; | 1141 | return rc; |
1142 | 1142 | ||
@@ -1161,8 +1161,8 @@ static int nv_adma_port_start(struct ata_port *ap) | |||
1161 | These are allowed to fail since we store the value that ends up | 1161 | These are allowed to fail since we store the value that ends up |
1162 | being used to set as the bounce limit in slave_config later if | 1162 | being used to set as the bounce limit in slave_config later if |
1163 | needed. */ | 1163 | needed. */ |
1164 | pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); | 1164 | dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); |
1165 | pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); | 1165 | dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64)); |
1166 | pp->adma_dma_mask = *dev->dma_mask; | 1166 | pp->adma_dma_mask = *dev->dma_mask; |
1167 | 1167 | ||
1168 | mem = dmam_alloc_coherent(dev, NV_ADMA_PORT_PRIV_DMA_SZ, | 1168 | mem = dmam_alloc_coherent(dev, NV_ADMA_PORT_PRIV_DMA_SZ, |
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 3638887476f6..0fa211e2831c 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -1246,10 +1246,10 @@ static int pdc_ata_init_one(struct pci_dev *pdev, | |||
1246 | /* initialize adapter */ | 1246 | /* initialize adapter */ |
1247 | pdc_host_init(host); | 1247 | pdc_host_init(host); |
1248 | 1248 | ||
1249 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 1249 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
1250 | if (rc) | 1250 | if (rc) |
1251 | return rc; | 1251 | return rc; |
1252 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 1252 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
1253 | if (rc) | 1253 | if (rc) |
1254 | return rc; | 1254 | return rc; |
1255 | 1255 | ||
diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c index 9a6bd4cd29a0..af987a4f33d1 100644 --- a/drivers/ata/sata_qstor.c +++ b/drivers/ata/sata_qstor.c | |||
@@ -557,10 +557,10 @@ static int qs_set_dma_masks(struct pci_dev *pdev, void __iomem *mmio_base) | |||
557 | int rc, have_64bit_bus = (bus_info & QS_HPHY_64BIT); | 557 | int rc, have_64bit_bus = (bus_info & QS_HPHY_64BIT); |
558 | 558 | ||
559 | if (have_64bit_bus && | 559 | if (have_64bit_bus && |
560 | !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { | 560 | !dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) { |
561 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); | 561 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64)); |
562 | if (rc) { | 562 | if (rc) { |
563 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 563 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
564 | if (rc) { | 564 | if (rc) { |
565 | dev_err(&pdev->dev, | 565 | dev_err(&pdev->dev, |
566 | "64-bit DMA enable failed\n"); | 566 | "64-bit DMA enable failed\n"); |
@@ -568,12 +568,12 @@ static int qs_set_dma_masks(struct pci_dev *pdev, void __iomem *mmio_base) | |||
568 | } | 568 | } |
569 | } | 569 | } |
570 | } else { | 570 | } else { |
571 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 571 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
572 | if (rc) { | 572 | if (rc) { |
573 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 573 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
574 | return rc; | 574 | return rc; |
575 | } | 575 | } |
576 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 576 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
577 | if (rc) { | 577 | if (rc) { |
578 | dev_err(&pdev->dev, | 578 | dev_err(&pdev->dev, |
579 | "32-bit consistent DMA enable failed\n"); | 579 | "32-bit consistent DMA enable failed\n"); |
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 40b76b2d18c6..dea6edcbf145 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c | |||
@@ -770,10 +770,10 @@ static int sil_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
770 | return rc; | 770 | return rc; |
771 | host->iomap = pcim_iomap_table(pdev); | 771 | host->iomap = pcim_iomap_table(pdev); |
772 | 772 | ||
773 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 773 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
774 | if (rc) | 774 | if (rc) |
775 | return rc; | 775 | return rc; |
776 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 776 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
777 | if (rc) | 777 | if (rc) |
778 | return rc; | 778 | return rc; |
779 | 779 | ||
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 52428971ba94..4b1995e2d044 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -1312,10 +1312,10 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1312 | host->iomap = iomap; | 1312 | host->iomap = iomap; |
1313 | 1313 | ||
1314 | /* configure and activate the device */ | 1314 | /* configure and activate the device */ |
1315 | if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { | 1315 | if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) { |
1316 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); | 1316 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64)); |
1317 | if (rc) { | 1317 | if (rc) { |
1318 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 1318 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
1319 | if (rc) { | 1319 | if (rc) { |
1320 | dev_err(&pdev->dev, | 1320 | dev_err(&pdev->dev, |
1321 | "64-bit DMA enable failed\n"); | 1321 | "64-bit DMA enable failed\n"); |
@@ -1323,12 +1323,12 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1323 | } | 1323 | } |
1324 | } | 1324 | } |
1325 | } else { | 1325 | } else { |
1326 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 1326 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
1327 | if (rc) { | 1327 | if (rc) { |
1328 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 1328 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
1329 | return rc; | 1329 | return rc; |
1330 | } | 1330 | } |
1331 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 1331 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
1332 | if (rc) { | 1332 | if (rc) { |
1333 | dev_err(&pdev->dev, | 1333 | dev_err(&pdev->dev, |
1334 | "32-bit consistent DMA enable failed\n"); | 1334 | "32-bit consistent DMA enable failed\n"); |
diff --git a/drivers/ata/sata_svw.c b/drivers/ata/sata_svw.c index c630fa812624..ff8307b30ff0 100644 --- a/drivers/ata/sata_svw.c +++ b/drivers/ata/sata_svw.c | |||
@@ -496,10 +496,10 @@ static int k2_sata_init_one(struct pci_dev *pdev, const struct pci_device_id *en | |||
496 | ata_port_pbar_desc(ap, 5, offset, "port"); | 496 | ata_port_pbar_desc(ap, 5, offset, "port"); |
497 | } | 497 | } |
498 | 498 | ||
499 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 499 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
500 | if (rc) | 500 | if (rc) |
501 | return rc; | 501 | return rc; |
502 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 502 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
503 | if (rc) | 503 | if (rc) |
504 | return rc; | 504 | return rc; |
505 | 505 | ||
diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c index 39b5de60a1f9..3a18a8a719b4 100644 --- a/drivers/ata/sata_sx4.c +++ b/drivers/ata/sata_sx4.c | |||
@@ -1476,10 +1476,10 @@ static int pdc_sata_init_one(struct pci_dev *pdev, | |||
1476 | } | 1476 | } |
1477 | 1477 | ||
1478 | /* configure and activate */ | 1478 | /* configure and activate */ |
1479 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 1479 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
1480 | if (rc) | 1480 | if (rc) |
1481 | return rc; | 1481 | return rc; |
1482 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 1482 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
1483 | if (rc) | 1483 | if (rc) |
1484 | return rc; | 1484 | return rc; |
1485 | 1485 | ||
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index 47bf89464cef..17d31fc009ab 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c | |||
@@ -502,10 +502,10 @@ static int vt6421_prepare_host(struct pci_dev *pdev, struct ata_host **r_host) | |||
502 | for (i = 0; i < host->n_ports; i++) | 502 | for (i = 0; i < host->n_ports; i++) |
503 | vt6421_init_addrs(host->ports[i]); | 503 | vt6421_init_addrs(host->ports[i]); |
504 | 504 | ||
505 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 505 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
506 | if (rc) | 506 | if (rc) |
507 | return rc; | 507 | return rc; |
508 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 508 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
509 | if (rc) | 509 | if (rc) |
510 | return rc; | 510 | return rc; |
511 | 511 | ||
diff --git a/drivers/ata/sata_vsc.c b/drivers/ata/sata_vsc.c index 29e847aac34b..183eb52085df 100644 --- a/drivers/ata/sata_vsc.c +++ b/drivers/ata/sata_vsc.c | |||
@@ -387,10 +387,10 @@ static int vsc_sata_init_one(struct pci_dev *pdev, | |||
387 | /* | 387 | /* |
388 | * Use 32 bit DMA mask, because 64 bit address support is poor. | 388 | * Use 32 bit DMA mask, because 64 bit address support is poor. |
389 | */ | 389 | */ |
390 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 390 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
391 | if (rc) | 391 | if (rc) |
392 | return rc; | 392 | return rc; |
393 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 393 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
394 | if (rc) | 394 | if (rc) |
395 | return rc; | 395 | return rc; |
396 | 396 | ||