@@ -32,7 +32,7 @@ __intel_de_read(struct intel_display *display, i915_reg_t reg)
32
32
#define intel_de_read (p ,...) __intel_de_read(__to_intel_display(p), __VA_ARGS__)
33
33
34
34
static inline u8
35
- __intel_de_read8 (struct intel_display * display , i915_reg_t reg )
35
+ intel_de_read8 (struct intel_display * display , i915_reg_t reg )
36
36
{
37
37
u8 val ;
38
38
@@ -44,11 +44,10 @@ __intel_de_read8(struct intel_display *display, i915_reg_t reg)
44
44
45
45
return val ;
46
46
}
47
- #define intel_de_read8 (p ,...) __intel_de_read8(__to_intel_display(p), __VA_ARGS__)
48
47
49
48
static inline u64
50
- __intel_de_read64_2x32 (struct intel_display * display ,
51
- i915_reg_t lower_reg , i915_reg_t upper_reg )
49
+ intel_de_read64_2x32 (struct intel_display * display ,
50
+ i915_reg_t lower_reg , i915_reg_t upper_reg )
52
51
{
53
52
u64 val ;
54
53
@@ -63,7 +62,6 @@ __intel_de_read64_2x32(struct intel_display *display,
63
62
64
63
return val ;
65
64
}
66
- #define intel_de_read64_2x32 (p ,...) __intel_de_read64_2x32(__to_intel_display(p), __VA_ARGS__)
67
65
68
66
static inline void
69
67
__intel_de_posting_read (struct intel_display * display , i915_reg_t reg )
@@ -88,12 +86,11 @@ __intel_de_write(struct intel_display *display, i915_reg_t reg, u32 val)
88
86
#define intel_de_write (p ,...) __intel_de_write(__to_intel_display(p), __VA_ARGS__)
89
87
90
88
static inline u32
91
- ____intel_de_rmw_nowl (struct intel_display * display , i915_reg_t reg ,
92
- u32 clear , u32 set )
89
+ __intel_de_rmw_nowl (struct intel_display * display , i915_reg_t reg ,
90
+ u32 clear , u32 set )
93
91
{
94
92
return intel_uncore_rmw (__to_uncore (display ), reg , clear , set );
95
93
}
96
- #define __intel_de_rmw_nowl (p ,...) ____intel_de_rmw_nowl(__to_intel_display(p), __VA_ARGS__)
97
94
98
95
static inline u32
99
96
__intel_de_rmw (struct intel_display * display , i915_reg_t reg , u32 clear ,
@@ -112,18 +109,17 @@ __intel_de_rmw(struct intel_display *display, i915_reg_t reg, u32 clear,
112
109
#define intel_de_rmw (p ,...) __intel_de_rmw(__to_intel_display(p), __VA_ARGS__)
113
110
114
111
static inline int
115
- ____intel_de_wait_for_register_nowl (struct intel_display * display ,
116
- i915_reg_t reg ,
117
- u32 mask , u32 value , unsigned int timeout )
112
+ __intel_de_wait_for_register_nowl (struct intel_display * display ,
113
+ i915_reg_t reg ,
114
+ u32 mask , u32 value , unsigned int timeout )
118
115
{
119
116
return intel_wait_for_register (__to_uncore (display ), reg , mask ,
120
117
value , timeout );
121
118
}
122
- #define __intel_de_wait_for_register_nowl (p ,...) ____intel_de_wait_for_register_nowl(__to_intel_display(p), __VA_ARGS__)
123
119
124
120
static inline int
125
- __intel_de_wait (struct intel_display * display , i915_reg_t reg ,
126
- u32 mask , u32 value , unsigned int timeout )
121
+ intel_de_wait (struct intel_display * display , i915_reg_t reg ,
122
+ u32 mask , u32 value , unsigned int timeout )
127
123
{
128
124
int ret ;
129
125
@@ -136,11 +132,10 @@ __intel_de_wait(struct intel_display *display, i915_reg_t reg,
136
132
137
133
return ret ;
138
134
}
139
- #define intel_de_wait (p ,...) __intel_de_wait(__to_intel_display(p), __VA_ARGS__)
140
135
141
136
static inline int
142
- __intel_de_wait_fw (struct intel_display * display , i915_reg_t reg ,
143
- u32 mask , u32 value , unsigned int timeout )
137
+ intel_de_wait_fw (struct intel_display * display , i915_reg_t reg ,
138
+ u32 mask , u32 value , unsigned int timeout )
144
139
{
145
140
int ret ;
146
141
@@ -153,13 +148,12 @@ __intel_de_wait_fw(struct intel_display *display, i915_reg_t reg,
153
148
154
149
return ret ;
155
150
}
156
- #define intel_de_wait_fw (p ,...) __intel_de_wait_fw(__to_intel_display(p), __VA_ARGS__)
157
151
158
152
static inline int
159
- __intel_de_wait_custom (struct intel_display * display , i915_reg_t reg ,
160
- u32 mask , u32 value ,
161
- unsigned int fast_timeout_us ,
162
- unsigned int slow_timeout_ms , u32 * out_value )
153
+ intel_de_wait_custom (struct intel_display * display , i915_reg_t reg ,
154
+ u32 mask , u32 value ,
155
+ unsigned int fast_timeout_us ,
156
+ unsigned int slow_timeout_ms , u32 * out_value )
163
157
{
164
158
int ret ;
165
159
@@ -173,7 +167,6 @@ __intel_de_wait_custom(struct intel_display *display, i915_reg_t reg,
173
167
174
168
return ret ;
175
169
}
176
- #define intel_de_wait_custom (p ,...) __intel_de_wait_custom(__to_intel_display(p), __VA_ARGS__)
177
170
178
171
static inline int
179
172
__intel_de_wait_for_set (struct intel_display * display , i915_reg_t reg ,
@@ -220,19 +213,16 @@ __intel_de_write_fw(struct intel_display *display, i915_reg_t reg, u32 val)
220
213
#define intel_de_write_fw (p ,...) __intel_de_write_fw(__to_intel_display(p), __VA_ARGS__)
221
214
222
215
static inline u32
223
- __intel_de_read_notrace (struct intel_display * display , i915_reg_t reg )
216
+ intel_de_read_notrace (struct intel_display * display , i915_reg_t reg )
224
217
{
225
218
return intel_uncore_read_notrace (__to_uncore (display ), reg );
226
219
}
227
- #define intel_de_read_notrace (p ,...) __intel_de_read_notrace(__to_intel_display(p), __VA_ARGS__)
228
220
229
221
static inline void
230
- __intel_de_write_notrace (struct intel_display * display , i915_reg_t reg ,
231
- u32 val )
222
+ intel_de_write_notrace (struct intel_display * display , i915_reg_t reg , u32 val )
232
223
{
233
224
intel_uncore_write_notrace (__to_uncore (display ), reg , val );
234
225
}
235
- #define intel_de_write_notrace (p ,...) __intel_de_write_notrace(__to_intel_display(p), __VA_ARGS__)
236
226
237
227
static __always_inline void
238
228
intel_de_write_dsb (struct intel_display * display , struct intel_dsb * dsb ,
0 commit comments