diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/dma.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/dma.h b/drivers/gpu/nvgpu/include/nvgpu/dma.h index 6a13e577..cbb829b6 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/dma.h +++ b/drivers/gpu/nvgpu/include/nvgpu/dma.h | |||
@@ -37,18 +37,18 @@ struct nvgpu_mem; | |||
37 | * Don't create a virtual kernel mapping for the buffer but only allocate it; | 37 | * Don't create a virtual kernel mapping for the buffer but only allocate it; |
38 | * this may save some resources. The buffer can be mapped later explicitly. | 38 | * this may save some resources. The buffer can be mapped later explicitly. |
39 | */ | 39 | */ |
40 | #define NVGPU_DMA_NO_KERNEL_MAPPING (1 << 0) | 40 | #define NVGPU_DMA_NO_KERNEL_MAPPING BIT32(0) |
41 | 41 | ||
42 | /* | 42 | /* |
43 | * Don't allow building the buffer from individual pages but require a | 43 | * Don't allow building the buffer from individual pages but require a |
44 | * physically contiguous block. | 44 | * physically contiguous block. |
45 | */ | 45 | */ |
46 | #define NVGPU_DMA_FORCE_CONTIGUOUS (1 << 1) | 46 | #define NVGPU_DMA_FORCE_CONTIGUOUS BIT32(1) |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * Make the mapping read-only. | 49 | * Make the mapping read-only. |
50 | */ | 50 | */ |
51 | #define NVGPU_DMA_READ_ONLY (1 << 2) | 51 | #define NVGPU_DMA_READ_ONLY BIT32(2) |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * nvgpu_iommuable - Check if GPU is behind IOMMU | 54 | * nvgpu_iommuable - Check if GPU is behind IOMMU |