summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-08-22 18:06:23 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-20 18:14:47 -0400
commitc1b66bc6a93eeecec1aea0e5bdf93397d0458823 (patch)
treec12bc035809bf17e22335c7f9b55d3b47948f425 /drivers/gpu/nvgpu/include
parentcdbe89a2729d242a17d3779a44e40998bd4e06f0 (diff)
gpu: nvgpu: Fix some dma.[ch] MISRA violations
This doesn't correspond to a specific rule; it just cleans up the violations introduced by http://git-master/r/1799807. JIRA NVGPU-990 Change-Id: Ia20af754da9ad60f81d58ba00bf781a8c441827b Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1804887 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/dma.h6
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