@@ -171,41 +171,41 @@ static inline struct coherent *coherent_release_irq(struct coherent *c, const si
171171 return cache_to_uncache (c );
172172}
173173
174- #define coherent_init (object , member ) \
175- do { \
174+ #define coherent_init (object , member ) \
175+ do { \
176176 /* assert if someone passes a cache/local address in here. */ \
177177 ADDR_IS_COHERENT (object ); \
178178 /* TODO static assert if we are not cache aligned */ \
179179 spinlock_init (& object -> member .lock ); \
180- object -> member .shared = false; \
180+ object -> member .shared = false; \
181181 object -> member .core = cpu_get_id (); \
182182 list_init (& object -> member .list ); \
183183 /* inv local data to coherent object */ \
184184 dcache_invalidate_region (uncache_to_cache (object ), sizeof (* object )); \
185185 } while (0 )
186186
187- #define coherent_free (object , member ) \
188- do { \
189- /* assert if someone passes a cache address in here. */ \
187+ #define coherent_free (object , member ) \
188+ do { \
189+ /* assert if someone passes a cache address in here. */ \
190190 ADDR_IS_COHERENT (object ); \
191191 /* wtb and inv local data to coherent object */ \
192192 dcache_writeback_invalidate_region (uncache_to_cache (object ), sizeof (* object )); \
193193 } while (0 )
194194
195195/* set the object to shared mode with coherency managed by SW */
196- #define coherent_shared (object , member ) \
197- do { \
196+ #define coherent_shared (object , member ) \
197+ do { \
198198 /* assert if someone passes a cache/local address in here. */ \
199199 ADDR_IS_COHERENT (object ); \
200200 spin_lock (& (object )-> member .lock ); \
201201 (object )-> member .shared = true; \
202202 dcache_invalidate_region (object , sizeof (* object )); \
203- spin_unlock (& (object )-> member .lock ); \
203+ spin_unlock (& (object )-> member .lock ); \
204204 } while (0 )
205205
206206/* set the object to shared mode with coherency managed by SW */
207- #define coherent_shared_irq (object , member ) \
208- do { \
207+ #define coherent_shared_irq (object , member ) \
208+ do { \
209209 /* assert if someone passes a cache/local address in here. */ \
210210 ADDR_IS_COHERENT (object ); \
211211 spin_lock_irq (& (object )-> member .lock , & (object )-> member .flags ); \
@@ -267,8 +267,8 @@ static inline struct coherent *coherent_release_irq(struct coherent *c, const si
267267 return c ;
268268}
269269
270- #define coherent_init (object , member ) \
271- do { \
270+ #define coherent_init (object , member ) \
271+ do { \
272272 /* TODO static assert if we are not cache aligned */ \
273273 spinlock_init (& object -> member .lock ); \
274274 object -> member .shared = 0 ; \
0 commit comments