|
34 | 34 | * - start - virtual start address (inclusive) |
35 | 35 | * - end - virtual end address (exclusive) |
36 | 36 | * |
37 | | - * __flush_icache_range(start, end) |
| 37 | + * caches_clean_inval_pou(start, end) |
38 | 38 | * |
39 | 39 | * Ensure coherency between the I-cache and the D-cache region to |
40 | 40 | * the Point of Unification. |
41 | 41 | * |
42 | | - * __flush_cache_user_range(start, end) |
| 42 | + * caches_clean_inval_user_pou(start, end) |
43 | 43 | * |
44 | 44 | * Ensure coherency between the I-cache and the D-cache region to |
45 | 45 | * the Point of Unification. |
46 | 46 | * Use only if the region might access user memory. |
47 | 47 | * |
48 | | - * invalidate_icache_range(start, end) |
| 48 | + * icache_inval_pou(start, end) |
49 | 49 | * |
50 | 50 | * Invalidate I-cache region to the Point of Unification. |
51 | 51 | * |
52 | | - * __flush_dcache_area(start, end) |
| 52 | + * dcache_clean_inval_poc(start, end) |
53 | 53 | * |
54 | 54 | * Clean and invalidate D-cache region to the Point of Coherency. |
55 | 55 | * |
56 | | - * __inval_dcache_area(start, end) |
| 56 | + * dcache_inval_poc(start, end) |
57 | 57 | * |
58 | 58 | * Invalidate D-cache region to the Point of Coherency. |
59 | 59 | * |
60 | | - * __clean_dcache_area_poc(start, end) |
| 60 | + * dcache_clean_poc(start, end) |
61 | 61 | * |
62 | 62 | * Clean D-cache region to the Point of Coherency. |
63 | 63 | * |
64 | | - * __clean_dcache_area_pop(start, end) |
| 64 | + * dcache_clean_pop(start, end) |
65 | 65 | * |
66 | 66 | * Clean D-cache region to the Point of Persistence. |
67 | 67 | * |
68 | | - * __clean_dcache_area_pou(start, end) |
| 68 | + * dcache_clean_pou(start, end) |
69 | 69 | * |
70 | 70 | * Clean D-cache region to the Point of Unification. |
71 | 71 | */ |
72 | | -extern void __flush_icache_range(unsigned long start, unsigned long end); |
73 | | -extern void invalidate_icache_range(unsigned long start, unsigned long end); |
74 | | -extern void __flush_dcache_area(unsigned long start, unsigned long end); |
75 | | -extern void __inval_dcache_area(unsigned long start, unsigned long end); |
76 | | -extern void __clean_dcache_area_poc(unsigned long start, unsigned long end); |
77 | | -extern void __clean_dcache_area_pop(unsigned long start, unsigned long end); |
78 | | -extern void __clean_dcache_area_pou(unsigned long start, unsigned long end); |
79 | | -extern long __flush_cache_user_range(unsigned long start, unsigned long end); |
| 72 | +extern void caches_clean_inval_pou(unsigned long start, unsigned long end); |
| 73 | +extern void icache_inval_pou(unsigned long start, unsigned long end); |
| 74 | +extern void dcache_clean_inval_poc(unsigned long start, unsigned long end); |
| 75 | +extern void dcache_inval_poc(unsigned long start, unsigned long end); |
| 76 | +extern void dcache_clean_poc(unsigned long start, unsigned long end); |
| 77 | +extern void dcache_clean_pop(unsigned long start, unsigned long end); |
| 78 | +extern void dcache_clean_pou(unsigned long start, unsigned long end); |
| 79 | +extern long caches_clean_inval_user_pou(unsigned long start, unsigned long end); |
80 | 80 | extern void sync_icache_aliases(unsigned long start, unsigned long end); |
81 | 81 |
|
82 | 82 | static inline void flush_icache_range(unsigned long start, unsigned long end) |
83 | 83 | { |
84 | | - __flush_icache_range(start, end); |
| 84 | + caches_clean_inval_pou(start, end); |
85 | 85 |
|
86 | 86 | /* |
87 | 87 | * IPI all online CPUs so that they undergo a context synchronization |
@@ -135,7 +135,7 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *, |
135 | 135 | #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 |
136 | 136 | extern void flush_dcache_page(struct page *); |
137 | 137 |
|
138 | | -static __always_inline void __flush_icache_all(void) |
| 138 | +static __always_inline void icache_inval_all_pou(void) |
139 | 139 | { |
140 | 140 | if (cpus_have_const_cap(ARM64_HAS_CACHE_DIC)) |
141 | 141 | return; |
|
0 commit comments