Home
last modified time | relevance | path

Searched refs:line_size (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/arch/arm/core/cortex_a_r/
Dcache.c98 size_t line_size; in arch_dcache_flush_range() local
103 line_size = arch_dcache_line_size_get(); in arch_dcache_flush_range()
104 addr &= ~(line_size - 1); in arch_dcache_flush_range()
108 addr += line_size; in arch_dcache_flush_range()
116 size_t line_size; in arch_dcache_invd_range() local
120 line_size = arch_dcache_line_size_get(); in arch_dcache_invd_range()
126 if (end_addr & (line_size - 1)) { in arch_dcache_invd_range()
127 end_addr &= ~(line_size - 1); in arch_dcache_invd_range()
131 if (addr & (line_size - 1)) { in arch_dcache_invd_range()
132 addr &= ~(line_size - 1); in arch_dcache_invd_range()
[all …]
/Zephyr-latest/include/zephyr/arch/arm64/
Dcache.h79 size_t line_size; in arm64_dcache_range() local
87 line_size = arch_dcache_line_size_get(); in arm64_dcache_range()
106 if (end_addr & (line_size - 1)) { in arm64_dcache_range()
107 end_addr &= ~(line_size - 1); in arm64_dcache_range()
111 if (start_addr & (line_size - 1)) { in arm64_dcache_range()
112 start_addr &= ~(line_size - 1); in arm64_dcache_range()
117 start_addr += line_size; in arm64_dcache_range()
122 start_addr &= ~(line_size - 1); in arm64_dcache_range()
133 start_addr += line_size; in arm64_dcache_range()
/Zephyr-latest/arch/arc/core/
Dcache.c70 size_t line_size = sys_cache_data_line_size_get(); in arch_dcache_flush_range() local
75 if (!dcache_available() || (size == 0U) || line_size == 0U) { in arch_dcache_flush_range()
81 start_addr = ROUND_DOWN(start_addr, line_size); in arch_dcache_flush_range()
97 start_addr += line_size; in arch_dcache_flush_range()
107 size_t line_size = sys_cache_data_line_size_get(); in arch_dcache_invd_range() local
112 if (!dcache_available() || (size == 0U) || line_size == 0U) { in arch_dcache_invd_range()
116 start_addr = ROUND_DOWN(start_addr, line_size); in arch_dcache_invd_range()
125 start_addr += line_size; in arch_dcache_invd_range()
/Zephyr-latest/arch/x86/core/
Dcache.c90 size_t line_size = sys_cache_data_line_size_get(); in arch_dcache_flush_range() local
94 if (line_size == 0U) { in arch_dcache_flush_range()
98 end = ROUND_UP(end, line_size); in arch_dcache_flush_range()
100 for (; start < end; start += line_size) { in arch_dcache_flush_range()
/Zephyr-latest/drivers/cache/
Dcache_andes_l2.h57 uint8_t line_size; member
124 sets = l2_cache_cfg.size / (ways * l2_cache_cfg.line_size); in nds_l2_cache_all()
131 index += l2_cache_cfg.line_size; in nds_l2_cache_all()
170 align_addr = ROUND_DOWN(addr, l2_cache_cfg.line_size); in nds_l2_cache_range()
176 align_addr += l2_cache_cfg.line_size; in nds_l2_cache_range()
209 static ALWAYS_INLINE int nds_l2_cache_init(uint8_t line_size) in nds_l2_cache_init() argument
236 l2_cache_cfg.line_size = line_size; in nds_l2_cache_init()
Dcache_andes.c80 static ALWAYS_INLINE int nds_cctl_range_operations(void *addr, size_t size, int line_size, int cmd) in nds_cctl_range_operations() argument
86 align_addr = ROUND_DOWN(addr, line_size); in nds_cctl_range_operations()
96 align_addr += line_size; in nds_cctl_range_operations()
102 align_addr += line_size; in nds_cctl_range_operations()
519 unsigned long line_size; in andes_cache_init() local
522 line_size = (csr_read(NDS_MICM_CFG) >> MICM_CFG_ISZ_SHIFT) & BIT_MASK(3); in andes_cache_init()
524 if (line_size == 0) { in andes_cache_init()
530 if (line_size <= 5) { in andes_cache_init()
531 cache_cfg.instr_line_size = 1 << (line_size + 2); in andes_cache_init()
547 line_size = (csr_read(NDS_MDCM_CFG) >> MDCM_CFG_DSZ_SHIFT) & BIT_MASK(3); in andes_cache_init()
[all …]