coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cache.h File Reference
#include <arch/lib_helpers.h>
#include <stddef.h>
#include <arch/barrier.h>
Include dependency graph for cache.h:

Go to the source code of this file.

Functions

void dcache_clean_by_mva (void const *addr, size_t len)
 
void dcache_clean_invalidate_by_mva (void const *addr, size_t len)
 
void dcache_invalidate_by_mva (void const *addr, size_t len)
 
void dcache_clean_all (void)
 
void dcache_invalidate_all (void)
 
void dcache_clean_invalidate_all (void)
 
unsigned int dcache_line_bytes (void)
 
static void tlb_invalidate_all (void)
 
static void icache_invalidate_all (void)
 

Function Documentation

◆ dcache_clean_all()

void dcache_clean_all ( void  )

Definition at line 14 of file cache.c.

Referenced by board_reset(), cache_sync_instructions(), cold_reset(), do_full_reset(), do_system_reset(), global_reset(), mtk_wdt_swreset(), soft_reset(), and warm_reset().

Here is the caller graph for this function:

◆ dcache_clean_by_mva()

void dcache_clean_by_mva ( void const *  addr,
size_t  len 
)

Definition at line 37 of file cache.c.

References addr, dcache_op_mva(), dcache_op_va(), OP_DCCMVAC, and OP_DCCVAC.

Referenced by arch_segment_loaded(), queue_direct_data(), shrm_fw_load_reset(), soc_get_bl31_plat_params(), and tegra_spi_dma_prepare().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dcache_clean_invalidate_all()

void dcache_clean_invalidate_all ( void  )

Definition at line 18 of file cache.c.

Referenced by cache_sync_instructions(), and dcache_mmu_disable().

Here is the caller graph for this function:

◆ dcache_clean_invalidate_by_mva()

void dcache_clean_invalidate_by_mva ( void const *  addr,
size_t  len 
)

Definition at line 41 of file cache.c.

References addr, dcache_op_mva(), dcache_op_va(), OP_DCCIMVAC, and OP_DCCIVAC.

Referenced by arch_segment_loaded().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dcache_invalidate_all()

void dcache_invalidate_all ( void  )

Definition at line 22 of file cache.c.

◆ dcache_invalidate_by_mva()

void dcache_invalidate_by_mva ( void const *  addr,
size_t  len 
)

Definition at line 45 of file cache.c.

References addr, dcache_op_mva(), dcache_op_va(), OP_DCIMVAC, and OP_DCIVAC.

Here is the call graph for this function:

◆ dcache_line_bytes()

unsigned int dcache_line_bytes ( void  )

Definition at line 26 of file cache.c.

References read_ccsidr().

Referenced by dcache_op_mva(), dcache_op_va(), quadspi_init(), and xfer_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icache_invalidate_all()

static void icache_invalidate_all ( void  )
inlinestatic

Definition at line 43 of file cache.h.

References dsb(), iciallu(), and isb().

Referenced by arch_segment_loaded().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tlb_invalidate_all()

static void tlb_invalidate_all ( void  )
inlinestatic

Definition at line 34 of file cache.h.

References dsb(), isb(), and tlbiall_el3().

Here is the call graph for this function: