Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)

Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)

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>

authored by

Yang Hongyang and committed by
Linus Torvalds
284901a9 6afd142f

+309 -313
+2 -2
arch/arm/mach-davinci/board-evm.c
··· 118 118 }, 119 119 }; 120 120 121 - static u64 ide_dma_mask = DMA_32BIT_MASK; 121 + static u64 ide_dma_mask = DMA_BIT_MASK(32); 122 122 123 123 static struct platform_device ide_dev = { 124 124 .name = "palm_bk3710", ··· 127 127 .num_resources = ARRAY_SIZE(ide_resources), 128 128 .dev = { 129 129 .dma_mask = &ide_dma_mask, 130 - .coherent_dma_mask = DMA_32BIT_MASK, 130 + .coherent_dma_mask = DMA_BIT_MASK(32), 131 131 }, 132 132 }; 133 133
+2 -2
arch/arm/mach-davinci/usb.c
··· 64 64 }, 65 65 }; 66 66 67 - static u64 usb_dmamask = DMA_32BIT_MASK; 67 + static u64 usb_dmamask = DMA_BIT_MASK(32); 68 68 69 69 static struct platform_device usb_dev = { 70 70 .name = "musb_hdrc", ··· 72 72 .dev = { 73 73 .platform_data = &usb_data, 74 74 .dma_mask = &usb_dmamask, 75 - .coherent_dma_mask = DMA_32BIT_MASK, 75 + .coherent_dma_mask = DMA_BIT_MASK(32), 76 76 }, 77 77 .resource = usb_resources, 78 78 .num_resources = ARRAY_SIZE(usb_resources),
+1 -1
arch/arm/mach-kirkwood/common.c
··· 508 508 .dram = &kirkwood_mbus_dram_info, 509 509 }; 510 510 511 - static u64 kirkwood_xor_dmamask = DMA_32BIT_MASK; 511 + static u64 kirkwood_xor_dmamask = DMA_BIT_MASK(32); 512 512 513 513 514 514 /*****************************************************************************
+1 -1
arch/arm/mach-orion5x/common.c
··· 463 463 .resource = orion5x_xor_shared_resources, 464 464 }; 465 465 466 - static u64 orion5x_xor_dmamask = DMA_32BIT_MASK; 466 + static u64 orion5x_xor_dmamask = DMA_BIT_MASK(32); 467 467 468 468 static struct resource orion5x_xor0_resources[] = { 469 469 [0] = {
+1 -1
arch/arm/plat-iop/adma.c
··· 119 119 } 120 120 }; 121 121 122 - static u64 iop3xx_adma_dmamask = DMA_32BIT_MASK; 122 + static u64 iop3xx_adma_dmamask = DMA_BIT_MASK(32); 123 123 124 124 static struct iop_adma_platform_data iop3xx_dma_0_data = { 125 125 .hw_id = DMA0_ID,
+2 -2
arch/avr32/boards/hammerhead/flash.c
··· 280 280 }, 281 281 }; 282 282 283 - static u64 hh_fpga0_dma_mask = DMA_32BIT_MASK; 283 + static u64 hh_fpga0_dma_mask = DMA_BIT_MASK(32); 284 284 static struct platform_device hh_fpga0_device = { 285 285 .name = "hh_fpga", 286 286 .id = 0, 287 287 .dev = { 288 288 .dma_mask = &hh_fpga0_dma_mask, 289 - .coherent_dma_mask = DMA_32BIT_MASK, 289 + .coherent_dma_mask = DMA_BIT_MASK(32), 290 290 }, 291 291 .resource = hh_fpga0_resource, 292 292 .num_resources = ARRAY_SIZE(hh_fpga0_resource),
+4 -4
arch/avr32/mach-at32ap/at32ap700x.c
··· 60 60 * don't ... tc, smc, pio, rtc, watchdog, pwm, ps2, and more. 61 61 */ 62 62 #define DEFINE_DEV(_name, _id) \ 63 - static u64 _name##_id##_dma_mask = DMA_32BIT_MASK; \ 63 + static u64 _name##_id##_dma_mask = DMA_BIT_MASK(32); \ 64 64 static struct platform_device _name##_id##_device = { \ 65 65 .name = #_name, \ 66 66 .id = _id, \ 67 67 .dev = { \ 68 68 .dma_mask = &_name##_id##_dma_mask, \ 69 - .coherent_dma_mask = DMA_32BIT_MASK, \ 69 + .coherent_dma_mask = DMA_BIT_MASK(32), \ 70 70 }, \ 71 71 .resource = _name##_id##_resource, \ 72 72 .num_resources = ARRAY_SIZE(_name##_id##_resource), \ 73 73 } 74 74 #define DEFINE_DEV_DATA(_name, _id) \ 75 - static u64 _name##_id##_dma_mask = DMA_32BIT_MASK; \ 75 + static u64 _name##_id##_dma_mask = DMA_BIT_MASK(32); \ 76 76 static struct platform_device _name##_id##_device = { \ 77 77 .name = #_name, \ 78 78 .id = _id, \ 79 79 .dev = { \ 80 80 .dma_mask = &_name##_id##_dma_mask, \ 81 81 .platform_data = &_name##_id##_data, \ 82 - .coherent_dma_mask = DMA_32BIT_MASK, \ 82 + .coherent_dma_mask = DMA_BIT_MASK(32), \ 83 83 }, \ 84 84 .resource = _name##_id##_resource, \ 85 85 .num_resources = ARRAY_SIZE(_name##_id##_resource), \
+1 -1
arch/ia64/kernel/pci-dma.c
··· 37 37 to i386. */ 38 38 struct device fallback_dev = { 39 39 .init_name = "fallback device", 40 - .coherent_dma_mask = DMA_32BIT_MASK, 40 + .coherent_dma_mask = DMA_BIT_MASK(32), 41 41 .dma_mask = &fallback_dev.coherent_dma_mask, 42 42 }; 43 43
+15 -15
arch/mips/alchemy/common/platform.c
··· 80 80 }; 81 81 82 82 /* The dmamask must be set for OHCI to work */ 83 - static u64 ohci_dmamask = DMA_32BIT_MASK; 83 + static u64 ohci_dmamask = DMA_BIT_MASK(32); 84 84 85 85 static struct platform_device au1xxx_usb_ohci_device = { 86 86 .name = "au1xxx-ohci", 87 87 .id = 0, 88 88 .dev = { 89 89 .dma_mask = &ohci_dmamask, 90 - .coherent_dma_mask = DMA_32BIT_MASK, 90 + .coherent_dma_mask = DMA_BIT_MASK(32), 91 91 }, 92 92 .num_resources = ARRAY_SIZE(au1xxx_usb_ohci_resources), 93 93 .resource = au1xxx_usb_ohci_resources, ··· 109 109 } 110 110 }; 111 111 112 - static u64 au1100_lcd_dmamask = DMA_32BIT_MASK; 112 + static u64 au1100_lcd_dmamask = DMA_BIT_MASK(32); 113 113 114 114 static struct platform_device au1100_lcd_device = { 115 115 .name = "au1100-lcd", 116 116 .id = 0, 117 117 .dev = { 118 118 .dma_mask = &au1100_lcd_dmamask, 119 - .coherent_dma_mask = DMA_32BIT_MASK, 119 + .coherent_dma_mask = DMA_BIT_MASK(32), 120 120 }, 121 121 .num_resources = ARRAY_SIZE(au1100_lcd_resources), 122 122 .resource = au1100_lcd_resources, ··· 138 138 }, 139 139 }; 140 140 141 - static u64 ehci_dmamask = DMA_32BIT_MASK; 141 + static u64 ehci_dmamask = DMA_BIT_MASK(32); 142 142 143 143 static struct platform_device au1xxx_usb_ehci_device = { 144 144 .name = "au1xxx-ehci", 145 145 .id = 0, 146 146 .dev = { 147 147 .dma_mask = &ehci_dmamask, 148 - .coherent_dma_mask = DMA_32BIT_MASK, 148 + .coherent_dma_mask = DMA_BIT_MASK(32), 149 149 }, 150 150 .num_resources = ARRAY_SIZE(au1xxx_usb_ehci_resources), 151 151 .resource = au1xxx_usb_ehci_resources, ··· 165 165 }, 166 166 }; 167 167 168 - static u64 udc_dmamask = DMA_32BIT_MASK; 168 + static u64 udc_dmamask = DMA_BIT_MASK(32); 169 169 170 170 static struct platform_device au1xxx_usb_gdt_device = { 171 171 .name = "au1xxx-udc", 172 172 .id = 0, 173 173 .dev = { 174 174 .dma_mask = &udc_dmamask, 175 - .coherent_dma_mask = DMA_32BIT_MASK, 175 + .coherent_dma_mask = DMA_BIT_MASK(32), 176 176 }, 177 177 .num_resources = ARRAY_SIZE(au1xxx_usb_gdt_resources), 178 178 .resource = au1xxx_usb_gdt_resources, ··· 192 192 }, 193 193 }; 194 194 195 - static u64 uoc_dmamask = DMA_32BIT_MASK; 195 + static u64 uoc_dmamask = DMA_BIT_MASK(32); 196 196 197 197 static struct platform_device au1xxx_usb_otg_device = { 198 198 .name = "au1xxx-uoc", 199 199 .id = 0, 200 200 .dev = { 201 201 .dma_mask = &uoc_dmamask, 202 - .coherent_dma_mask = DMA_32BIT_MASK, 202 + .coherent_dma_mask = DMA_BIT_MASK(32), 203 203 }, 204 204 .num_resources = ARRAY_SIZE(au1xxx_usb_otg_resources), 205 205 .resource = au1xxx_usb_otg_resources, ··· 218 218 } 219 219 }; 220 220 221 - static u64 au1200_lcd_dmamask = DMA_32BIT_MASK; 221 + static u64 au1200_lcd_dmamask = DMA_BIT_MASK(32); 222 222 223 223 static struct platform_device au1200_lcd_device = { 224 224 .name = "au1200-lcd", 225 225 .id = 0, 226 226 .dev = { 227 227 .dma_mask = &au1200_lcd_dmamask, 228 - .coherent_dma_mask = DMA_32BIT_MASK, 228 + .coherent_dma_mask = DMA_BIT_MASK(32), 229 229 }, 230 230 .num_resources = ARRAY_SIZE(au1200_lcd_resources), 231 231 .resource = au1200_lcd_resources, 232 232 }; 233 233 234 - static u64 au1xxx_mmc_dmamask = DMA_32BIT_MASK; 234 + static u64 au1xxx_mmc_dmamask = DMA_BIT_MASK(32); 235 235 236 236 extern struct au1xmmc_platform_data au1xmmc_platdata[2]; 237 237 ··· 263 263 .id = 0, 264 264 .dev = { 265 265 .dma_mask = &au1xxx_mmc_dmamask, 266 - .coherent_dma_mask = DMA_32BIT_MASK, 266 + .coherent_dma_mask = DMA_BIT_MASK(32), 267 267 .platform_data = &au1xmmc_platdata[0], 268 268 }, 269 269 .num_resources = ARRAY_SIZE(au1200_mmc0_resources), ··· 299 299 .id = 1, 300 300 .dev = { 301 301 .dma_mask = &au1xxx_mmc_dmamask, 302 - .coherent_dma_mask = DMA_32BIT_MASK, 302 + .coherent_dma_mask = DMA_BIT_MASK(32), 303 303 .platform_data = &au1xmmc_platdata[1], 304 304 }, 305 305 .num_resources = ARRAY_SIZE(au1200_mmc1_resources),
+2 -2
arch/mips/alchemy/devboards/pb1200/platform.c
··· 119 119 } 120 120 }; 121 121 122 - static u64 ide_dmamask = DMA_32BIT_MASK; 122 + static u64 ide_dmamask = DMA_BIT_MASK(32); 123 123 124 124 static struct platform_device ide_device = { 125 125 .name = "au1200-ide", 126 126 .id = 0, 127 127 .dev = { 128 128 .dma_mask = &ide_dmamask, 129 - .coherent_dma_mask = DMA_32BIT_MASK, 129 + .coherent_dma_mask = DMA_BIT_MASK(32), 130 130 }, 131 131 .num_resources = ARRAY_SIZE(ide_resources), 132 132 .resource = ide_resources
+6 -6
arch/mips/nxp/pnx833x/common/platform.c
··· 42 42 #include <irq-mapping.h> 43 43 #include <pnx833x.h> 44 44 45 - static u64 uart_dmamask = DMA_32BIT_MASK; 45 + static u64 uart_dmamask = DMA_BIT_MASK(32); 46 46 47 47 static struct resource pnx833x_uart_resources[] = { 48 48 [0] = { ··· 101 101 .id = -1, 102 102 .dev = { 103 103 .dma_mask = &uart_dmamask, 104 - .coherent_dma_mask = DMA_32BIT_MASK, 104 + .coherent_dma_mask = DMA_BIT_MASK(32), 105 105 .platform_data = pnx8xxx_ports, 106 106 }, 107 107 .num_resources = ARRAY_SIZE(pnx833x_uart_resources), 108 108 .resource = pnx833x_uart_resources, 109 109 }; 110 110 111 - static u64 ehci_dmamask = DMA_32BIT_MASK; 111 + static u64 ehci_dmamask = DMA_BIT_MASK(32); 112 112 113 113 static struct resource pnx833x_usb_ehci_resources[] = { 114 114 [0] = { ··· 128 128 .id = -1, 129 129 .dev = { 130 130 .dma_mask = &ehci_dmamask, 131 - .coherent_dma_mask = DMA_32BIT_MASK, 131 + .coherent_dma_mask = DMA_BIT_MASK(32), 132 132 }, 133 133 .num_resources = ARRAY_SIZE(pnx833x_usb_ehci_resources), 134 134 .resource = pnx833x_usb_ehci_resources, ··· 198 198 }; 199 199 #endif 200 200 201 - static u64 ethernet_dmamask = DMA_32BIT_MASK; 201 + static u64 ethernet_dmamask = DMA_BIT_MASK(32); 202 202 203 203 static struct resource pnx833x_ethernet_resources[] = { 204 204 [0] = { ··· 218 218 .id = -1, 219 219 .dev = { 220 220 .dma_mask = &ethernet_dmamask, 221 - .coherent_dma_mask = DMA_32BIT_MASK, 221 + .coherent_dma_mask = DMA_BIT_MASK(32), 222 222 }, 223 223 .num_resources = ARRAY_SIZE(pnx833x_ethernet_resources), 224 224 .resource = pnx833x_ethernet_resources,
+4 -4
arch/mips/nxp/pnx8550/common/platform.c
··· 92 92 }; 93 93 94 94 /* The dmamask must be set for OHCI to work */ 95 - static u64 ohci_dmamask = DMA_32BIT_MASK; 95 + static u64 ohci_dmamask = DMA_BIT_MASK(32); 96 96 97 - static u64 uart_dmamask = DMA_32BIT_MASK; 97 + static u64 uart_dmamask = DMA_BIT_MASK(32); 98 98 99 99 static struct platform_device pnx8550_usb_ohci_device = { 100 100 .name = "pnx8550-ohci", 101 101 .id = -1, 102 102 .dev = { 103 103 .dma_mask = &ohci_dmamask, 104 - .coherent_dma_mask = DMA_32BIT_MASK, 104 + .coherent_dma_mask = DMA_BIT_MASK(32), 105 105 }, 106 106 .num_resources = ARRAY_SIZE(pnx8550_usb_ohci_resources), 107 107 .resource = pnx8550_usb_ohci_resources, ··· 112 112 .id = -1, 113 113 .dev = { 114 114 .dma_mask = &uart_dmamask, 115 - .coherent_dma_mask = DMA_32BIT_MASK, 115 + .coherent_dma_mask = DMA_BIT_MASK(32), 116 116 .platform_data = pnx8xxx_ports, 117 117 }, 118 118 .num_resources = ARRAY_SIZE(pnx8550_uart_resources),
+4 -4
arch/mips/pmc-sierra/msp71xx/msp_usb.c
··· 49 49 }, 50 50 }; 51 51 52 - static u64 msp_usbhost_dma_mask = DMA_32BIT_MASK; 52 + static u64 msp_usbhost_dma_mask = DMA_BIT_MASK(32); 53 53 54 54 static struct platform_device msp_usbhost_device = { 55 55 .name = "pmcmsp-ehci", 56 56 .id = 0, 57 57 .dev = { 58 58 .dma_mask = &msp_usbhost_dma_mask, 59 - .coherent_dma_mask = DMA_32BIT_MASK, 59 + .coherent_dma_mask = DMA_BIT_MASK(32), 60 60 }, 61 61 .num_resources = ARRAY_SIZE(msp_usbhost_resources), 62 62 .resource = msp_usbhost_resources, ··· 77 77 }, 78 78 }; 79 79 80 - static u64 msp_usbdev_dma_mask = DMA_32BIT_MASK; 80 + static u64 msp_usbdev_dma_mask = DMA_BIT_MASK(32); 81 81 82 82 static struct platform_device msp_usbdev_device = { 83 83 .name = "msp71xx_udc", 84 84 .id = 0, 85 85 .dev = { 86 86 .dma_mask = &msp_usbdev_dma_mask, 87 - .coherent_dma_mask = DMA_32BIT_MASK, 87 + .coherent_dma_mask = DMA_BIT_MASK(32), 88 88 }, 89 89 .num_resources = ARRAY_SIZE(msp_usbdev_resources), 90 90 .resource = msp_usbdev_resources,
+1 -1
arch/powerpc/kernel/dma.c
··· 94 94 * done via some global so platforms can set the limit in case 95 95 * they have limited DMA windows 96 96 */ 97 - return mask >= DMA_32BIT_MASK; 97 + return mask >= DMA_BIT_MASK(32); 98 98 #else 99 99 return 1; 100 100 #endif
+1 -1
arch/powerpc/kernel/of_platform.c
··· 76 76 return NULL; 77 77 78 78 dev->dma_mask = 0xffffffffUL; 79 - dev->dev.coherent_dma_mask = DMA_32BIT_MASK; 79 + dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); 80 80 81 81 dev->dev.bus = &of_platform_bus_type; 82 82
+2 -2
arch/powerpc/platforms/iseries/iommu.c
··· 202 202 void *iseries_hv_alloc(size_t size, dma_addr_t *dma_handle, gfp_t flag) 203 203 { 204 204 return iommu_alloc_coherent(NULL, &vio_iommu_table, size, dma_handle, 205 - DMA_32BIT_MASK, flag, -1); 205 + DMA_BIT_MASK(32), flag, -1); 206 206 } 207 207 EXPORT_SYMBOL_GPL(iseries_hv_alloc); 208 208 ··· 217 217 { 218 218 return iommu_map_page(NULL, &vio_iommu_table, virt_to_page(vaddr), 219 219 (unsigned long)vaddr % PAGE_SIZE, size, 220 - DMA_32BIT_MASK, direction, NULL); 220 + DMA_BIT_MASK(32), direction, NULL); 221 221 } 222 222 223 223 void iseries_hv_unmap(dma_addr_t dma_handle, size_t size,
+1 -1
arch/powerpc/platforms/ps3/system-bus.c
··· 689 689 690 690 static int ps3_dma_supported(struct device *_dev, u64 mask) 691 691 { 692 - return mask >= DMA_32BIT_MASK; 692 + return mask >= DMA_BIT_MASK(32); 693 693 } 694 694 695 695 static struct dma_mapping_ops ps3_sb_dma_ops = {
+2 -2
arch/x86/include/asm/dma-mapping.h
··· 238 238 239 239 dma_mask = dev->coherent_dma_mask; 240 240 if (!dma_mask) 241 - dma_mask = (gfp & GFP_DMA) ? DMA_24BIT_MASK : DMA_32BIT_MASK; 241 + dma_mask = (gfp & GFP_DMA) ? DMA_24BIT_MASK : DMA_BIT_MASK(32); 242 242 243 243 return dma_mask; 244 244 } ··· 250 250 if (dma_mask <= DMA_24BIT_MASK) 251 251 gfp |= GFP_DMA; 252 252 #ifdef CONFIG_X86_64 253 - if (dma_mask <= DMA_32BIT_MASK && !(gfp & GFP_DMA)) 253 + if (dma_mask <= DMA_BIT_MASK(32) && !(gfp & GFP_DMA)) 254 254 gfp |= GFP_DMA32; 255 255 #endif 256 256 return gfp;
+2 -2
arch/x86/kernel/pci-dma.c
··· 40 40 to older i386. */ 41 41 struct device x86_dma_fallback_dev = { 42 42 .init_name = "fallback device", 43 - .coherent_dma_mask = DMA_32BIT_MASK, 43 + .coherent_dma_mask = DMA_BIT_MASK(32), 44 44 .dma_mask = &x86_dma_fallback_dev.coherent_dma_mask, 45 45 }; 46 46 EXPORT_SYMBOL(x86_dma_fallback_dev); ··· 148 148 if (!is_buffer_dma_capable(dma_mask, addr, size)) { 149 149 __free_pages(page, get_order(size)); 150 150 151 - if (dma_mask < DMA_32BIT_MASK && !(flag & GFP_DMA)) { 151 + if (dma_mask < DMA_BIT_MASK(32) && !(flag & GFP_DMA)) { 152 152 flag = (flag & ~GFP_DMA32) | GFP_DMA; 153 153 goto again; 154 154 }
+1 -1
arch/x86/kernel/pci-nommu.c
··· 15 15 check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size) 16 16 { 17 17 if (hwdev && !is_buffer_dma_capable(*hwdev->dma_mask, bus, size)) { 18 - if (*hwdev->dma_mask >= DMA_32BIT_MASK) 18 + if (*hwdev->dma_mask >= DMA_BIT_MASK(32)) 19 19 printk(KERN_ERR 20 20 "nommu_%s: overflow %Lx+%zu of device mask %Lx\n", 21 21 name, (long long)bus, size,
+3 -3
drivers/ata/ahci.c
··· 2408 2408 !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 2409 2409 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 2410 2410 if (rc) { 2411 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 2411 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 2412 2412 if (rc) { 2413 2413 dev_printk(KERN_ERR, &pdev->dev, 2414 2414 "64-bit DMA enable failed\n"); ··· 2416 2416 } 2417 2417 } 2418 2418 } else { 2419 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2419 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 2420 2420 if (rc) { 2421 2421 dev_printk(KERN_ERR, &pdev->dev, 2422 2422 "32-bit DMA enable failed\n"); 2423 2423 return rc; 2424 2424 } 2425 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 2425 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 2426 2426 if (rc) { 2427 2427 dev_printk(KERN_ERR, &pdev->dev, 2428 2428 "32-bit consistent DMA enable failed\n");
+2 -2
drivers/ata/pata_cs5520.c
··· 203 203 return -ENODEV; 204 204 } 205 205 206 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 206 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 207 207 printk(KERN_ERR DRV_NAME ": unable to configure DMA mask.\n"); 208 208 return -ENODEV; 209 209 } 210 - if (pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 210 + if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { 211 211 printk(KERN_ERR DRV_NAME ": unable to configure consistent DMA mask.\n"); 212 212 return -ENODEV; 213 213 }
+1 -1
drivers/ata/pata_ixp4xx_cf.c
··· 157 157 return -ENOMEM; 158 158 159 159 /* acquire resources and fill host */ 160 - pdev->dev.coherent_dma_mask = DMA_32BIT_MASK; 160 + pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); 161 161 162 162 data->cs0 = devm_ioremap(&pdev->dev, cs0->start, 0x1000); 163 163 data->cs1 = devm_ioremap(&pdev->dev, cs1->start, 0x1000);
+2 -2
drivers/ata/pdc_adma.c
··· 607 607 { 608 608 int rc; 609 609 610 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 610 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 611 611 if (rc) { 612 612 dev_printk(KERN_ERR, &pdev->dev, 613 613 "32-bit DMA enable failed\n"); 614 614 return rc; 615 615 } 616 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 616 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 617 617 if (rc) { 618 618 dev_printk(KERN_ERR, &pdev->dev, 619 619 "32-bit consistent DMA enable failed\n");
+2 -2
drivers/ata/sata_inic162x.c
··· 861 861 } 862 862 863 863 /* Set dma_mask. This devices doesn't support 64bit addressing. */ 864 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 864 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 865 865 if (rc) { 866 866 dev_printk(KERN_ERR, &pdev->dev, 867 867 "32-bit DMA enable failed\n"); 868 868 return rc; 869 869 } 870 870 871 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 871 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 872 872 if (rc) { 873 873 dev_printk(KERN_ERR, &pdev->dev, 874 874 "32-bit consistent DMA enable failed\n");
+3 -3
drivers/ata/sata_mv.c
··· 3916 3916 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 3917 3917 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 3918 3918 if (rc) { 3919 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3919 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 3920 3920 if (rc) { 3921 3921 dev_printk(KERN_ERR, &pdev->dev, 3922 3922 "64-bit DMA enable failed\n"); ··· 3924 3924 } 3925 3925 } 3926 3926 } else { 3927 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 3927 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 3928 3928 if (rc) { 3929 3929 dev_printk(KERN_ERR, &pdev->dev, 3930 3930 "32-bit DMA enable failed\n"); 3931 3931 return rc; 3932 3932 } 3933 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3933 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 3934 3934 if (rc) { 3935 3935 dev_printk(KERN_ERR, &pdev->dev, 3936 3936 "32-bit consistent DMA enable failed\n");
+3 -3
drivers/ata/sata_qstor.c
··· 587 587 !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 588 588 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 589 589 if (rc) { 590 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 590 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 591 591 if (rc) { 592 592 dev_printk(KERN_ERR, &pdev->dev, 593 593 "64-bit DMA enable failed\n"); ··· 595 595 } 596 596 } 597 597 } else { 598 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 598 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 599 599 if (rc) { 600 600 dev_printk(KERN_ERR, &pdev->dev, 601 601 "32-bit DMA enable failed\n"); 602 602 return rc; 603 603 } 604 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 604 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 605 605 if (rc) { 606 606 dev_printk(KERN_ERR, &pdev->dev, 607 607 "32-bit consistent DMA enable failed\n");
+3 -3
drivers/ata/sata_sil24.c
··· 1300 1300 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 1301 1301 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 1302 1302 if (rc) { 1303 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1303 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1304 1304 if (rc) { 1305 1305 dev_printk(KERN_ERR, &pdev->dev, 1306 1306 "64-bit DMA enable failed\n"); ··· 1308 1308 } 1309 1309 } 1310 1310 } else { 1311 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1311 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1312 1312 if (rc) { 1313 1313 dev_printk(KERN_ERR, &pdev->dev, 1314 1314 "32-bit DMA enable failed\n"); 1315 1315 return rc; 1316 1316 } 1317 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1317 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1318 1318 if (rc) { 1319 1319 dev_printk(KERN_ERR, &pdev->dev, 1320 1320 "32-bit consistent DMA enable failed\n");
+2 -2
drivers/ata/sata_vsc.c
··· 399 399 /* 400 400 * Use 32 bit DMA mask, because 64 bit address support is poor. 401 401 */ 402 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 402 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 403 403 if (rc) 404 404 return rc; 405 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 405 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 406 406 if (rc) 407 407 return rc; 408 408
+1 -1
drivers/atm/he.c
··· 358 358 359 359 if (pci_enable_device(pci_dev)) 360 360 return -EIO; 361 - if (pci_set_dma_mask(pci_dev, DMA_32BIT_MASK) != 0) { 361 + if (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)) != 0) { 362 362 printk(KERN_WARNING "he: no suitable dma available\n"); 363 363 err = -EIO; 364 364 goto init_one_failure;
+2 -2
drivers/atm/lanai.c
··· 1957 1957 return -ENXIO; 1958 1958 } 1959 1959 pci_set_master(pci); 1960 - if (pci_set_dma_mask(pci, DMA_32BIT_MASK) != 0) { 1960 + if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) != 0) { 1961 1961 printk(KERN_WARNING DEV_LABEL 1962 1962 "(itf %d): No suitable DMA available.\n", lanai->number); 1963 1963 return -EBUSY; 1964 1964 } 1965 - if (pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) != 0) { 1965 + if (pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) != 0) { 1966 1966 printk(KERN_WARNING DEV_LABEL 1967 1967 "(itf %d): No suitable DMA available.\n", lanai->number); 1968 1968 return -EBUSY;
+4 -4
drivers/block/DAC960.c
··· 1169 1169 int i; 1170 1170 1171 1171 1172 - if (pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK)) 1172 + if (pci_set_dma_mask(Controller->PCIDevice, DMA_BIT_MASK(32))) 1173 1173 return DAC960_Failure(Controller, "DMA mask out of range"); 1174 - Controller->BounceBufferLimit = DMA_32BIT_MASK; 1174 + Controller->BounceBufferLimit = DMA_BIT_MASK(32); 1175 1175 1176 1176 if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) { 1177 1177 CommandMailboxesSize = 0; ··· 1374 1374 1375 1375 if (!pci_set_dma_mask(Controller->PCIDevice, DMA_BIT_MASK(64))) 1376 1376 Controller->BounceBufferLimit = DMA_BIT_MASK(64); 1377 - else if (!pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK)) 1378 - Controller->BounceBufferLimit = DMA_32BIT_MASK; 1377 + else if (!pci_set_dma_mask(Controller->PCIDevice, DMA_BIT_MASK(32))) 1378 + Controller->BounceBufferLimit = DMA_BIT_MASK(32); 1379 1379 else 1380 1380 return DAC960_Failure(Controller, "DMA mask out of range"); 1381 1381
+1 -1
drivers/block/cciss.c
··· 3639 3639 /* configure PCI DMA stuff */ 3640 3640 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) 3641 3641 dac = 1; 3642 - else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) 3642 + else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) 3643 3643 dac = 0; 3644 3644 else { 3645 3645 printk(KERN_ERR "cciss: no suitable DMA available\n");
+1 -1
drivers/block/sx8.c
··· 1597 1597 pci_dac = 1; 1598 1598 } else { 1599 1599 #endif 1600 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1600 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1601 1601 if (rc) { 1602 1602 printk(KERN_ERR DRV_NAME "(%s): DMA mask failure\n", 1603 1603 pci_name(pdev));
+1 -1
drivers/block/umem.c
··· 830 830 "Micro Memory(tm) controller found (PCI Mem Module (Battery Backup))\n"); 831 831 832 832 if (pci_set_dma_mask(dev, DMA_BIT_MASK(64)) && 833 - pci_set_dma_mask(dev, DMA_32BIT_MASK)) { 833 + pci_set_dma_mask(dev, DMA_BIT_MASK(32))) { 834 834 dev_printk(KERN_WARNING, &dev->dev, "NO suitable DMA found\n"); 835 835 return -ENOMEM; 836 836 }
+1 -1
drivers/crypto/hifn_795x.c
··· 2575 2575 return err; 2576 2576 pci_set_master(pdev); 2577 2577 2578 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2578 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 2579 2579 if (err) 2580 2580 goto err_out_disable_pci_device; 2581 2581
+1 -1
drivers/crypto/ixp4xx_crypto.c
··· 209 209 .id = 0, 210 210 .num_resources = 0, 211 211 .dev = { 212 - .coherent_dma_mask = DMA_32BIT_MASK, 212 + .coherent_dma_mask = DMA_BIT_MASK(32), 213 213 .release = dev_release, 214 214 } 215 215 };
+2 -2
drivers/dma/ioat.c
··· 100 100 101 101 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); 102 102 if (err) 103 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 103 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 104 104 if (err) 105 105 goto err_set_dma_mask; 106 106 107 107 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 108 108 if (err) 109 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 109 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 110 110 if (err) 111 111 goto err_set_dma_mask; 112 112
+1 -1
drivers/firmware/dcdbas.c
··· 545 545 * BIOS SMI calls require buffer addresses be in 32-bit address space. 546 546 * This is done by setting the DMA mask below. 547 547 */ 548 - dcdbas_pdev->dev.coherent_dma_mask = DMA_32BIT_MASK; 548 + dcdbas_pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); 549 549 dcdbas_pdev->dev.dma_mask = &dcdbas_pdev->dev.coherent_dma_mask; 550 550 551 551 error = sysfs_create_group(&dev->dev.kobj, &dcdbas_attr_group);
+1 -1
drivers/ide/cs5520.c
··· 122 122 return -ENODEV; 123 123 } 124 124 pci_set_master(dev); 125 - if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) { 125 + if (pci_set_dma_mask(dev, DMA_BIT_MASK(32))) { 126 126 printk(KERN_WARNING "%s: No suitable DMA available.\n", 127 127 d->name); 128 128 return -ENODEV;
+1 -1
drivers/ide/setup-pci.c
··· 208 208 * a DMA mask field to the struct ide_port_info if we need it 209 209 * (or let lower level driver set the DMA mask) 210 210 */ 211 - ret = pci_set_dma_mask(dev, DMA_32BIT_MASK); 211 + ret = pci_set_dma_mask(dev, DMA_BIT_MASK(32)); 212 212 if (ret < 0) { 213 213 printk(KERN_ERR "%s %s: can't set DMA mask\n", 214 214 d->name, pci_name(dev));
+1 -1
drivers/ieee1394/pcilynx.c
··· 1171 1171 1172 1172 error = -ENXIO; 1173 1173 1174 - if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) 1174 + if (pci_set_dma_mask(dev, DMA_BIT_MASK(32))) 1175 1175 FAIL("DMA address limits not supported for PCILynx hardware"); 1176 1176 if (pci_enable_device(dev)) 1177 1177 FAIL("failed to enable PCILynx hardware");
+1 -1
drivers/infiniband/hw/amso1100/c2.c
··· 995 995 goto bail2; 996 996 } 997 997 } else { 998 - ret = pci_set_dma_mask(pcidev, DMA_32BIT_MASK); 998 + ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32)); 999 999 if (ret < 0) { 1000 1000 printk(KERN_ERR PFX "32b DMA configuration failed\n"); 1001 1001 goto bail2;
+2 -2
drivers/infiniband/hw/ipath/ipath_driver.c
··· 477 477 * do not setup 64 bit maps on systems with 2GB or less 478 478 * memory installed. 479 479 */ 480 - ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 480 + ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 481 481 if (ret) { 482 482 dev_info(&pdev->dev, 483 483 "Unable to set DMA mask for unit %u: %d\n", ··· 486 486 } 487 487 else { 488 488 ipath_dbg("No 64bit DMA mask, used 32 bit mask\n"); 489 - ret = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 489 + ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 490 490 if (ret) 491 491 dev_info(&pdev->dev, 492 492 "Unable to set DMA consistent mask "
+2 -2
drivers/infiniband/hw/mthca/mthca_main.c
··· 1019 1019 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); 1020 1020 if (err) { 1021 1021 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n"); 1022 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1022 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1023 1023 if (err) { 1024 1024 dev_err(&pdev->dev, "Can't set PCI DMA mask, aborting.\n"); 1025 1025 goto err_free_res; ··· 1029 1029 if (err) { 1030 1030 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit " 1031 1031 "consistent PCI DMA mask.\n"); 1032 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1032 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1033 1033 if (err) { 1034 1034 dev_err(&pdev->dev, "Can't set consistent PCI DMA mask, " 1035 1035 "aborting.\n");
+2 -2
drivers/infiniband/hw/nes/nes.c
··· 489 489 goto bail2; 490 490 } 491 491 } else { 492 - ret = pci_set_dma_mask(pcidev, DMA_32BIT_MASK); 492 + ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32)); 493 493 if (ret < 0) { 494 494 printk(KERN_ERR PFX "32b DMA mask configuration failed\n"); 495 495 goto bail2; 496 496 } 497 - ret = pci_set_consistent_dma_mask(pcidev, DMA_32BIT_MASK); 497 + ret = pci_set_consistent_dma_mask(pcidev, DMA_BIT_MASK(32)); 498 498 if (ret) { 499 499 printk(KERN_ERR PFX "32b DMA consistent mask configuration failed\n"); 500 500 goto bail2;
+1 -1
drivers/media/dvb/dm1105/dm1105.c
··· 662 662 if (ret < 0) 663 663 goto err_kfree; 664 664 665 - ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 665 + ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 666 666 if (ret < 0) 667 667 goto err_pci_disable_device; 668 668
+1 -1
drivers/media/dvb/pluto2/pluto2.c
··· 616 616 /* enable interrupts */ 617 617 pci_write_config_dword(pdev, 0x6c, 0x8000); 618 618 619 - ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 619 + ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 620 620 if (ret < 0) 621 621 goto err_pci_disable_device; 622 622
+1 -1
drivers/media/video/bt8xx/bttv-driver.c
··· 4317 4317 btv->c.nr); 4318 4318 return -EIO; 4319 4319 } 4320 - if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) { 4320 + if (pci_set_dma_mask(dev, DMA_BIT_MASK(32))) { 4321 4321 printk(KERN_WARNING "bttv%d: No suitable DMA available.\n", 4322 4322 btv->c.nr); 4323 4323 return -EIO;
+1 -1
drivers/media/video/cx88/cx88-alsa.c
··· 745 745 return err; 746 746 } 747 747 748 - if (!pci_dma_supported(pci,DMA_32BIT_MASK)) { 748 + if (!pci_dma_supported(pci,DMA_BIT_MASK(32))) { 749 749 dprintk(0, "%s/1: Oops: no 32bit PCI DMA ???\n",core->name); 750 750 err = -EIO; 751 751 cx88_core_put(core,pci);
+1 -1
drivers/media/video/cx88/cx88-mpeg.c
··· 455 455 if (pci_enable_device(dev->pci)) 456 456 return -EIO; 457 457 pci_set_master(dev->pci); 458 - if (!pci_dma_supported(dev->pci,DMA_32BIT_MASK)) { 458 + if (!pci_dma_supported(dev->pci,DMA_BIT_MASK(32))) { 459 459 printk("%s/2: Oops: no 32bit PCI DMA ???\n",dev->core->name); 460 460 return -EIO; 461 461 }
+1 -1
drivers/media/video/cx88/cx88-video.c
··· 1832 1832 dev->pci_lat,(unsigned long long)pci_resource_start(pci_dev,0)); 1833 1833 1834 1834 pci_set_master(pci_dev); 1835 - if (!pci_dma_supported(pci_dev,DMA_32BIT_MASK)) { 1835 + if (!pci_dma_supported(pci_dev,DMA_BIT_MASK(32))) { 1836 1836 printk("%s/0: Oops: no 32bit PCI DMA ???\n",core->name); 1837 1837 err = -EIO; 1838 1838 goto fail_core;
+1 -1
drivers/media/video/meye.c
··· 117 117 memset(meye.mchip_ptable, 0, sizeof(meye.mchip_ptable)); 118 118 119 119 /* give only 32 bit DMA addresses */ 120 - if (dma_set_mask(&meye.mchip_dev->dev, DMA_32BIT_MASK)) 120 + if (dma_set_mask(&meye.mchip_dev->dev, DMA_BIT_MASK(32))) 121 121 return -1; 122 122 123 123 meye.mchip_ptable_toc = dma_alloc_coherent(&meye.mchip_dev->dev,
+1 -1
drivers/media/video/saa7134/saa7134-core.c
··· 911 911 pci_name(pci_dev), dev->pci_rev, pci_dev->irq, 912 912 dev->pci_lat,(unsigned long long)pci_resource_start(pci_dev,0)); 913 913 pci_set_master(pci_dev); 914 - if (!pci_dma_supported(pci_dev, DMA_32BIT_MASK)) { 914 + if (!pci_dma_supported(pci_dev, DMA_BIT_MASK(32))) { 915 915 printk("%s: Oops: no 32bit PCI DMA ???\n",dev->name); 916 916 err = -EIO; 917 917 goto fail1;
+1 -1
drivers/memstick/host/jmb38x_ms.c
··· 877 877 int pci_dev_busy = 0; 878 878 int rc, cnt; 879 879 880 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 880 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 881 881 if (rc) 882 882 return rc; 883 883
+2 -2
drivers/message/fusion/mptbase.c
··· 1539 1539 dinitprintk(ioc, printk(MYIOC_s_INFO_FMT 1540 1540 ": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", 1541 1541 ioc->name)); 1542 - } else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK) 1543 - && !pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 1542 + } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) 1543 + && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { 1544 1544 dinitprintk(ioc, printk(MYIOC_s_INFO_FMT 1545 1545 ": 32 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", 1546 1546 ioc->name));
+1 -1
drivers/message/i2o/memory.c
··· 187 187 mutex_lock(&mem_lock); 188 188 if ((sizeof(dma_addr_t) > 4) && (pdev->dma_mask == DMA_BIT_MASK(64))) { 189 189 dma_64 = 1; 190 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 190 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 191 191 mutex_unlock(&mem_lock); 192 192 return -ENOMEM; 193 193 }
+1 -1
drivers/message/i2o/pci.c
··· 334 334 return rc; 335 335 } 336 336 337 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 337 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 338 338 printk(KERN_WARNING "i2o: no suitable DMA found for %s\n", 339 339 pci_name(pdev)); 340 340 rc = -ENODEV;
+1 -1
drivers/misc/tifm_7xx1.c
··· 324 324 int pci_dev_busy = 0; 325 325 int rc; 326 326 327 - rc = pci_set_dma_mask(dev, DMA_32BIT_MASK); 327 + rc = pci_set_dma_mask(dev, DMA_BIT_MASK(32)); 328 328 if (rc) 329 329 return rc; 330 330
+1 -1
drivers/mmc/host/sdhci-pci.c
··· 380 380 "doesn't fully claim to support it.\n"); 381 381 } 382 382 383 - ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 383 + ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 384 384 if (ret) 385 385 return ret; 386 386
+3 -3
drivers/net/8139cp.c
··· 1530 1530 1531 1531 /* begin NIC statistics dump */ 1532 1532 cpw32(StatsAddr + 4, (u64)dma >> 32); 1533 - cpw32(StatsAddr, ((u64)dma & DMA_32BIT_MASK) | DumpStats); 1533 + cpw32(StatsAddr, ((u64)dma & DMA_BIT_MASK(32)) | DumpStats); 1534 1534 cpr32(StatsAddr); 1535 1535 1536 1536 for (i = 0; i < 1000; i++) { ··· 1935 1935 } else { 1936 1936 pci_using_dac = 0; 1937 1937 1938 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1938 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1939 1939 if (rc) { 1940 1940 dev_err(&pdev->dev, 1941 1941 "No usable DMA configuration, aborting.\n"); 1942 1942 goto err_out_res; 1943 1943 } 1944 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1944 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1945 1945 if (rc) { 1946 1946 dev_err(&pdev->dev, 1947 1947 "No usable consistent DMA configuration, "
+1 -1
drivers/net/acenic.c
··· 1163 1163 */ 1164 1164 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 1165 1165 ap->pci_using_dac = 1; 1166 - } else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 1166 + } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 1167 1167 ap->pci_using_dac = 0; 1168 1168 } else { 1169 1169 ecode = -ENODEV;
+1 -1
drivers/net/amd8111e.c
··· 1871 1871 } 1872 1872 1873 1873 /* Initialize DMA */ 1874 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) < 0) { 1874 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) < 0) { 1875 1875 printk(KERN_ERR "amd8111e: DMA not supported," 1876 1876 "exiting.\n"); 1877 1877 goto err_free_reg;
+2 -2
drivers/net/atl1e/atl1e_main.c
··· 2326 2326 * various kernel subsystems to support the mechanics required by a 2327 2327 * fixed-high-32-bit system. 2328 2328 */ 2329 - if ((pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) || 2330 - (pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK) != 0)) { 2329 + if ((pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) || 2330 + (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)) != 0)) { 2331 2331 dev_err(&pdev->dev, "No usable DMA configuration,aborting\n"); 2332 2332 goto err_dma; 2333 2333 }
+1 -1
drivers/net/atlx/atl1.c
··· 2929 2929 * various kernel subsystems to support the mechanics required by a 2930 2930 * fixed-high-32-bit system. 2931 2931 */ 2932 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2932 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 2933 2933 if (err) { 2934 2934 dev_err(&pdev->dev, "no usable DMA configuration\n"); 2935 2935 goto err_dma;
+2 -2
drivers/net/atlx/atl2.c
··· 1358 1358 * until the kernel has the proper infrastructure to support 64-bit DMA 1359 1359 * on these devices. 1360 1360 */ 1361 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) && 1362 - pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 1361 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) && 1362 + pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { 1363 1363 printk(KERN_ERR "atl2: No usable DMA configuration, aborting\n"); 1364 1364 goto err_dma; 1365 1365 }
+1 -1
drivers/net/bnx2.c
··· 7538 7538 "pci_set_consistent_dma_mask failed, aborting.\n"); 7539 7539 goto err_out_unmap; 7540 7540 } 7541 - } else if ((rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) != 0) { 7541 + } else if ((rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) { 7542 7542 dev_err(&pdev->dev, "System does not support DMA, aborting.\n"); 7543 7543 goto err_out_unmap; 7544 7544 }
+1 -1
drivers/net/bnx2x_main.c
··· 10988 10988 goto err_out_release; 10989 10989 } 10990 10990 10991 - } else if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) { 10991 + } else if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) { 10992 10992 printk(KERN_ERR PFX "System does not support DMA," 10993 10993 " aborting\n"); 10994 10994 rc = -EIO;
+1 -1
drivers/net/cassini.c
··· 5085 5085 } 5086 5086 5087 5087 } else { 5088 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 5088 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 5089 5089 if (err) { 5090 5090 dev_err(&pdev->dev, "No usable DMA configuration, " 5091 5091 "aborting.\n");
+1 -1
drivers/net/chelsio/cxgb2.c
··· 1066 1066 goto out_disable_pdev; 1067 1067 } 1068 1068 1069 - } else if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) != 0) { 1069 + } else if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) { 1070 1070 CH_ERR("%s: no usable DMA configuration\n", pci_name(pdev)); 1071 1071 goto out_disable_pdev; 1072 1072 }
+1 -1
drivers/net/cxgb3/cxgb3_main.c
··· 3046 3046 "coherent allocations\n"); 3047 3047 goto out_disable_device; 3048 3048 } 3049 - } else if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) != 0) { 3049 + } else if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) { 3050 3050 dev_err(&pdev->dev, "no usable DMA configuration\n"); 3051 3051 goto out_disable_device; 3052 3052 }
+1 -1
drivers/net/e100.c
··· 2604 2604 goto err_out_disable_pdev; 2605 2605 } 2606 2606 2607 - if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) { 2607 + if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) { 2608 2608 DPRINTK(PROBE, ERR, "No usable DMA configuration, aborting.\n"); 2609 2609 goto err_out_free_res; 2610 2610 }
+2 -2
drivers/net/e1000/e1000_main.c
··· 966 966 !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { 967 967 pci_using_dac = 1; 968 968 } else { 969 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 969 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 970 970 if (err) { 971 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 971 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 972 972 if (err) { 973 973 E1000_ERR("No usable DMA configuration, " 974 974 "aborting\n");
+4 -4
drivers/net/e1000e/netdev.c
··· 2203 2203 /* Setup the HW Tx Head and Tail descriptor pointers */ 2204 2204 tdba = tx_ring->dma; 2205 2205 tdlen = tx_ring->count * sizeof(struct e1000_tx_desc); 2206 - ew32(TDBAL, (tdba & DMA_32BIT_MASK)); 2206 + ew32(TDBAL, (tdba & DMA_BIT_MASK(32))); 2207 2207 ew32(TDBAH, (tdba >> 32)); 2208 2208 ew32(TDLEN, tdlen); 2209 2209 ew32(TDH, 0); ··· 2459 2459 * the Base and Length of the Rx Descriptor Ring 2460 2460 */ 2461 2461 rdba = rx_ring->dma; 2462 - ew32(RDBAL, (rdba & DMA_32BIT_MASK)); 2462 + ew32(RDBAL, (rdba & DMA_BIT_MASK(32))); 2463 2463 ew32(RDBAH, (rdba >> 32)); 2464 2464 ew32(RDLEN, rdlen); 2465 2465 ew32(RDH, 0); ··· 4769 4769 if (!err) 4770 4770 pci_using_dac = 1; 4771 4771 } else { 4772 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 4772 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 4773 4773 if (err) { 4774 4774 err = pci_set_consistent_dma_mask(pdev, 4775 - DMA_32BIT_MASK); 4775 + DMA_BIT_MASK(32)); 4776 4776 if (err) { 4777 4777 dev_err(&pdev->dev, "No usable DMA " 4778 4778 "configuration, aborting\n");
+2 -2
drivers/net/enic/enic_main.c
··· 1687 1687 1688 1688 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(40)); 1689 1689 if (err) { 1690 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1690 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1691 1691 if (err) { 1692 1692 printk(KERN_ERR PFX 1693 1693 "No usable DMA configuration, aborting.\n"); 1694 1694 goto err_out_release_regions; 1695 1695 } 1696 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1696 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1697 1697 if (err) { 1698 1698 printk(KERN_ERR PFX 1699 1699 "Unable to obtain 32-bit DMA "
+1 -1
drivers/net/hp100.c
··· 580 580 * Also, we can have EISA Busmaster cards (not tested), 581 581 * so beware !!! - Jean II */ 582 582 if((bus == HP100_BUS_PCI) && 583 - (pci_set_dma_mask(pci_dev, DMA_32BIT_MASK))) { 583 + (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)))) { 584 584 /* Gracefully fallback to shared memory */ 585 585 goto busmasterfail; 586 586 }
+2 -2
drivers/net/igb/igb_main.c
··· 1160 1160 if (!err) 1161 1161 pci_using_dac = 1; 1162 1162 } else { 1163 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1163 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1164 1164 if (err) { 1165 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1165 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1166 1166 if (err) { 1167 1167 dev_err(&pdev->dev, "No usable DMA " 1168 1168 "configuration, aborting\n");
+1 -1
drivers/net/ioc3-eth.c
··· 1236 1236 goto out; 1237 1237 } 1238 1238 } else { 1239 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1239 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1240 1240 if (err) { 1241 1241 printk(KERN_ERR "%s: No usable DMA configuration, " 1242 1242 "aborting.\n", pci_name(pdev));
+1 -1
drivers/net/ipg.c
··· 2242 2242 2243 2243 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(40)); 2244 2244 if (rc < 0) { 2245 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2245 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 2246 2246 if (rc < 0) { 2247 2247 printk(KERN_ERR "%s: DMA config failed.\n", 2248 2248 pci_name(pdev));
+2 -2
drivers/net/ixgb/ixgb_main.c
··· 369 369 !(err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))) { 370 370 pci_using_dac = 1; 371 371 } else { 372 - if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) || 373 - (err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))) { 372 + if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) || 373 + (err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))) { 374 374 printk(KERN_ERR 375 375 "ixgb: No usable DMA configuration, aborting\n"); 376 376 goto err_dma_mask;
+4 -4
drivers/net/ixgbe/ixgbe_main.c
··· 1643 1643 tdba = ring->dma; 1644 1644 tdlen = ring->count * sizeof(union ixgbe_adv_tx_desc); 1645 1645 IXGBE_WRITE_REG(hw, IXGBE_TDBAL(j), 1646 - (tdba & DMA_32BIT_MASK)); 1646 + (tdba & DMA_BIT_MASK(32))); 1647 1647 IXGBE_WRITE_REG(hw, IXGBE_TDBAH(j), (tdba >> 32)); 1648 1648 IXGBE_WRITE_REG(hw, IXGBE_TDLEN(j), tdlen); 1649 1649 IXGBE_WRITE_REG(hw, IXGBE_TDH(j), 0); ··· 1782 1782 for (i = 0; i < adapter->num_rx_queues; i++) { 1783 1783 rdba = adapter->rx_ring[i].dma; 1784 1784 j = adapter->rx_ring[i].reg_idx; 1785 - IXGBE_WRITE_REG(hw, IXGBE_RDBAL(j), (rdba & DMA_32BIT_MASK)); 1785 + IXGBE_WRITE_REG(hw, IXGBE_RDBAL(j), (rdba & DMA_BIT_MASK(32))); 1786 1786 IXGBE_WRITE_REG(hw, IXGBE_RDBAH(j), (rdba >> 32)); 1787 1787 IXGBE_WRITE_REG(hw, IXGBE_RDLEN(j), rdlen); 1788 1788 IXGBE_WRITE_REG(hw, IXGBE_RDH(j), 0); ··· 4513 4513 !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { 4514 4514 pci_using_dac = 1; 4515 4515 } else { 4516 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 4516 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 4517 4517 if (err) { 4518 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 4518 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 4519 4519 if (err) { 4520 4520 dev_err(&pdev->dev, "No usable DMA " 4521 4521 "configuration, aborting\n");
+2 -2
drivers/net/jme.c
··· 2600 2600 if (!pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK)) 2601 2601 return 1; 2602 2602 2603 - if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) 2604 - if (!pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) 2603 + if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) 2604 + if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) 2605 2605 return 0; 2606 2606 2607 2607 return -1;
+2 -2
drivers/net/mlx4/main.c
··· 1079 1079 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); 1080 1080 if (err) { 1081 1081 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n"); 1082 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1082 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1083 1083 if (err) { 1084 1084 dev_err(&pdev->dev, "Can't set PCI DMA mask, aborting.\n"); 1085 1085 goto err_release_bar2; ··· 1089 1089 if (err) { 1090 1090 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit " 1091 1091 "consistent PCI DMA mask.\n"); 1092 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1092 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1093 1093 if (err) { 1094 1094 dev_err(&pdev->dev, "Can't set consistent PCI DMA mask, " 1095 1095 "aborting.\n");
+2 -2
drivers/net/myri10ge/myri10ge.c
··· 1130 1130 __be32 low; 1131 1131 1132 1132 low = src->addr_low; 1133 - src->addr_low = htonl(DMA_32BIT_MASK); 1133 + src->addr_low = htonl(DMA_BIT_MASK(32)); 1134 1134 myri10ge_pio_copy(dst, src, 4 * sizeof(*src)); 1135 1135 mb(); 1136 1136 myri10ge_pio_copy(dst + 4, src + 4, 4 * sizeof(*src)); ··· 3798 3798 dev_err(&pdev->dev, 3799 3799 "64-bit pci address mask was refused, " 3800 3800 "trying 32-bit\n"); 3801 - status = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 3801 + status = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 3802 3802 } 3803 3803 if (status != 0) { 3804 3804 dev_err(&pdev->dev, "Error %d setting DMA mask\n", status);
+2 -2
drivers/net/niu.c
··· 9889 9889 goto err_out_release_parent; 9890 9890 } 9891 9891 } 9892 - if (err || dma_mask == DMA_32BIT_MASK) { 9893 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 9892 + if (err || dma_mask == DMA_BIT_MASK(32)) { 9893 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 9894 9894 if (err) { 9895 9895 dev_err(&pdev->dev, PFX "No usable DMA configuration, " 9896 9896 "aborting.\n");
+1 -1
drivers/net/ns83820.c
··· 1975 1975 if (sizeof(dma_addr_t) == 8 && 1976 1976 !pci_set_dma_mask(pci_dev, DMA_BIT_MASK(64))) { 1977 1977 using_dac = 1; 1978 - } else if (!pci_set_dma_mask(pci_dev, DMA_32BIT_MASK)) { 1978 + } else if (!pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32))) { 1979 1979 using_dac = 0; 1980 1980 } else { 1981 1981 dev_warn(&pci_dev->dev, "pci_set_dma_mask failed!\n");
+2 -2
drivers/net/qla3xxx.c
··· 3937 3937 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 3938 3938 pci_using_dac = 1; 3939 3939 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 3940 - } else if (!(err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) { 3940 + } else if (!(err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) { 3941 3941 pci_using_dac = 0; 3942 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3942 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 3943 3943 } 3944 3944 3945 3945 if (err) {
+2 -2
drivers/net/qlge/qlge_main.c
··· 3730 3730 set_bit(QL_DMA64, &qdev->flags); 3731 3731 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 3732 3732 } else { 3733 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 3733 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 3734 3734 if (!err) 3735 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3735 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 3736 3736 } 3737 3737 3738 3738 if (err) {
+2 -2
drivers/net/r6040.c
··· 1085 1085 goto err_out; 1086 1086 1087 1087 /* this should always be supported */ 1088 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1088 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1089 1089 if (err) { 1090 1090 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses" 1091 1091 "not supported by the card\n"); 1092 1092 goto err_out; 1093 1093 } 1094 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1094 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1095 1095 if (err) { 1096 1096 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses" 1097 1097 "not supported by the card\n");
+4 -4
drivers/net/r8169.c
··· 1148 1148 return; 1149 1149 1150 1150 RTL_W32(CounterAddrHigh, (u64)paddr >> 32); 1151 - cmd = (u64)paddr & DMA_32BIT_MASK; 1151 + cmd = (u64)paddr & DMA_BIT_MASK(32); 1152 1152 RTL_W32(CounterAddrLow, cmd); 1153 1153 RTL_W32(CounterAddrLow, cmd | CounterDump); 1154 1154 ··· 2050 2050 tp->cp_cmd |= PCIDAC; 2051 2051 dev->features |= NETIF_F_HIGHDMA; 2052 2052 } else { 2053 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2053 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 2054 2054 if (rc < 0) { 2055 2055 if (netif_msg_probe(tp)) { 2056 2056 dev_err(&pdev->dev, ··· 2343 2343 * Switching from MMIO to I/O access fixes the issue as well. 2344 2344 */ 2345 2345 RTL_W32(TxDescStartAddrHigh, ((u64) tp->TxPhyAddr) >> 32); 2346 - RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr) & DMA_32BIT_MASK); 2346 + RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr) & DMA_BIT_MASK(32)); 2347 2347 RTL_W32(RxDescAddrHigh, ((u64) tp->RxPhyAddr) >> 32); 2348 - RTL_W32(RxDescAddrLow, ((u64) tp->RxPhyAddr) & DMA_32BIT_MASK); 2348 + RTL_W32(RxDescAddrLow, ((u64) tp->RxPhyAddr) & DMA_BIT_MASK(32)); 2349 2349 } 2350 2350 2351 2351 static u16 rtl_rw_cpluscmd(void __iomem *ioaddr)
+1 -1
drivers/net/s2io.c
··· 7786 7786 pci_disable_device(pdev); 7787 7787 return -ENOMEM; 7788 7788 } 7789 - } else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 7789 + } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 7790 7790 DBG_PRINT(INIT_DBG, "s2io_init_nic: Using 32bit DMA\n"); 7791 7791 } else { 7792 7792 pci_disable_device(pdev);
+2 -2
drivers/net/sc92031.c
··· 1427 1427 1428 1428 pci_set_master(pdev); 1429 1429 1430 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1430 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1431 1431 if (unlikely(err < 0)) 1432 1432 goto out_set_dma_mask; 1433 1433 1434 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1434 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1435 1435 if (unlikely(err < 0)) 1436 1436 goto out_set_dma_mask; 1437 1437
+1 -1
drivers/net/sis190.c
··· 1467 1467 goto err_pci_disable_2; 1468 1468 } 1469 1469 1470 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1470 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1471 1471 if (rc < 0) { 1472 1472 net_probe(tp, KERN_ERR "%s: DMA configuration failed.\n", 1473 1473 pci_name(pdev));
+1 -1
drivers/net/sis900.c
··· 432 432 ret = pci_enable_device(pci_dev); 433 433 if(ret) return ret; 434 434 435 - i = pci_set_dma_mask(pci_dev, DMA_32BIT_MASK); 435 + i = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); 436 436 if(i){ 437 437 printk(KERN_ERR "sis900.c: architecture does not support " 438 438 "32bit PCI busmaster DMA\n");
+2 -2
drivers/net/skge.c
··· 3915 3915 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 3916 3916 using_dac = 1; 3917 3917 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 3918 - } else if (!(err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) { 3918 + } else if (!(err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) { 3919 3919 using_dac = 0; 3920 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3920 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 3921 3921 } 3922 3922 3923 3923 if (err) {
+1 -1
drivers/net/sky2.c
··· 4383 4383 goto err_out_free_regions; 4384 4384 } 4385 4385 } else { 4386 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 4386 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 4387 4387 if (err) { 4388 4388 dev_err(&pdev->dev, "no usable DMA configuration\n"); 4389 4389 goto err_out_free_regions;
+1 -1
drivers/net/smsc9420.c
··· 1598 1598 goto out_free_netdev_2; 1599 1599 } 1600 1600 1601 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 1601 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 1602 1602 printk(KERN_ERR "No usable DMA configuration, aborting.\n"); 1603 1603 goto out_free_regions_3; 1604 1604 }
+1 -1
drivers/net/sungem.c
··· 3045 3045 !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 3046 3046 pci_using_dac = 1; 3047 3047 } else { 3048 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 3048 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 3049 3049 if (err) { 3050 3050 printk(KERN_ERR PFX "No usable DMA configuration, " 3051 3051 "aborting.\n");
+2 -2
drivers/net/tehuti.c
··· 1945 1945 !(err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))) { 1946 1946 pci_using_dac = 1; 1947 1947 } else { 1948 - if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) || 1949 - (err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))) { 1948 + if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) || 1949 + (err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))) { 1950 1950 printk(KERN_ERR "tehuti: No usable DMA configuration" 1951 1951 ", aborting\n"); 1952 1952 goto err_dma;
-4
drivers/net/tehuti.h
··· 99 99 #define READ_REG(pp, reg) readl(pp->pBdxRegs + reg) 100 100 #define WRITE_REG(pp, reg, val) writel(val, pp->pBdxRegs + reg) 101 101 102 - #ifndef DMA_32BIT_MASK 103 - # define DMA_32BIT_MASK 0x00000000ffffffffULL 104 - #endif 105 - 106 102 #ifndef NET_IP_ALIGN 107 103 # define NET_IP_ALIGN 2 108 104 #endif
+5 -5
drivers/net/tg3.c
··· 13228 13228 * do DMA address check in tg3_start_xmit(). 13229 13229 */ 13230 13230 if (tp->tg3_flags2 & TG3_FLG2_IS_5788) 13231 - persist_dma_mask = dma_mask = DMA_32BIT_MASK; 13231 + persist_dma_mask = dma_mask = DMA_BIT_MASK(32); 13232 13232 else if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) { 13233 13233 persist_dma_mask = dma_mask = DMA_BIT_MASK(40); 13234 13234 #ifdef CONFIG_HIGHMEM ··· 13238 13238 persist_dma_mask = dma_mask = DMA_BIT_MASK(64); 13239 13239 13240 13240 /* Configure DMA attributes. */ 13241 - if (dma_mask > DMA_32BIT_MASK) { 13241 + if (dma_mask > DMA_BIT_MASK(32)) { 13242 13242 err = pci_set_dma_mask(pdev, dma_mask); 13243 13243 if (!err) { 13244 13244 dev->features |= NETIF_F_HIGHDMA; ··· 13251 13251 } 13252 13252 } 13253 13253 } 13254 - if (err || dma_mask == DMA_32BIT_MASK) { 13255 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 13254 + if (err || dma_mask == DMA_BIT_MASK(32)) { 13255 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 13256 13256 if (err) { 13257 13257 printk(KERN_ERR PFX "No usable DMA configuration, " 13258 13258 "aborting.\n"); ··· 13393 13393 (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) != 0); 13394 13394 printk(KERN_INFO "%s: dma_rwctrl[%08x] dma_mask[%d-bit]\n", 13395 13395 dev->name, tp->dma_rwctrl, 13396 - (pdev->dma_mask == DMA_32BIT_MASK) ? 32 : 13396 + (pdev->dma_mask == DMA_BIT_MASK(32)) ? 32 : 13397 13397 (((u64) pdev->dma_mask == DMA_BIT_MASK(40)) ? 40 : 64)); 13398 13398 13399 13399 return 0;
+1 -1
drivers/net/tlan.c
··· 570 570 571 571 priv->adapter = &board_info[ent->driver_data]; 572 572 573 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 573 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 574 574 if (rc) { 575 575 printk(KERN_ERR "TLAN: No suitable PCI mapping available.\n"); 576 576 goto err_out_free_dev;
+1 -1
drivers/net/tokenring/lanstreamer.c
··· 267 267 #endif 268 268 #endif 269 269 270 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 270 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 271 271 if (rc) { 272 272 printk(KERN_ERR "%s: No suitable PCI mapping available.\n", 273 273 dev->name);
+1 -1
drivers/net/tulip/dmfe.c
··· 383 383 return -ENOMEM; 384 384 SET_NETDEV_DEV(dev, &pdev->dev); 385 385 386 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 386 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 387 387 printk(KERN_WARNING DRV_NAME 388 388 ": 32-bit PCI DMA not available.\n"); 389 389 err = -ENODEV;
+1 -1
drivers/net/tulip/uli526x.c
··· 282 282 return -ENOMEM; 283 283 SET_NETDEV_DEV(dev, &pdev->dev); 284 284 285 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 285 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 286 286 printk(KERN_WARNING DRV_NAME ": 32-bit PCI DMA not available.\n"); 287 287 err = -ENODEV; 288 288 goto err_out_free;
+1 -1
drivers/net/tulip/winbond-840.c
··· 375 375 376 376 irq = pdev->irq; 377 377 378 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 378 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 379 379 printk(KERN_WARNING "Winbond-840: Device %s disabled due to DMA limitations.\n", 380 380 pci_name(pdev)); 381 381 return -EIO;
+1 -1
drivers/net/typhoon.c
··· 2406 2406 goto error_out_disable; 2407 2407 } 2408 2408 2409 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2409 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 2410 2410 if(err < 0) { 2411 2411 printk(ERR_PFX "%s: No usable DMA configuration\n", 2412 2412 pci_name(pdev));
+1 -1
drivers/net/via-rhine.c
··· 686 686 goto err_out; 687 687 688 688 /* this should always be supported */ 689 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 689 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 690 690 if (rc) { 691 691 printk(KERN_ERR "32-bit PCI DMA addresses not supported by " 692 692 "the card!?\n");
+2 -2
drivers/net/wan/wanxl.c
··· 633 633 /* FIXME when PCI/DMA subsystems are fixed. 634 634 We set both dma_mask and consistent_dma_mask back to 32 bits 635 635 to indicate the card can do 32-bit DMA addressing */ 636 - if (pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK) || 637 - pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 636 + if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)) || 637 + pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 638 638 printk(KERN_ERR "wanXL: No usable DMA configuration\n"); 639 639 wanxl_pci_remove_one(pdev); 640 640 return -EIO;
+2 -2
drivers/net/wireless/adm8211.c
··· 1804 1804 return err; /* someone else grabbed it? don't disable it */ 1805 1805 } 1806 1806 1807 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) || 1808 - pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 1807 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) || 1808 + pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { 1809 1809 printk(KERN_ERR "%s (adm8211): No suitable DMA available\n", 1810 1810 pci_name(pdev)); 1811 1811 goto err_free_reg;
+1 -1
drivers/net/wireless/ath5k/base.c
··· 445 445 } 446 446 447 447 /* XXX 32-bit addressing only */ 448 - ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 448 + ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 449 449 if (ret) { 450 450 dev_err(&pdev->dev, "32-bit DMA not available\n"); 451 451 goto err_dis;
+4 -4
drivers/net/wireless/b43/dma.c
··· 777 777 b43_write32(dev, mmio_base + B43_DMA32_TXCTL, B43_DMA32_TXADDREXT_MASK); 778 778 tmp = b43_read32(dev, mmio_base + B43_DMA32_TXCTL); 779 779 if (tmp & B43_DMA32_TXADDREXT_MASK) 780 - return DMA_32BIT_MASK; 780 + return DMA_BIT_MASK(32); 781 781 782 782 return DMA_30BIT_MASK; 783 783 } ··· 786 786 { 787 787 if (dmamask == DMA_30BIT_MASK) 788 788 return B43_DMA_30BIT; 789 - if (dmamask == DMA_32BIT_MASK) 789 + if (dmamask == DMA_BIT_MASK(32)) 790 790 return B43_DMA_32BIT; 791 791 if (dmamask == DMA_BIT_MASK(64)) 792 792 return B43_DMA_64BIT; ··· 1000 1000 if (!err) 1001 1001 break; 1002 1002 if (mask == DMA_BIT_MASK(64)) { 1003 - mask = DMA_32BIT_MASK; 1003 + mask = DMA_BIT_MASK(32); 1004 1004 fallback = 1; 1005 1005 continue; 1006 1006 } 1007 - if (mask == DMA_32BIT_MASK) { 1007 + if (mask == DMA_BIT_MASK(32)) { 1008 1008 mask = DMA_30BIT_MASK; 1009 1009 fallback = 1; 1010 1010 continue;
+4 -4
drivers/net/wireless/b43legacy/dma.c
··· 854 854 tmp = b43legacy_read32(dev, mmio_base + 855 855 B43legacy_DMA32_TXCTL); 856 856 if (tmp & B43legacy_DMA32_TXADDREXT_MASK) 857 - return DMA_32BIT_MASK; 857 + return DMA_BIT_MASK(32); 858 858 859 859 return DMA_30BIT_MASK; 860 860 } ··· 863 863 { 864 864 if (dmamask == DMA_30BIT_MASK) 865 865 return B43legacy_DMA_30BIT; 866 - if (dmamask == DMA_32BIT_MASK) 866 + if (dmamask == DMA_BIT_MASK(32)) 867 867 return B43legacy_DMA_32BIT; 868 868 if (dmamask == DMA_BIT_MASK(64)) 869 869 return B43legacy_DMA_64BIT; ··· 1043 1043 if (!err) 1044 1044 break; 1045 1045 if (mask == DMA_BIT_MASK(64)) { 1046 - mask = DMA_32BIT_MASK; 1046 + mask = DMA_BIT_MASK(32); 1047 1047 fallback = 1; 1048 1048 continue; 1049 1049 } 1050 - if (mask == DMA_32BIT_MASK) { 1050 + if (mask == DMA_BIT_MASK(32)) { 1051 1051 mask = DMA_30BIT_MASK; 1052 1052 fallback = 1; 1053 1053 continue;
+1 -1
drivers/net/wireless/ipw2x00/ipw2100.c
··· 6207 6207 pci_set_master(pci_dev); 6208 6208 pci_set_drvdata(pci_dev, priv); 6209 6209 6210 - err = pci_set_dma_mask(pci_dev, DMA_32BIT_MASK); 6210 + err = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); 6211 6211 if (err) { 6212 6212 printk(KERN_WARNING DRV_NAME 6213 6213 "Error calling pci_set_dma_mask.\n");
+2 -2
drivers/net/wireless/ipw2x00/ipw2200.c
··· 11631 11631 11632 11632 pci_set_master(pdev); 11633 11633 11634 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 11634 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 11635 11635 if (!err) 11636 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 11636 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 11637 11637 if (err) { 11638 11638 printk(KERN_WARNING DRV_NAME ": No suitable DMA available.\n"); 11639 11639 goto out_pci_disable_device;
+2 -2
drivers/net/wireless/iwlwifi/iwl3945-base.c
··· 4998 4998 4999 4999 pci_set_master(pdev); 5000 5000 5001 - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 5001 + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 5002 5002 if (!err) 5003 - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 5003 + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 5004 5004 if (err) { 5005 5005 IWL_WARN(priv, "No suitable DMA available.\n"); 5006 5006 goto out_pci_disable_device;
+1 -1
drivers/net/wireless/prism54/islpci_hotplug.c
··· 120 120 } 121 121 122 122 /* enable PCI DMA */ 123 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 123 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 124 124 printk(KERN_ERR "%s: 32-bit PCI DMA not supported", DRV_NAME); 125 125 goto do_pci_disable_device; 126 126 }
+1 -1
drivers/net/wireless/rt2x00/rt2x00pci.c
··· 288 288 if (pci_set_mwi(pci_dev)) 289 289 ERROR_PROBE("MWI not available.\n"); 290 290 291 - if (dma_set_mask(&pci_dev->dev, DMA_32BIT_MASK)) { 291 + if (dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32))) { 292 292 ERROR_PROBE("PCI DMA not supported.\n"); 293 293 retval = -EIO; 294 294 goto exit_disable_device;
+4 -4
drivers/pci/intel-iommu.c
··· 56 56 #define DOMAIN_MAX_ADDR(gaw) ((((u64)1) << gaw) - 1) 57 57 58 58 #define IOVA_PFN(addr) ((addr) >> PAGE_SHIFT) 59 - #define DMA_32BIT_PFN IOVA_PFN(DMA_32BIT_MASK) 59 + #define DMA_32BIT_PFN IOVA_PFN(DMA_BIT_MASK(32)) 60 60 #define DMA_64BIT_PFN IOVA_PFN(DMA_BIT_MASK(64)) 61 61 62 62 /* global iommu list, set NULL for ignored DMAR units */ ··· 2080 2080 struct pci_dev *pdev = to_pci_dev(dev); 2081 2081 struct iova *iova = NULL; 2082 2082 2083 - if (dma_mask <= DMA_32BIT_MASK || dmar_forcedac) 2083 + if (dma_mask <= DMA_BIT_MASK(32) || dmar_forcedac) 2084 2084 iova = iommu_alloc_iova(domain, size, dma_mask); 2085 2085 else { 2086 2086 /* 2087 2087 * First try to allocate an io virtual address in 2088 - * DMA_32BIT_MASK and if that fails then try allocating 2088 + * DMA_BIT_MASK(32) and if that fails then try allocating 2089 2089 * from higher range 2090 2090 */ 2091 - iova = iommu_alloc_iova(domain, size, DMA_32BIT_MASK); 2091 + iova = iommu_alloc_iova(domain, size, DMA_BIT_MASK(32)); 2092 2092 if (!iova) 2093 2093 iova = iommu_alloc_iova(domain, size, dma_mask); 2094 2094 }
+2 -2
drivers/rapidio/rio-scan.c
··· 381 381 rdev->dev.release = rio_release_dev; 382 382 rio_dev_get(rdev); 383 383 384 - rdev->dma_mask = DMA_32BIT_MASK; 384 + rdev->dma_mask = DMA_BIT_MASK(32); 385 385 rdev->dev.dma_mask = &rdev->dma_mask; 386 - rdev->dev.coherent_dma_mask = DMA_32BIT_MASK; 386 + rdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); 387 387 388 388 if ((rdev->pef & RIO_PEF_INB_DOORBELL) && 389 389 (rdev->dst_ops & RIO_DST_OPS_DOORBELL))
+2 -2
drivers/scsi/3w-9xxx.c
··· 2018 2018 2019 2019 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) 2020 2020 || pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) 2021 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) 2022 - || pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 2021 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) 2022 + || pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { 2023 2023 TW_PRINTK(host, TW_DRIVER, 0x23, "Failed to set dma mask"); 2024 2024 retval = -ENODEV; 2025 2025 goto out_disable_device;
+1 -1
drivers/scsi/3w-xxxx.h
··· 234 234 #define TW_IOCTL_TIMEOUT 25 /* 25 seconds */ 235 235 #define TW_IOCTL_CHRDEV_TIMEOUT 60 /* 60 seconds */ 236 236 #define TW_IOCTL_CHRDEV_FREE -1 237 - #define TW_DMA_MASK DMA_32BIT_MASK 237 + #define TW_DMA_MASK DMA_BIT_MASK(32) 238 238 #define TW_MAX_CDB_LEN 16 239 239 240 240 /* Bitmask macros to eliminate bitfields */
+3 -3
drivers/scsi/BusLogic.c
··· 667 667 if (pci_enable_device(PCI_Device)) 668 668 continue; 669 669 670 - if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK )) 670 + if (pci_set_dma_mask(PCI_Device, DMA_BIT_MASK(32) )) 671 671 continue; 672 672 673 673 Bus = PCI_Device->bus->number; ··· 834 834 if (pci_enable_device(PCI_Device)) 835 835 continue; 836 836 837 - if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK)) 837 + if (pci_set_dma_mask(PCI_Device, DMA_BIT_MASK(32))) 838 838 continue; 839 839 840 840 Bus = PCI_Device->bus->number; ··· 888 888 if (pci_enable_device(PCI_Device)) 889 889 continue; 890 890 891 - if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK)) 891 + if (pci_set_dma_mask(PCI_Device, DMA_BIT_MASK(32))) 892 892 continue; 893 893 894 894 Bus = PCI_Device->bus->number;
+1 -1
drivers/scsi/a100u2w.c
··· 1094 1094 1095 1095 if (pci_enable_device(pdev)) 1096 1096 goto out; 1097 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 1097 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 1098 1098 printk(KERN_WARNING "Unable to set 32bit DMA " 1099 1099 "on inia100 adapter, ignoring.\n"); 1100 1100 goto out_disable_device;
+2 -2
drivers/scsi/aacraid/aachba.c
··· 1407 1407 if (!dev->in_reset) 1408 1408 printk(KERN_INFO"%s%d: 64 Bit DAC enabled\n", 1409 1409 dev->name, dev->id); 1410 - } else if (!pci_set_dma_mask(dev->pdev, DMA_32BIT_MASK) && 1411 - !pci_set_consistent_dma_mask(dev->pdev, DMA_32BIT_MASK)) { 1410 + } else if (!pci_set_dma_mask(dev->pdev, DMA_BIT_MASK(32)) && 1411 + !pci_set_consistent_dma_mask(dev->pdev, DMA_BIT_MASK(32))) { 1412 1412 printk(KERN_INFO"%s%d: DMA mask set failed, 64 Bit DAC disabled\n", 1413 1413 dev->name, dev->id); 1414 1414 dev->dac_support = 0;
+3 -3
drivers/scsi/aacraid/commsup.c
··· 1210 1210 ((retval = pci_set_consistent_dma_mask(aac->pdev, DMA_31BIT_MASK)))) 1211 1211 goto out; 1212 1212 } else { 1213 - if (((retval = pci_set_dma_mask(aac->pdev, DMA_32BIT_MASK))) || 1214 - ((retval = pci_set_consistent_dma_mask(aac->pdev, DMA_32BIT_MASK)))) 1213 + if (((retval = pci_set_dma_mask(aac->pdev, DMA_BIT_MASK(32)))) || 1214 + ((retval = pci_set_consistent_dma_mask(aac->pdev, DMA_BIT_MASK(32))))) 1215 1215 goto out; 1216 1216 } 1217 1217 if ((retval = (*(aac_get_driver_ident(index)->init))(aac))) 1218 1218 goto out; 1219 1219 if (quirks & AAC_QUIRK_31BIT) 1220 - if ((retval = pci_set_dma_mask(aac->pdev, DMA_32BIT_MASK))) 1220 + if ((retval = pci_set_dma_mask(aac->pdev, DMA_BIT_MASK(32)))) 1221 1221 goto out; 1222 1222 if (jafo) { 1223 1223 aac->thread = kthread_run(aac_command_thread, aac, aac->name);
+3 -3
drivers/scsi/aacraid/linit.c
··· 1095 1095 goto out; 1096 1096 error = -ENODEV; 1097 1097 1098 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) || 1099 - pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) 1098 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) || 1099 + pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) 1100 1100 goto out_disable_pdev; 1101 1101 /* 1102 1102 * If the quirk31 bit is set, the adapter needs adapter ··· 1154 1154 * address space. 1155 1155 */ 1156 1156 if (aac_drivers[index].quirks & AAC_QUIRK_31BIT) 1157 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) 1157 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) 1158 1158 goto out_deinit; 1159 1159 1160 1160 aac->maximum_num_channels = aac_drivers[index].channels;
+3 -3
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
··· 197 197 if (required_mask > DMA_BIT_MASK(39) && 198 198 dma_set_mask(dev, DMA_BIT_MASK(64)) == 0) 199 199 ahd->flags |= AHD_64BIT_ADDRESSING; 200 - else if (required_mask > DMA_32BIT_MASK && 200 + else if (required_mask > DMA_BIT_MASK(32) && 201 201 dma_set_mask(dev, DMA_BIT_MASK(39)) == 0) 202 202 ahd->flags |= AHD_39BIT_ADDRESSING; 203 203 else 204 - dma_set_mask(dev, DMA_32BIT_MASK); 204 + dma_set_mask(dev, DMA_BIT_MASK(32)); 205 205 } else { 206 - dma_set_mask(dev, DMA_32BIT_MASK); 206 + dma_set_mask(dev, DMA_BIT_MASK(32)); 207 207 } 208 208 ahd->dev_softc = pci; 209 209 error = ahd_pci_config(ahd, entry);
+2 -2
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
··· 241 241 if (sizeof(dma_addr_t) > 4 242 242 && ahc->features & AHC_LARGE_SCBS 243 243 && dma_set_mask(dev, mask_39bit) == 0 244 - && dma_get_required_mask(dev) > DMA_32BIT_MASK) { 244 + && dma_get_required_mask(dev) > DMA_BIT_MASK(32)) { 245 245 ahc->flags |= AHC_39BIT_ADDRESSING; 246 246 } else { 247 - if (dma_set_mask(dev, DMA_32BIT_MASK)) { 247 + if (dma_set_mask(dev, DMA_BIT_MASK(32))) { 248 248 ahc_free(ahc); 249 249 printk(KERN_WARNING "aic7xxx: No suitable DMA available.\n"); 250 250 return (-ENODEV);
+2 -2
drivers/scsi/aic94xx/aic94xx_init.c
··· 793 793 if (!pci_set_dma_mask(dev, DMA_BIT_MASK(64)) 794 794 && !pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64))) 795 795 ; 796 - else if (!pci_set_dma_mask(dev, DMA_32BIT_MASK) 797 - && !pci_set_consistent_dma_mask(dev, DMA_32BIT_MASK)) 796 + else if (!pci_set_dma_mask(dev, DMA_BIT_MASK(32)) 797 + && !pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(32))) 798 798 ; 799 799 else { 800 800 asd_printk("no suitable DMA mask for %s\n", pci_name(dev));
+1 -1
drivers/scsi/arcmsr/arcmsr_hba.c
··· 395 395 396 396 error = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); 397 397 if (error) { 398 - error = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 398 + error = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 399 399 if (error) { 400 400 printk(KERN_WARNING 401 401 "scsi%d: No suitable DMA mask available\n",
+1 -1
drivers/scsi/atp870u.c
··· 2568 2568 if (pci_enable_device(pdev)) 2569 2569 goto err_eio; 2570 2570 2571 - if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 2571 + if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 2572 2572 printk(KERN_INFO "atp870u: use 32bit DMA mask.\n"); 2573 2573 } else { 2574 2574 printk(KERN_ERR "atp870u: DMA mask required but not available.\n");
+3 -3
drivers/scsi/dpt_i2o.c
··· 1015 1015 */ 1016 1016 if (sizeof(dma_addr_t) > 4 && 1017 1017 pci_set_dma_mask(pDev, DMA_BIT_MASK(64)) == 0) { 1018 - if (dma_get_required_mask(&pDev->dev) > DMA_32BIT_MASK) 1018 + if (dma_get_required_mask(&pDev->dev) > DMA_BIT_MASK(32)) 1019 1019 dma64 = 1; 1020 1020 } 1021 - if (!dma64 && pci_set_dma_mask(pDev, DMA_32BIT_MASK) != 0) 1021 + if (!dma64 && pci_set_dma_mask(pDev, DMA_BIT_MASK(32)) != 0) 1022 1022 return -EINVAL; 1023 1023 1024 1024 /* adapter only supports message blocks below 4GB */ 1025 - pci_set_consistent_dma_mask(pDev, DMA_32BIT_MASK); 1025 + pci_set_consistent_dma_mask(pDev, DMA_BIT_MASK(32)); 1026 1026 1027 1027 base_addr0_phys = pci_resource_start(pDev,0); 1028 1028 hba_map0_area_size = pci_resource_len(pDev,0);
+1 -1
drivers/scsi/eata.c
··· 1426 1426 1427 1427 if (ha->pdev) { 1428 1428 pci_set_master(ha->pdev); 1429 - if (pci_set_dma_mask(ha->pdev, DMA_32BIT_MASK)) 1429 + if (pci_set_dma_mask(ha->pdev, DMA_BIT_MASK(32))) 1430 1430 printk("%s: warning, pci_set_dma_mask failed.\n", 1431 1431 ha->board_name); 1432 1432 }
+2 -2
drivers/scsi/gdth.c
··· 5023 5023 /* 64-bit DMA only supported from FW >= x.43 */ 5024 5024 if (!(ha->cache_feat & ha->raw_feat & ha->screen_feat & GDT_64BIT) || 5025 5025 !ha->dma64_support) { 5026 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 5026 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 5027 5027 printk(KERN_WARNING "GDT-PCI %d: " 5028 5028 "Unable to set 32-bit DMA\n", ha->hanum); 5029 5029 goto out_free_coal_stat; ··· 5032 5032 shp->max_cmd_len = 16; 5033 5033 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 5034 5034 printk("GDT-PCI %d: 64-bit DMA enabled\n", ha->hanum); 5035 - } else if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 5035 + } else if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 5036 5036 printk(KERN_WARNING "GDT-PCI %d: " 5037 5037 "Unable to set 64/32-bit DMA\n", ha->hanum); 5038 5038 goto out_free_coal_stat;
+1 -1
drivers/scsi/hptiop.c
··· 959 959 960 960 /* Enable 64bit DMA if possible */ 961 961 if (pci_set_dma_mask(pcidev, DMA_BIT_MASK(64))) { 962 - if (pci_set_dma_mask(pcidev, DMA_32BIT_MASK)) { 962 + if (pci_set_dma_mask(pcidev, DMA_BIT_MASK(32))) { 963 963 printk(KERN_ERR "hptiop: fail to set dma_mask\n"); 964 964 goto disable_pci_device; 965 965 }
+1 -1
drivers/scsi/initio.c
··· 2856 2856 reg = 0; 2857 2857 bios_seg = (bios_seg << 8) + ((u16) ((reg & 0xFF00) >> 8)); 2858 2858 2859 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 2859 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 2860 2860 printk(KERN_WARNING "i91u: Could not set 32 bit DMA mask\n"); 2861 2861 error = -ENODEV; 2862 2862 goto out_disable_device;
+1 -1
drivers/scsi/ipr.c
··· 7498 7498 7499 7499 pci_set_master(pdev); 7500 7500 7501 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 7501 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 7502 7502 if (rc < 0) { 7503 7503 dev_err(&pdev->dev, "Failed to set PCI DMA mask\n"); 7504 7504 goto cleanup_nomem;
+1 -1
drivers/scsi/ips.c
··· 7051 7051 !pci_set_dma_mask(ha->pcidev, DMA_BIT_MASK(64))) { 7052 7052 (ha)->flags |= IPS_HA_ENH_SG; 7053 7053 } else { 7054 - if (pci_set_dma_mask(ha->pcidev, DMA_32BIT_MASK) != 0) { 7054 + if (pci_set_dma_mask(ha->pcidev, DMA_BIT_MASK(32)) != 0) { 7055 7055 printk(KERN_WARNING "Unable to set DMA Mask\n"); 7056 7056 return ips_abort_init(ha, index); 7057 7057 }
+1 -1
drivers/scsi/lasi700.c
··· 108 108 } 109 109 110 110 hostdata->dev = &dev->dev; 111 - dma_set_mask(&dev->dev, DMA_32BIT_MASK); 111 + dma_set_mask(&dev->dev, DMA_BIT_MASK(32)); 112 112 hostdata->base = ioremap_nocache(base, 0x100); 113 113 hostdata->differential = 0; 114 114
+1 -1
drivers/scsi/lpfc/lpfc_init.c
··· 2661 2661 pci_try_set_mwi(pdev); 2662 2662 2663 2663 if (pci_set_dma_mask(phba->pcidev, DMA_BIT_MASK(64)) != 0) 2664 - if (pci_set_dma_mask(phba->pcidev, DMA_32BIT_MASK) != 0) 2664 + if (pci_set_dma_mask(phba->pcidev, DMA_BIT_MASK(32)) != 0) 2665 2665 goto out_idr_remove; 2666 2666 2667 2667 /*
+2 -2
drivers/scsi/megaraid.c
··· 2021 2021 2022 2022 memcpy(*pdev, adapter->dev, sizeof(struct pci_dev)); 2023 2023 2024 - if( pci_set_dma_mask(*pdev, DMA_32BIT_MASK) != 0 ) { 2024 + if( pci_set_dma_mask(*pdev, DMA_BIT_MASK(32)) != 0 ) { 2025 2025 kfree(*pdev); 2026 2026 return -1; 2027 2027 } ··· 4796 4796 pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); 4797 4797 adapter->has_64bit_addr = 1; 4798 4798 } else { 4799 - pci_set_dma_mask(pdev, DMA_32BIT_MASK); 4799 + pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 4800 4800 adapter->has_64bit_addr = 0; 4801 4801 } 4802 4802
+2 -2
drivers/scsi/megaraid/megaraid_mbox.c
··· 473 473 474 474 // Setup the default DMA mask. This would be changed later on 475 475 // depending on hardware capabilities 476 - if (pci_set_dma_mask(adapter->pdev, DMA_32BIT_MASK) != 0) { 476 + if (pci_set_dma_mask(adapter->pdev, DMA_BIT_MASK(32)) != 0) { 477 477 478 478 con_log(CL_ANN, (KERN_WARNING 479 479 "megaraid: pci_set_dma_mask failed:%d\n", __LINE__)); ··· 904 904 con_log(CL_ANN, (KERN_WARNING 905 905 "megaraid: DMA mask for 64-bit failed\n")); 906 906 907 - if (pci_set_dma_mask (adapter->pdev, DMA_32BIT_MASK)) { 907 + if (pci_set_dma_mask (adapter->pdev, DMA_BIT_MASK(32))) { 908 908 con_log(CL_ANN, (KERN_WARNING 909 909 "megaraid: 32-bit DMA mask failed\n")); 910 910 goto out_free_sysfs_res;
+2 -2
drivers/scsi/megaraid/megaraid_sas.c
··· 2499 2499 if (IS_DMA64) { 2500 2500 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) != 0) { 2501 2501 2502 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) 2502 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) 2503 2503 goto fail_set_dma_mask; 2504 2504 } 2505 2505 } else { 2506 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) 2506 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) 2507 2507 goto fail_set_dma_mask; 2508 2508 } 2509 2509 return 0;
+3 -3
drivers/scsi/mvsas.c
··· 878 878 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 879 879 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 880 880 if (rc) { 881 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 881 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 882 882 if (rc) { 883 883 dev_printk(KERN_ERR, &pdev->dev, 884 884 "64-bit DMA enable failed\n"); ··· 886 886 } 887 887 } 888 888 } else { 889 - rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 889 + rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 890 890 if (rc) { 891 891 dev_printk(KERN_ERR, &pdev->dev, 892 892 "32-bit DMA enable failed\n"); 893 893 return rc; 894 894 } 895 - rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 895 + rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 896 896 if (rc) { 897 897 dev_printk(KERN_ERR, &pdev->dev, 898 898 "32-bit consistent DMA enable failed\n");
+1 -1
drivers/scsi/nsp32.c
··· 2672 2672 /* 2673 2673 * setup DMA 2674 2674 */ 2675 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) { 2675 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) { 2676 2676 nsp32_msg (KERN_ERR, "failed to set PCI DMA mask"); 2677 2677 goto scsi_unregister; 2678 2678 }
+2 -2
drivers/scsi/qla1280.c
··· 4276 4276 4277 4277 #ifdef QLA_64BIT_PTR 4278 4278 if (pci_set_dma_mask(ha->pdev, DMA_BIT_MASK(64))) { 4279 - if (pci_set_dma_mask(ha->pdev, DMA_32BIT_MASK)) { 4279 + if (pci_set_dma_mask(ha->pdev, DMA_BIT_MASK(32))) { 4280 4280 printk(KERN_WARNING "scsi(%li): Unable to set a " 4281 4281 "suitable DMA mask - aborting\n", ha->host_no); 4282 4282 error = -ENODEV; ··· 4286 4286 dprintk(2, "scsi(%li): 64 Bit PCI Addressing Enabled\n", 4287 4287 ha->host_no); 4288 4288 #else 4289 - if (pci_set_dma_mask(ha->pdev, DMA_32BIT_MASK)) { 4289 + if (pci_set_dma_mask(ha->pdev, DMA_BIT_MASK(32))) { 4290 4290 printk(KERN_WARNING "scsi(%li): Unable to set a " 4291 4291 "suitable DMA mask - aborting\n", ha->host_no); 4292 4292 error = -ENODEV;
+2 -2
drivers/scsi/qla2xxx/qla_os.c
··· 1188 1188 } 1189 1189 } 1190 1190 1191 - dma_set_mask(&ha->pdev->dev, DMA_32BIT_MASK); 1192 - pci_set_consistent_dma_mask(ha->pdev, DMA_32BIT_MASK); 1191 + dma_set_mask(&ha->pdev->dev, DMA_BIT_MASK(32)); 1192 + pci_set_consistent_dma_mask(ha->pdev, DMA_BIT_MASK(32)); 1193 1193 } 1194 1194 1195 1195 static void
+2 -2
drivers/scsi/qla4xxx/ql4_os.c
··· 1375 1375 "Failed to set 64 bit PCI consistent mask; " 1376 1376 "using 32 bit.\n"); 1377 1377 retval = pci_set_consistent_dma_mask(ha->pdev, 1378 - DMA_32BIT_MASK); 1378 + DMA_BIT_MASK(32)); 1379 1379 } 1380 1380 } else 1381 - retval = pci_set_dma_mask(ha->pdev, DMA_32BIT_MASK); 1381 + retval = pci_set_dma_mask(ha->pdev, DMA_BIT_MASK(32)); 1382 1382 } 1383 1383 1384 1384 static int qla4xxx_slave_alloc(struct scsi_device *sdev)
+1 -1
drivers/scsi/sni_53c710.c
··· 83 83 } 84 84 85 85 hostdata->dev = &dev->dev; 86 - dma_set_mask(&dev->dev, DMA_32BIT_MASK); 86 + dma_set_mask(&dev->dev, DMA_BIT_MASK(32)); 87 87 hostdata->base = ioremap_nocache(base, 0x100); 88 88 hostdata->differential = 0; 89 89
+2 -2
drivers/scsi/stex.c
··· 1398 1398 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) 1399 1399 && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) 1400 1400 return 0; 1401 - ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1401 + ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); 1402 1402 if (!ret) 1403 - ret = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1403 + ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); 1404 1404 return ret; 1405 1405 } 1406 1406
+1 -1
drivers/scsi/sym53c8xx_2/sym_glue.c
··· 1349 1349 if ((SYM_CONF_DMA_ADDRESSING_MODE > 0) && (np->features & FE_DAC) && 1350 1350 !pci_set_dma_mask(pdev, DMA_DAC_MASK)) { 1351 1351 set_dac(np); 1352 - } else if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 1352 + } else if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 1353 1353 printf_warning("%s: No suitable DMA available\n", sym_name(np)); 1354 1354 goto attach_failed; 1355 1355 }
+1 -1
drivers/scsi/sym53c8xx_2/sym_hipd.h
··· 1080 1080 */ 1081 1081 1082 1082 #if SYM_CONF_DMA_ADDRESSING_MODE == 0 1083 - #define DMA_DAC_MASK DMA_32BIT_MASK 1083 + #define DMA_DAC_MASK DMA_BIT_MASK(32) 1084 1084 #define sym_build_sge(np, data, badd, len) \ 1085 1085 do { \ 1086 1086 (data)->addr = cpu_to_scr(badd); \
+2 -2
drivers/staging/agnx/pci.c
··· 477 477 return err; 478 478 } 479 479 480 - if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) || 481 - pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 480 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) || 481 + pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { 482 482 printk(KERN_ERR PFX "No suitable DMA available\n"); 483 483 goto err_free_reg; 484 484 }
+2 -2
drivers/staging/altpciechdma/altpciechdma.c
··· 855 855 printk(KERN_DEBUG "Using a 64-bit DMA mask.\n"); 856 856 } else 857 857 #endif 858 - if (!pci_set_dma_mask(dev, DMA_32BIT_MASK)) { 858 + if (!pci_set_dma_mask(dev, DMA_BIT_MASK(32))) { 859 859 printk(KERN_DEBUG "Could not set 64-bit DMA mask.\n"); 860 - pci_set_consistent_dma_mask(dev, DMA_32BIT_MASK); 860 + pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(32)); 861 861 /* use 32-bit DMA */ 862 862 printk(KERN_DEBUG "Using a 32-bit DMA mask.\n"); 863 863 } else {
+2 -2
drivers/staging/sxg/sxg.c
··· 937 937 if (!(err = pci_set_dma_mask(pcidev, DMA_BIT_MASK(64)))) { 938 938 DBG_ERROR("pci_set_dma_mask(DMA_BIT_MASK(64)) successful\n"); 939 939 } else { 940 - if ((err = pci_set_dma_mask(pcidev, DMA_32BIT_MASK))) { 940 + if ((err = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32)))) { 941 941 DBG_ERROR 942 942 ("No usable DMA configuration, aborting err[%x]\n", 943 943 err); 944 944 return err; 945 945 } 946 - DBG_ERROR("pci_set_dma_mask(DMA_32BIT_MASK) successful\n"); 946 + DBG_ERROR("pci_set_dma_mask(DMA_BIT_MASK(32)) successful\n"); 947 947 } 948 948 949 949 DBG_ERROR("Call pci_request_regions\n");
+1 -1
drivers/usb/host/ehci-ps3.c
··· 81 81 int result; 82 82 struct usb_hcd *hcd; 83 83 unsigned int virq; 84 - static u64 dummy_mask = DMA_32BIT_MASK; 84 + static u64 dummy_mask = DMA_BIT_MASK(32); 85 85 86 86 if (usb_disabled()) { 87 87 result = -ENODEV;
+1 -1
drivers/usb/host/ohci-ps3.c
··· 80 80 int result; 81 81 struct usb_hcd *hcd; 82 82 unsigned int virq; 83 - static u64 dummy_mask = DMA_32BIT_MASK; 83 + static u64 dummy_mask = DMA_BIT_MASK(32); 84 84 85 85 if (usb_disabled()) { 86 86 result = -ENODEV;
+2 -2
drivers/uwb/whci.c
··· 162 162 err = -ENXIO; 163 163 if (!pci_set_dma_mask(pci, DMA_BIT_MASK(64))) 164 164 pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(64)); 165 - else if (!pci_set_dma_mask(pci, DMA_32BIT_MASK)) 166 - pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK); 165 + else if (!pci_set_dma_mask(pci, DMA_BIT_MASK(32))) 166 + pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)); 167 167 else 168 168 goto error_dma; 169 169
+1 -1
include/linux/dma-mapping.h
··· 115 115 { 116 116 if (dev && dev->dma_mask && *dev->dma_mask) 117 117 return *dev->dma_mask; 118 - return DMA_32BIT_MASK; 118 + return DMA_BIT_MASK(32); 119 119 } 120 120 121 121 extern u64 dma_get_required_mask(struct device *dev);
+1 -1
lib/swiotlb.c
··· 549 549 dma_addr_t dev_addr; 550 550 void *ret; 551 551 int order = get_order(size); 552 - u64 dma_mask = DMA_32BIT_MASK; 552 + u64 dma_mask = DMA_BIT_MASK(32); 553 553 554 554 if (hwdev && hwdev->coherent_dma_mask) 555 555 dma_mask = hwdev->coherent_dma_mask;
+2 -2
sound/pci/ad1889.c
··· 909 909 return err; 910 910 911 911 /* check PCI availability (32bit DMA) */ 912 - if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || 913 - pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { 912 + if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || 913 + pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { 914 914 printk(KERN_ERR PFX "error setting 32-bit DMA mask.\n"); 915 915 pci_disable_device(pci); 916 916 return -ENXIO;
+2 -2
sound/pci/au88x0/au88x0.c
··· 151 151 // check PCI availability (DMA). 152 152 if ((err = pci_enable_device(pci)) < 0) 153 153 return err; 154 - if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || 155 - pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { 154 + if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || 155 + pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { 156 156 printk(KERN_ERR "error to set DMA mask\n"); 157 157 pci_disable_device(pci); 158 158 return -ENXIO;
+2 -2
sound/pci/aw2/aw2-alsa.c
··· 279 279 pci_set_master(pci); 280 280 281 281 /* check PCI availability (32bit DMA) */ 282 - if ((pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0) || 283 - (pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0)) { 282 + if ((pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0) || 283 + (pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0)) { 284 284 printk(KERN_ERR "aw2: Impossible to set 32bit mask DMA\n"); 285 285 pci_disable_device(pci); 286 286 return -ENXIO;
+2 -2
sound/pci/ca0106/ca0106_main.c
··· 1589 1589 err = pci_enable_device(pci); 1590 1590 if (err < 0) 1591 1591 return err; 1592 - if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || 1593 - pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { 1592 + if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || 1593 + pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { 1594 1594 printk(KERN_ERR "error to set 32bit mask DMA\n"); 1595 1595 pci_disable_device(pci); 1596 1596 return -ENXIO;
+2 -2
sound/pci/cs5535audio/cs5535audio.c
··· 285 285 if ((err = pci_enable_device(pci)) < 0) 286 286 return err; 287 287 288 - if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || 289 - pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { 288 + if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || 289 + pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { 290 290 printk(KERN_WARNING "unable to get 32bit dma\n"); 291 291 err = -ENXIO; 292 292 goto pcifail;
+1 -1
sound/pci/mixart/mixart.c
··· 1291 1291 pci_set_master(pci); 1292 1292 1293 1293 /* check if we can restrict PCI DMA transfers to 32 bits */ 1294 - if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0) { 1294 + if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { 1295 1295 snd_printk(KERN_ERR "architecture does not support 32bit PCI busmaster DMA\n"); 1296 1296 pci_disable_device(pci); 1297 1297 return -ENXIO;
+1 -1
sound/pci/pcxhr/pcxhr.c
··· 1449 1449 pci_set_master(pci); 1450 1450 1451 1451 /* check if we can restrict PCI DMA transfers to 32 bits */ 1452 - if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0) { 1452 + if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { 1453 1453 snd_printk(KERN_ERR "architecture does not support " 1454 1454 "32bit PCI busmaster DMA\n"); 1455 1455 pci_disable_device(pci);
+2 -2
sound/soc/blackfin/bf5xx-ac97-pcm.c
··· 413 413 sport_done(sport_handle); 414 414 } 415 415 416 - static u64 bf5xx_pcm_dmamask = DMA_32BIT_MASK; 416 + static u64 bf5xx_pcm_dmamask = DMA_BIT_MASK(32); 417 417 418 418 int bf5xx_pcm_ac97_new(struct snd_card *card, struct snd_soc_dai *dai, 419 419 struct snd_pcm *pcm) ··· 424 424 if (!card->dev->dma_mask) 425 425 card->dev->dma_mask = &bf5xx_pcm_dmamask; 426 426 if (!card->dev->coherent_dma_mask) 427 - card->dev->coherent_dma_mask = DMA_32BIT_MASK; 427 + card->dev->coherent_dma_mask = DMA_BIT_MASK(32); 428 428 429 429 if (dai->playback.channels_min) { 430 430 ret = bf5xx_pcm_preallocate_dma_buffer(pcm,
+2 -2
sound/soc/blackfin/bf5xx-i2s-pcm.c
··· 245 245 sport_done(sport_handle); 246 246 } 247 247 248 - static u64 bf5xx_pcm_dmamask = DMA_32BIT_MASK; 248 + static u64 bf5xx_pcm_dmamask = DMA_BIT_MASK(32); 249 249 250 250 int bf5xx_pcm_i2s_new(struct snd_card *card, struct snd_soc_dai *dai, 251 251 struct snd_pcm *pcm) ··· 256 256 if (!card->dev->dma_mask) 257 257 card->dev->dma_mask = &bf5xx_pcm_dmamask; 258 258 if (!card->dev->coherent_dma_mask) 259 - card->dev->coherent_dma_mask = DMA_32BIT_MASK; 259 + card->dev->coherent_dma_mask = DMA_BIT_MASK(32); 260 260 261 261 if (dai->playback.channels_min) { 262 262 ret = bf5xx_pcm_preallocate_dma_buffer(pcm,
+1 -1
sound/soc/omap/omap-pcm.c
··· 327 327 if (!card->dev->dma_mask) 328 328 card->dev->dma_mask = &omap_pcm_dmamask; 329 329 if (!card->dev->coherent_dma_mask) 330 - card->dev->coherent_dma_mask = DMA_32BIT_MASK; 330 + card->dev->coherent_dma_mask = DMA_BIT_MASK(32); 331 331 332 332 if (dai->playback.channels_min) { 333 333 ret = omap_pcm_preallocate_dma_buffer(pcm,
+2 -2
sound/soc/pxa/pxa2xx-pcm.c
··· 81 81 .mmap = pxa2xx_pcm_mmap, 82 82 }; 83 83 84 - static u64 pxa2xx_pcm_dmamask = DMA_32BIT_MASK; 84 + static u64 pxa2xx_pcm_dmamask = DMA_BIT_MASK(32); 85 85 86 86 static int pxa2xx_soc_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, 87 87 struct snd_pcm *pcm) ··· 91 91 if (!card->dev->dma_mask) 92 92 card->dev->dma_mask = &pxa2xx_pcm_dmamask; 93 93 if (!card->dev->coherent_dma_mask) 94 - card->dev->coherent_dma_mask = DMA_32BIT_MASK; 94 + card->dev->coherent_dma_mask = DMA_BIT_MASK(32); 95 95 96 96 if (dai->playback.channels_min) { 97 97 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm,
+1 -1
sound/soc/s3c24xx/s3c24xx-pcm.c
··· 419 419 } 420 420 } 421 421 422 - static u64 s3c24xx_pcm_dmamask = DMA_32BIT_MASK; 422 + static u64 s3c24xx_pcm_dmamask = DMA_BIT_MASK(32); 423 423 424 424 static int s3c24xx_pcm_new(struct snd_card *card, 425 425 struct snd_soc_dai *dai, struct snd_pcm *pcm)