Lines Matching refs:cache_cfg

66 static struct cache_config cache_cfg;  variable
127 end = ways * sets * cache_cfg.instr_line_size; in nds_l1i_cache_all()
129 for (int i = 0; i < end; i += cache_cfg.instr_line_size) { in nds_l1i_cache_all()
175 nds_cctl_range_operations(addr, size, cache_cfg.instr_line_size, cmd); in nds_l1i_cache_range()
199 nds_cctl_range_operations(addr, size, cache_cfg.data_line_size, cmd); in nds_l1d_cache_range()
239 if (!cache_cfg.l2_cache_inclusive) { in cache_data_disable()
246 if (cache_cfg.l2_cache_inclusive) { in cache_data_disable()
289 if (!cache_cfg.is_cctl_supported) { in cache_data_invd_all()
294 if (cache_cfg.l2_cache_inclusive) { in cache_data_invd_all()
312 if (!cache_cfg.is_cctl_supported) { in cache_data_invd_range()
317 if (cache_cfg.l2_cache_inclusive) { in cache_data_invd_range()
332 if (!cache_cfg.is_cctl_supported) { in cache_instr_invd_all()
369 if (!cache_cfg.is_cctl_supported) { in cache_instr_invd_range()
391 if (!cache_cfg.is_cctl_supported) { in cache_data_flush_all()
396 if (cache_cfg.l2_cache_inclusive) { in cache_data_flush_all()
411 if (!cache_cfg.is_cctl_supported) { in cache_data_flush_range()
416 if (cache_cfg.l2_cache_inclusive) { in cache_data_flush_range()
431 if (!cache_cfg.is_cctl_supported) { in cache_data_flush_and_invd_all()
436 if (cache_cfg.l2_cache_size) { in cache_data_flush_and_invd_all()
437 if (cache_cfg.l2_cache_inclusive) { in cache_data_flush_and_invd_all()
456 if (!cache_cfg.is_cctl_supported) { in cache_data_flush_and_invd_range()
461 if (cache_cfg.l2_cache_size) { in cache_data_flush_and_invd_range()
462 if (cache_cfg.l2_cache_inclusive) { in cache_data_flush_and_invd_range()
506 return cache_cfg.data_line_size; in cache_data_line_size_get()
513 return cache_cfg.instr_line_size; in cache_instr_line_size_get()
531 cache_cfg.instr_line_size = 1 << (line_size + 2); in andes_cache_init()
536 cache_cfg.instr_line_size = CONFIG_ICACHE_LINE_SIZE; in andes_cache_init()
538 cache_cfg.instr_line_size = in andes_cache_init()
555 cache_cfg.data_line_size = 1 << (line_size + 2); in andes_cache_init()
560 cache_cfg.data_line_size = CONFIG_DCACHE_LINE_SIZE; in andes_cache_init()
562 cache_cfg.data_line_size = in andes_cache_init()
571 cache_cfg.is_cctl_supported = true; in andes_cache_init()
580 cache_cfg.l2_cache_size = nds_l2_cache_init(cache_cfg.data_line_size); in andes_cache_init()
581 cache_cfg.l2_cache_inclusive = nds_l2_cache_is_inclusive(); in andes_cache_init()