Lines Matching refs:ap_index
21 #define CCU_HTC_CR(ap_index) (MVEBU_CCU_BASE(ap_index) + 0x200) argument
26 void llc_cache_sync(int ap_index) in llc_cache_sync() argument
28 mmio_write_32(LLC_SYNC(ap_index), 0); in llc_cache_sync()
32 void llc_flush_all(int ap_index) in llc_flush_all() argument
34 mmio_write_32(LLC_CLEAN_INV_WAY(ap_index), LLC_ALL_WAYS_MASK); in llc_flush_all()
35 llc_cache_sync(ap_index); in llc_flush_all()
38 void llc_clean_all(int ap_index) in llc_clean_all() argument
40 mmio_write_32(LLC_CLEAN_WAY(ap_index), LLC_ALL_WAYS_MASK); in llc_clean_all()
41 llc_cache_sync(ap_index); in llc_clean_all()
44 void llc_inv_all(int ap_index) in llc_inv_all() argument
46 mmio_write_32(LLC_INV_WAY(ap_index), LLC_ALL_WAYS_MASK); in llc_inv_all()
47 llc_cache_sync(ap_index); in llc_inv_all()
50 void llc_disable(int ap_index) in llc_disable() argument
52 llc_flush_all(ap_index); in llc_disable()
53 mmio_write_32(LLC_CTRL(ap_index), 0); in llc_disable()
57 void llc_enable(int ap_index, int excl_mode) in llc_enable() argument
62 llc_inv_all(ap_index); in llc_enable()
69 mmio_write_32(LLC_CTRL(ap_index), val); in llc_enable()
73 int llc_is_exclusive(int ap_index) in llc_is_exclusive() argument
77 reg = mmio_read_32(LLC_CTRL(ap_index)); in llc_is_exclusive()
86 void llc_runtime_enable(int ap_index) in llc_runtime_enable() argument
90 reg = mmio_read_32(LLC_CTRL(ap_index)); in llc_runtime_enable()
103 llc_enable(ap_index, 1); in llc_runtime_enable()
108 reg = mmio_read_32(CCU_HTC_CR(ap_index)); in llc_runtime_enable()
110 mmio_write_32(CCU_HTC_CR(ap_index), reg); in llc_runtime_enable()
114 int llc_sram_enable(int ap_index, int size) in llc_sram_enable() argument
122 llc_enable(ap_index, 1); in llc_sram_enable()
123 llc_inv_all(ap_index); in llc_sram_enable()
129 mmio_write_32(LLC_TCN_LOCK(ap_index, tc), LLC_ALL_WAYS_MASK); in llc_sram_enable()
132 mmio_write_32(LLC_BANKED_MNT_AHR(ap_index), 0); in llc_sram_enable()
137 mmio_write_32(LLC_BLK_ALOC(ap_index), in llc_sram_enable()
146 void llc_sram_disable(int ap_index) in llc_sram_disable() argument
152 mmio_write_32(LLC_TCN_LOCK(ap_index, tc), 0); in llc_sram_disable()
155 llc_inv_all(ap_index); in llc_sram_disable()
158 int llc_sram_test(int ap_index, int size, char *msg) in llc_sram_test() argument