diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_timer_gp106.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_timer_gp106.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_timer_gp106.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_timer_gp106.h index 1fedbdb2..7fd722f9 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_timer_gp106.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_timer_gp106.h | |||
@@ -58,58 +58,58 @@ | |||
58 | 58 | ||
59 | static inline u32 timer_pri_timeout_r(void) | 59 | static inline u32 timer_pri_timeout_r(void) |
60 | { | 60 | { |
61 | return 0x00009080; | 61 | return 0x00009080U; |
62 | } | 62 | } |
63 | static inline u32 timer_pri_timeout_period_f(u32 v) | 63 | static inline u32 timer_pri_timeout_period_f(u32 v) |
64 | { | 64 | { |
65 | return (v & 0xffffff) << 0; | 65 | return (v & 0xffffffU) << 0U; |
66 | } | 66 | } |
67 | static inline u32 timer_pri_timeout_period_m(void) | 67 | static inline u32 timer_pri_timeout_period_m(void) |
68 | { | 68 | { |
69 | return 0xffffff << 0; | 69 | return 0xffffffU << 0U; |
70 | } | 70 | } |
71 | static inline u32 timer_pri_timeout_period_v(u32 r) | 71 | static inline u32 timer_pri_timeout_period_v(u32 r) |
72 | { | 72 | { |
73 | return (r >> 0) & 0xffffff; | 73 | return (r >> 0U) & 0xffffffU; |
74 | } | 74 | } |
75 | static inline u32 timer_pri_timeout_en_f(u32 v) | 75 | static inline u32 timer_pri_timeout_en_f(u32 v) |
76 | { | 76 | { |
77 | return (v & 0x1) << 31; | 77 | return (v & 0x1U) << 31U; |
78 | } | 78 | } |
79 | static inline u32 timer_pri_timeout_en_m(void) | 79 | static inline u32 timer_pri_timeout_en_m(void) |
80 | { | 80 | { |
81 | return 0x1 << 31; | 81 | return 0x1U << 31U; |
82 | } | 82 | } |
83 | static inline u32 timer_pri_timeout_en_v(u32 r) | 83 | static inline u32 timer_pri_timeout_en_v(u32 r) |
84 | { | 84 | { |
85 | return (r >> 31) & 0x1; | 85 | return (r >> 31U) & 0x1U; |
86 | } | 86 | } |
87 | static inline u32 timer_pri_timeout_en_en_enabled_f(void) | 87 | static inline u32 timer_pri_timeout_en_en_enabled_f(void) |
88 | { | 88 | { |
89 | return 0x80000000; | 89 | return 0x80000000U; |
90 | } | 90 | } |
91 | static inline u32 timer_pri_timeout_en_en_disabled_f(void) | 91 | static inline u32 timer_pri_timeout_en_en_disabled_f(void) |
92 | { | 92 | { |
93 | return 0x0; | 93 | return 0x0U; |
94 | } | 94 | } |
95 | static inline u32 timer_pri_timeout_save_0_r(void) | 95 | static inline u32 timer_pri_timeout_save_0_r(void) |
96 | { | 96 | { |
97 | return 0x00009084; | 97 | return 0x00009084U; |
98 | } | 98 | } |
99 | static inline u32 timer_pri_timeout_save_1_r(void) | 99 | static inline u32 timer_pri_timeout_save_1_r(void) |
100 | { | 100 | { |
101 | return 0x00009088; | 101 | return 0x00009088U; |
102 | } | 102 | } |
103 | static inline u32 timer_pri_timeout_fecs_errcode_r(void) | 103 | static inline u32 timer_pri_timeout_fecs_errcode_r(void) |
104 | { | 104 | { |
105 | return 0x0000908c; | 105 | return 0x0000908cU; |
106 | } | 106 | } |
107 | static inline u32 timer_time_0_r(void) | 107 | static inline u32 timer_time_0_r(void) |
108 | { | 108 | { |
109 | return 0x00009400; | 109 | return 0x00009400U; |
110 | } | 110 | } |
111 | static inline u32 timer_time_1_r(void) | 111 | static inline u32 timer_time_1_r(void) |
112 | { | 112 | { |
113 | return 0x00009410; | 113 | return 0x00009410U; |
114 | } | 114 | } |
115 | #endif | 115 | #endif |