diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2009-04-06 22:01:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:10 -0400 |
commit | 6a35528a8346f6e6fd32ed7e51f04d1fa4ca2c01 (patch) | |
tree | 9caaf8645b573687bbcf3a16b5aa7dd233fed46e /arch | |
parent | 8a59f5d2526593c6bc1a0754c3a16ccc9ed41ce3 (diff) |
dma-mapping: replace all DMA_64BIT_MASK macro with DMA_BIT_MASK(64)
Replace all DMA_64BIT_MASK macro with DMA_BIT_MASK(64)
Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-iop13xx/setup.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-iop13xx/tpmi.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-iop/adma.c | 6 | ||||
-rw-r--r-- | arch/ia64/sn/pci/pci_dma.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/iommu.c | 2 |
7 files changed, 20 insertions, 20 deletions
diff --git a/arch/arm/mach-iop13xx/setup.c b/arch/arm/mach-iop13xx/setup.c index cfd4d2e6dacd..bee42c609df6 100644 --- a/arch/arm/mach-iop13xx/setup.c +++ b/arch/arm/mach-iop13xx/setup.c | |||
@@ -307,7 +307,7 @@ static struct resource iop13xx_adma_2_resources[] = { | |||
307 | } | 307 | } |
308 | }; | 308 | }; |
309 | 309 | ||
310 | static u64 iop13xx_adma_dmamask = DMA_64BIT_MASK; | 310 | static u64 iop13xx_adma_dmamask = DMA_BIT_MASK(64); |
311 | static struct iop_adma_platform_data iop13xx_adma_0_data = { | 311 | static struct iop_adma_platform_data iop13xx_adma_0_data = { |
312 | .hw_id = 0, | 312 | .hw_id = 0, |
313 | .pool_size = PAGE_SIZE, | 313 | .pool_size = PAGE_SIZE, |
@@ -331,7 +331,7 @@ static struct platform_device iop13xx_adma_0_channel = { | |||
331 | .resource = iop13xx_adma_0_resources, | 331 | .resource = iop13xx_adma_0_resources, |
332 | .dev = { | 332 | .dev = { |
333 | .dma_mask = &iop13xx_adma_dmamask, | 333 | .dma_mask = &iop13xx_adma_dmamask, |
334 | .coherent_dma_mask = DMA_64BIT_MASK, | 334 | .coherent_dma_mask = DMA_BIT_MASK(64), |
335 | .platform_data = (void *) &iop13xx_adma_0_data, | 335 | .platform_data = (void *) &iop13xx_adma_0_data, |
336 | }, | 336 | }, |
337 | }; | 337 | }; |
@@ -343,7 +343,7 @@ static struct platform_device iop13xx_adma_1_channel = { | |||
343 | .resource = iop13xx_adma_1_resources, | 343 | .resource = iop13xx_adma_1_resources, |
344 | .dev = { | 344 | .dev = { |
345 | .dma_mask = &iop13xx_adma_dmamask, | 345 | .dma_mask = &iop13xx_adma_dmamask, |
346 | .coherent_dma_mask = DMA_64BIT_MASK, | 346 | .coherent_dma_mask = DMA_BIT_MASK(64), |
347 | .platform_data = (void *) &iop13xx_adma_1_data, | 347 | .platform_data = (void *) &iop13xx_adma_1_data, |
348 | }, | 348 | }, |
349 | }; | 349 | }; |
@@ -355,7 +355,7 @@ static struct platform_device iop13xx_adma_2_channel = { | |||
355 | .resource = iop13xx_adma_2_resources, | 355 | .resource = iop13xx_adma_2_resources, |
356 | .dev = { | 356 | .dev = { |
357 | .dma_mask = &iop13xx_adma_dmamask, | 357 | .dma_mask = &iop13xx_adma_dmamask, |
358 | .coherent_dma_mask = DMA_64BIT_MASK, | 358 | .coherent_dma_mask = DMA_BIT_MASK(64), |
359 | .platform_data = (void *) &iop13xx_adma_2_data, | 359 | .platform_data = (void *) &iop13xx_adma_2_data, |
360 | }, | 360 | }, |
361 | }; | 361 | }; |
diff --git a/arch/arm/mach-iop13xx/tpmi.c b/arch/arm/mach-iop13xx/tpmi.c index c6af1e1bee32..6fdad7a0425a 100644 --- a/arch/arm/mach-iop13xx/tpmi.c +++ b/arch/arm/mach-iop13xx/tpmi.c | |||
@@ -151,7 +151,7 @@ static struct resource iop13xx_tpmi_3_resources[] = { | |||
151 | } | 151 | } |
152 | }; | 152 | }; |
153 | 153 | ||
154 | u64 iop13xx_tpmi_mask = DMA_64BIT_MASK; | 154 | u64 iop13xx_tpmi_mask = DMA_BIT_MASK(64); |
155 | static struct platform_device iop13xx_tpmi_0_device = { | 155 | static struct platform_device iop13xx_tpmi_0_device = { |
156 | .name = "iop-tpmi", | 156 | .name = "iop-tpmi", |
157 | .id = 0, | 157 | .id = 0, |
@@ -159,7 +159,7 @@ static struct platform_device iop13xx_tpmi_0_device = { | |||
159 | .resource = iop13xx_tpmi_0_resources, | 159 | .resource = iop13xx_tpmi_0_resources, |
160 | .dev = { | 160 | .dev = { |
161 | .dma_mask = &iop13xx_tpmi_mask, | 161 | .dma_mask = &iop13xx_tpmi_mask, |
162 | .coherent_dma_mask = DMA_64BIT_MASK, | 162 | .coherent_dma_mask = DMA_BIT_MASK(64), |
163 | }, | 163 | }, |
164 | }; | 164 | }; |
165 | 165 | ||
@@ -170,7 +170,7 @@ static struct platform_device iop13xx_tpmi_1_device = { | |||
170 | .resource = iop13xx_tpmi_1_resources, | 170 | .resource = iop13xx_tpmi_1_resources, |
171 | .dev = { | 171 | .dev = { |
172 | .dma_mask = &iop13xx_tpmi_mask, | 172 | .dma_mask = &iop13xx_tpmi_mask, |
173 | .coherent_dma_mask = DMA_64BIT_MASK, | 173 | .coherent_dma_mask = DMA_BIT_MASK(64), |
174 | }, | 174 | }, |
175 | }; | 175 | }; |
176 | 176 | ||
@@ -181,7 +181,7 @@ static struct platform_device iop13xx_tpmi_2_device = { | |||
181 | .resource = iop13xx_tpmi_2_resources, | 181 | .resource = iop13xx_tpmi_2_resources, |
182 | .dev = { | 182 | .dev = { |
183 | .dma_mask = &iop13xx_tpmi_mask, | 183 | .dma_mask = &iop13xx_tpmi_mask, |
184 | .coherent_dma_mask = DMA_64BIT_MASK, | 184 | .coherent_dma_mask = DMA_BIT_MASK(64), |
185 | }, | 185 | }, |
186 | }; | 186 | }; |
187 | 187 | ||
@@ -192,7 +192,7 @@ static struct platform_device iop13xx_tpmi_3_device = { | |||
192 | .resource = iop13xx_tpmi_3_resources, | 192 | .resource = iop13xx_tpmi_3_resources, |
193 | .dev = { | 193 | .dev = { |
194 | .dma_mask = &iop13xx_tpmi_mask, | 194 | .dma_mask = &iop13xx_tpmi_mask, |
195 | .coherent_dma_mask = DMA_64BIT_MASK, | 195 | .coherent_dma_mask = DMA_BIT_MASK(64), |
196 | }, | 196 | }, |
197 | }; | 197 | }; |
198 | 198 | ||
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 3d2fae846512..c691848714d9 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -559,7 +559,7 @@ static struct platform_device kirkwood_xor00_channel = { | |||
559 | .resource = kirkwood_xor00_resources, | 559 | .resource = kirkwood_xor00_resources, |
560 | .dev = { | 560 | .dev = { |
561 | .dma_mask = &kirkwood_xor_dmamask, | 561 | .dma_mask = &kirkwood_xor_dmamask, |
562 | .coherent_dma_mask = DMA_64BIT_MASK, | 562 | .coherent_dma_mask = DMA_BIT_MASK(64), |
563 | .platform_data = (void *)&kirkwood_xor00_data, | 563 | .platform_data = (void *)&kirkwood_xor00_data, |
564 | }, | 564 | }, |
565 | }; | 565 | }; |
@@ -585,7 +585,7 @@ static struct platform_device kirkwood_xor01_channel = { | |||
585 | .resource = kirkwood_xor01_resources, | 585 | .resource = kirkwood_xor01_resources, |
586 | .dev = { | 586 | .dev = { |
587 | .dma_mask = &kirkwood_xor_dmamask, | 587 | .dma_mask = &kirkwood_xor_dmamask, |
588 | .coherent_dma_mask = DMA_64BIT_MASK, | 588 | .coherent_dma_mask = DMA_BIT_MASK(64), |
589 | .platform_data = (void *)&kirkwood_xor01_data, | 589 | .platform_data = (void *)&kirkwood_xor01_data, |
590 | }, | 590 | }, |
591 | }; | 591 | }; |
@@ -657,7 +657,7 @@ static struct platform_device kirkwood_xor10_channel = { | |||
657 | .resource = kirkwood_xor10_resources, | 657 | .resource = kirkwood_xor10_resources, |
658 | .dev = { | 658 | .dev = { |
659 | .dma_mask = &kirkwood_xor_dmamask, | 659 | .dma_mask = &kirkwood_xor_dmamask, |
660 | .coherent_dma_mask = DMA_64BIT_MASK, | 660 | .coherent_dma_mask = DMA_BIT_MASK(64), |
661 | .platform_data = (void *)&kirkwood_xor10_data, | 661 | .platform_data = (void *)&kirkwood_xor10_data, |
662 | }, | 662 | }, |
663 | }; | 663 | }; |
@@ -683,7 +683,7 @@ static struct platform_device kirkwood_xor11_channel = { | |||
683 | .resource = kirkwood_xor11_resources, | 683 | .resource = kirkwood_xor11_resources, |
684 | .dev = { | 684 | .dev = { |
685 | .dma_mask = &kirkwood_xor_dmamask, | 685 | .dma_mask = &kirkwood_xor_dmamask, |
686 | .coherent_dma_mask = DMA_64BIT_MASK, | 686 | .coherent_dma_mask = DMA_BIT_MASK(64), |
687 | .platform_data = (void *)&kirkwood_xor11_data, | 687 | .platform_data = (void *)&kirkwood_xor11_data, |
688 | }, | 688 | }, |
689 | }; | 689 | }; |
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 68cc3efae567..e8d42e8cb465 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -486,7 +486,7 @@ static struct platform_device orion5x_xor0_channel = { | |||
486 | .resource = orion5x_xor0_resources, | 486 | .resource = orion5x_xor0_resources, |
487 | .dev = { | 487 | .dev = { |
488 | .dma_mask = &orion5x_xor_dmamask, | 488 | .dma_mask = &orion5x_xor_dmamask, |
489 | .coherent_dma_mask = DMA_64BIT_MASK, | 489 | .coherent_dma_mask = DMA_BIT_MASK(64), |
490 | .platform_data = (void *)&orion5x_xor0_data, | 490 | .platform_data = (void *)&orion5x_xor0_data, |
491 | }, | 491 | }, |
492 | }; | 492 | }; |
@@ -512,7 +512,7 @@ static struct platform_device orion5x_xor1_channel = { | |||
512 | .resource = orion5x_xor1_resources, | 512 | .resource = orion5x_xor1_resources, |
513 | .dev = { | 513 | .dev = { |
514 | .dma_mask = &orion5x_xor_dmamask, | 514 | .dma_mask = &orion5x_xor_dmamask, |
515 | .coherent_dma_mask = DMA_64BIT_MASK, | 515 | .coherent_dma_mask = DMA_BIT_MASK(64), |
516 | .platform_data = (void *)&orion5x_xor1_data, | 516 | .platform_data = (void *)&orion5x_xor1_data, |
517 | }, | 517 | }, |
518 | }; | 518 | }; |
diff --git a/arch/arm/plat-iop/adma.c b/arch/arm/plat-iop/adma.c index f72420821619..a2a94f6d2e7c 100644 --- a/arch/arm/plat-iop/adma.c +++ b/arch/arm/plat-iop/adma.c | |||
@@ -143,7 +143,7 @@ struct platform_device iop3xx_dma_0_channel = { | |||
143 | .resource = iop3xx_dma_0_resources, | 143 | .resource = iop3xx_dma_0_resources, |
144 | .dev = { | 144 | .dev = { |
145 | .dma_mask = &iop3xx_adma_dmamask, | 145 | .dma_mask = &iop3xx_adma_dmamask, |
146 | .coherent_dma_mask = DMA_64BIT_MASK, | 146 | .coherent_dma_mask = DMA_BIT_MASK(64), |
147 | .platform_data = (void *) &iop3xx_dma_0_data, | 147 | .platform_data = (void *) &iop3xx_dma_0_data, |
148 | }, | 148 | }, |
149 | }; | 149 | }; |
@@ -155,7 +155,7 @@ struct platform_device iop3xx_dma_1_channel = { | |||
155 | .resource = iop3xx_dma_1_resources, | 155 | .resource = iop3xx_dma_1_resources, |
156 | .dev = { | 156 | .dev = { |
157 | .dma_mask = &iop3xx_adma_dmamask, | 157 | .dma_mask = &iop3xx_adma_dmamask, |
158 | .coherent_dma_mask = DMA_64BIT_MASK, | 158 | .coherent_dma_mask = DMA_BIT_MASK(64), |
159 | .platform_data = (void *) &iop3xx_dma_1_data, | 159 | .platform_data = (void *) &iop3xx_dma_1_data, |
160 | }, | 160 | }, |
161 | }; | 161 | }; |
@@ -167,7 +167,7 @@ struct platform_device iop3xx_aau_channel = { | |||
167 | .resource = iop3xx_aau_resources, | 167 | .resource = iop3xx_aau_resources, |
168 | .dev = { | 168 | .dev = { |
169 | .dma_mask = &iop3xx_adma_dmamask, | 169 | .dma_mask = &iop3xx_adma_dmamask, |
170 | .coherent_dma_mask = DMA_64BIT_MASK, | 170 | .coherent_dma_mask = DMA_BIT_MASK(64), |
171 | .platform_data = (void *) &iop3xx_aau_data, | 171 | .platform_data = (void *) &iop3xx_aau_data, |
172 | }, | 172 | }, |
173 | }; | 173 | }; |
diff --git a/arch/ia64/sn/pci/pci_dma.c b/arch/ia64/sn/pci/pci_dma.c index 8c130e8f00e1..d876423e4e75 100644 --- a/arch/ia64/sn/pci/pci_dma.c +++ b/arch/ia64/sn/pci/pci_dma.c | |||
@@ -349,7 +349,7 @@ static int sn_dma_mapping_error(struct device *dev, dma_addr_t dma_addr) | |||
349 | 349 | ||
350 | u64 sn_dma_get_required_mask(struct device *dev) | 350 | u64 sn_dma_get_required_mask(struct device *dev) |
351 | { | 351 | { |
352 | return DMA_64BIT_MASK; | 352 | return DMA_BIT_MASK(64); |
353 | } | 353 | } |
354 | EXPORT_SYMBOL_GPL(sn_dma_get_required_mask); | 354 | EXPORT_SYMBOL_GPL(sn_dma_get_required_mask); |
355 | 355 | ||
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index 5744527a7f2a..bed4690de394 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -644,7 +644,7 @@ static void dma_fixed_unmap_sg(struct device *dev, struct scatterlist *sg, | |||
644 | 644 | ||
645 | static int dma_fixed_dma_supported(struct device *dev, u64 mask) | 645 | static int dma_fixed_dma_supported(struct device *dev, u64 mask) |
646 | { | 646 | { |
647 | return mask == DMA_64BIT_MASK; | 647 | return mask == DMA_BIT_MASK(64); |
648 | } | 648 | } |
649 | 649 | ||
650 | static int dma_set_mask_and_switch(struct device *dev, u64 dma_mask); | 650 | static int dma_set_mask_and_switch(struct device *dev, u64 dma_mask); |