Lines Matching +full:addr +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0 */
17 #define SWIFT_PMC 0x00180000 /* Page mode control */
20 #define SWIFT_AP 0x00010000 /* Graphics page mode control (TCX/SX) */
22 #define SWIFT_BM 0x00004000 /* Boot mode */
27 #define SWIFT_NF 0x00000002 /* No fault mode */
31 static inline void swift_inv_insn_tag(unsigned long addr) in swift_inv_insn_tag() argument
35 : "r" (addr), "i" (ASI_M_TXTC_TAG) in swift_inv_insn_tag()
40 static inline void swift_inv_data_tag(unsigned long addr) in swift_inv_data_tag() argument
44 : "r" (addr), "i" (ASI_M_DATAC_TAG) in swift_inv_data_tag()
50 unsigned long addr; in swift_flush_dcache() local
52 for (addr = 0; addr < 0x2000; addr += 0x10) in swift_flush_dcache()
53 swift_inv_data_tag(addr); in swift_flush_dcache()
58 unsigned long addr; in swift_flush_icache() local
60 for (addr = 0; addr < 0x4000; addr += 0x20) in swift_flush_icache()
61 swift_inv_insn_tag(addr); in swift_flush_icache()
66 unsigned long addr; in swift_idflash_clear() local
68 for (addr = 0; addr < 0x2000; addr += 0x10) { in swift_idflash_clear()
69 swift_inv_insn_tag(addr<<1); in swift_idflash_clear()
70 swift_inv_data_tag(addr); in swift_idflash_clear()
83 static inline void swift_flush_segment(unsigned long addr) in swift_flush_segment() argument
87 : "r" (addr), "i" (ASI_M_FLUSH_SEG) in swift_flush_segment()
91 static inline void swift_flush_region(unsigned long addr) in swift_flush_region() argument
95 : "r" (addr), "i" (ASI_M_FLUSH_REGION) in swift_flush_region()