11 #include <asm/cache.h>
12 #include <asm/asmmacro.h>
40 \
insn \
ar, 1 << (\line_width)
42 \
insn \ar, 3 << (\line_width)
48 .macro __loop_cache_range ar
as at insn line_width
50 extui \
at, \ar, 0, \line_width
53 __loops \ar, \as, \at, \line_width
55 __endla \ar, \at, (1 << (\line_width))
60 .macro __loop_cache_page ar at
insn line_width
62 __loopi \ar, \at,
PAGE_SIZE, 4 << (\line_width)
64 \
insn \ar, 1 << (\line_width)
66 \
insn \ar, 3 << (\line_width)
74 .macro ___unlock_dcache_all ar at
84 .macro ___unlock_icache_all ar at
91 .macro ___flush_invalidate_dcache_all ar at
98 .macro ___flush_dcache_all ar at
105 .macro ___invalidate_dcache_all ar at
108 XCHAL_DCACHE_LINEWIDTH
113 .macro ___invalidate_icache_all ar at
116 XCHAL_ICACHE_LINEWIDTH
122 .macro ___flush_invalidate_dcache_range ar as at
129 .macro ___flush_dcache_range ar as at
136 .macro ___invalidate_dcache_range ar as at
143 .macro ___invalidate_icache_range ar as at
151 .macro ___flush_invalidate_dcache_page ar as
158 .macro ___flush_dcache_page ar as
165 .macro ___invalidate_dcache_page ar as
172 .macro ___invalidate_icache_page ar as