diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index d781034c..88acc3ec 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1366,6 +1366,11 @@ static inline u32 u64_lo32(u64 n) | |||
1366 | return (u32)(n & ~(u32)0); | 1366 | return (u32)(n & ~(u32)0); |
1367 | } | 1367 | } |
1368 | 1368 | ||
1369 | static inline u64 hi32_lo32_to_u64(u32 hi, u32 lo) | ||
1370 | { | ||
1371 | return (((u64)hi) << 32) | (u64)lo; | ||
1372 | } | ||
1373 | |||
1369 | static inline u32 set_field(u32 val, u32 mask, u32 field) | 1374 | static inline u32 set_field(u32 val, u32 mask, u32 field) |
1370 | { | 1375 | { |
1371 | return ((val & ~mask) | field); | 1376 | return ((val & ~mask) | field); |