Lines Matching refs:NDS_MCACHE_CTL
214 csr_set(NDS_MCACHE_CTL, MCACHE_CTL_DC_COHEN); in cache_data_enable()
217 if (csr_read(NDS_MCACHE_CTL) & MCACHE_CTL_DC_COHEN) { in cache_data_enable()
219 while (!(csr_read(NDS_MCACHE_CTL) & MCACHE_CTL_DC_COHSTA)) { in cache_data_enable()
225 csr_set(NDS_MCACHE_CTL, MCACHE_CTL_DC_EN); in cache_data_enable()
253 csr_clear(NDS_MCACHE_CTL, MCACHE_CTL_DC_EN); in cache_data_disable()
256 if (csr_read(NDS_MCACHE_CTL) & MCACHE_CTL_DC_COHSTA) { in cache_data_disable()
257 csr_clear(NDS_MCACHE_CTL, MCACHE_CTL_DC_COHEN); in cache_data_disable()
259 while (csr_read(NDS_MCACHE_CTL) & MCACHE_CTL_DC_COHSTA) { in cache_data_disable()
273 csr_set(NDS_MCACHE_CTL, MCACHE_CTL_IC_EN); in cache_instr_enable()
282 csr_clear(NDS_MCACHE_CTL, MCACHE_CTL_IC_EN); in cache_instr_disable()
576 csr_set(NDS_MCACHE_CTL, MCACHE_CTL_CCTL_SUEN); in andes_cache_init()