Home
last modified time | relevance | path

Searched refs:cache_op (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.3-rc2/arch/loongarch/include/asm/
A Dcacheflush.h55 #define cache_op(op, addr) \ macro
65 cache_op(Index_Writeback_Inv_LEAF0, addr); in flush_cache_line()
68 cache_op(Index_Writeback_Inv_LEAF1, addr); in flush_cache_line()
71 cache_op(Index_Writeback_Inv_LEAF2, addr); in flush_cache_line()
74 cache_op(Index_Writeback_Inv_LEAF3, addr); in flush_cache_line()
77 cache_op(Index_Writeback_Inv_LEAF4, addr); in flush_cache_line()
80 cache_op(Index_Writeback_Inv_LEAF5, addr); in flush_cache_line()
/linux-6.3-rc2/arch/mips/include/asm/
A Dr4kcache.h53 #define cache_op(op, addr) \ macro
58 cache_op(Index_Invalidate_I, addr); in flush_icache_line_indexed()
63 cache_op(Index_Writeback_Inv_D, addr); in flush_dcache_line_indexed()
68 cache_op(Index_Writeback_Inv_SD, addr); in flush_scache_line_indexed()
79 cache_op(Hit_Invalidate_I, addr); in flush_icache_line()
86 cache_op(Hit_Writeback_Inv_D, addr); in flush_dcache_line()
91 cache_op(Hit_Invalidate_D, addr); in invalidate_dcache_line()
96 cache_op(Hit_Invalidate_SD, addr); in invalidate_scache_line()
101 cache_op(Hit_Writeback_Inv_SD, addr); in flush_scache_line()
188 cache_op(Page_Invalidate_T, addr); in invalidate_tcache_page()
[all …]
A Dbmips.h98 cache_op(Index_Load_Tag_S, ZSCM_REG_BASE + offset); in bmips_read_zscm_reg()
119 cache_op(Index_Store_Tag_S, ZSCM_REG_BASE + offset); in bmips_write_zscm_reg()
/linux-6.3-rc2/arch/csky/mm/
A Ddma-mapping.c14 static inline void cache_op(phys_addr_t paddr, size_t size, in cache_op() function
55 cache_op(page_to_phys(page), size, dma_wbinv_set_zero_range); in arch_dma_prep_coherent()
63 cache_op(paddr, size, dma_wb_range); in arch_sync_dma_for_device()
67 cache_op(paddr, size, dma_wbinv_range); in arch_sync_dma_for_device()
82 cache_op(paddr, size, dma_inv_range); in arch_sync_dma_for_cpu()
/linux-6.3-rc2/arch/mips/mm/
A Dsc-rm7k.c99 cache_op(Page_Invalidate_T, start); in blast_rm7k_tcache()
117 cache_op(Index_Store_Tag_T, CKSEG0ADDR(i)); in __rm7k_tc_enable()
143 cache_op(Index_Store_Tag_SD, CKSEG0ADDR(i)); in __rm7k_sc_enable()
210 cache_op(Index_Store_Tag_T, begin); in __probe_tcache()
215 cache_op(Index_Load_Tag_T, addr); in __probe_tcache()
A Dsc-r5k.c30 cache_op(R5K_Page_Invalidate_S, start); in blast_r5000_scache()
54 cache_op(R5K_Page_Invalidate_S, a); in r5k_dma_cache_inv_sc()
A Dsc-mips.c40 cache_op(Hit_Writeback_Inv_SD, addr & almask); in mips_sc_inv()
41 cache_op(Hit_Writeback_Inv_SD, (addr + size - 1) & almask); in mips_sc_inv()
A Dc-r4k.c1527 cache_op(Index_Store_Tag_I, begin); in probe_scache()
1528 cache_op(Index_Store_Tag_D, begin); in probe_scache()
1529 cache_op(Index_Store_Tag_SD, begin); in probe_scache()
1534 cache_op(Index_Load_Tag_SD, addr); in probe_scache()
A Duasm-mips.c68 [insn_cache] = {M(cache_op, 0, 0, 0, 0, 0), RS | RT | SIMM},
/linux-6.3-rc2/arch/mips/kernel/
A Dspram.c54 cache_op(Index_Store_Tag_I, CKSEG0|offset); in ispram_store_tag()
70 cache_op(Index_Load_Tag_I, CKSEG0 | offset); in ispram_load_tag()
89 cache_op(Index_Store_Tag_D, CKSEG0 | offset); in dspram_store_tag()
103 cache_op(Index_Load_Tag_D, CKSEG0 | offset); in dspram_load_tag()
A Dmips-mt.c208 cache_op(Index_Load_Tag_D, INDEX_8); in mips_mt_set_cpuoptions()
218 cache_op(Index_Store_Tag_D, INDEX_8); in mips_mt_set_cpuoptions()
223 cache_op(Index_Store_Tag_D, INDEX_0); in mips_mt_set_cpuoptions()
A Dperf_event_mipsxx.c733 unsigned int cache_type, cache_op, cache_result; in mipspmu_map_cache_event() local
740 cache_op = (config >> 8) & 0xff; in mipspmu_map_cache_event()
741 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in mipspmu_map_cache_event()
750 [cache_op] in mipspmu_map_cache_event()
/linux-6.3-rc2/arch/mips/sgi-ip22/
A Dip28-berr.c74 cache_op(Index_Load_Tag_S, addr); in save_cache_tags()
77 cache_op(Index_Load_Tag_S, addr | 1L); in save_cache_tags()
92 cache_op(Index_Load_Tag_D, addr); in save_cache_tags()
95 cache_op(Index_Load_Tag_D, addr | 1L); in save_cache_tags()
108 cache_op(Index_Load_Tag_I, addr); in save_cache_tags()
111 cache_op(Index_Load_Tag_I, addr | 1L); in save_cache_tags()
/linux-6.3-rc2/arch/xtensa/kernel/
A Dperf_event.c106 unsigned int cache_type, cache_op, cache_result; in xtensa_pmu_cache_event() local
110 cache_op = (config >> 8) & 0xff; in xtensa_pmu_cache_event()
114 cache_op >= C(OP_MAX) || in xtensa_pmu_cache_event()
118 ret = xtensa_cache_ctl[cache_type][cache_op][cache_result]; in xtensa_pmu_cache_event()
/linux-6.3-rc2/arch/arc/kernel/
A Dperf_event.c303 unsigned int cache_type, cache_op, cache_result; in arc_pmu_cache_event() local
307 cache_op = (config >> 8) & 0xff; in arc_pmu_cache_event()
311 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in arc_pmu_cache_event()
316 ret = arc_pmu_cache_map[cache_type][cache_op][cache_result]; in arc_pmu_cache_event()
322 cache_type, cache_op, cache_result, ret, in arc_pmu_cache_event()
/linux-6.3-rc2/arch/riscv/kvm/
A Dvcpu_pmu.c94 unsigned int cache_type, cache_op, cache_result; in kvm_pmu_get_perf_event_cache_config() local
99 cache_op = (sbi_event_code & SBI_PMU_EVENT_CACHE_OP_ID_CODE_MASK) >> in kvm_pmu_get_perf_event_cache_config()
104 cache_op >= PERF_COUNT_HW_CACHE_OP_MAX || in kvm_pmu_get_perf_event_cache_config()
108 config = cache_type | (cache_op << 8) | (cache_result << 16); in kvm_pmu_get_perf_event_cache_config()
/linux-6.3-rc2/drivers/perf/
A Darm_pmu.c125 unsigned int cache_type, cache_op, cache_result, ret; in armpmu_map_cache_event() local
131 cache_op = (config >> 8) & 0xff; in armpmu_map_cache_event()
132 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in armpmu_map_cache_event()
142 ret = (int)(*cache_map)[cache_type][cache_op][cache_result]; in armpmu_map_cache_event()
A Driscv_pmu_sbi.c383 unsigned int cache_type, cache_op, cache_result, ret; in pmu_event_find_cache() local
389 cache_op = (config >> 8) & 0xff; in pmu_event_find_cache()
390 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in pmu_event_find_cache()
397 ret = pmu_cache_event_map[cache_type][cache_op][cache_result].event_idx; in pmu_event_find_cache()
/linux-6.3-rc2/arch/loongarch/kernel/
A Dperf_event.c614 unsigned int cache_type, cache_op, cache_result; in loongarch_pmu_map_cache_event() local
621 cache_op = (config >> 8) & 0xff; in loongarch_pmu_map_cache_event()
622 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in loongarch_pmu_map_cache_event()
631 [cache_op] in loongarch_pmu_map_cache_event()
/linux-6.3-rc2/arch/mips/txx9/generic/
A Dsetup.c156 cache_op(Index_Writeback_Inv_D, addr | 0); in early_flush_dcache()
157 cache_op(Index_Writeback_Inv_D, addr | 1); in early_flush_dcache()
158 cache_op(Index_Writeback_Inv_D, addr | 2); in early_flush_dcache()
159 cache_op(Index_Writeback_Inv_D, addr | 3); in early_flush_dcache()
/linux-6.3-rc2/arch/csky/kernel/
A Dperf_event.c952 unsigned int cache_type, cache_op, cache_result; in csky_pmu_cache_event() local
955 cache_op = (config >> 8) & 0xff; in csky_pmu_cache_event()
960 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in csky_pmu_cache_event()
965 return csky_pmu_cache_map[cache_type][cache_op][cache_result]; in csky_pmu_cache_event()
/linux-6.3-rc2/tools/perf/util/
A Dparse-events.c368 int cache_type = -1, cache_op = -1, cache_result = -1; in parse_events_add_cache() local
389 if (cache_op == -1) { in parse_events_add_cache()
390 cache_op = parse_aliases(str, evsel__hw_cache_op, in parse_events_add_cache()
392 if (cache_op >= 0) { in parse_events_add_cache()
393 if (!evsel__is_cache_op_valid(cache_type, cache_op)) in parse_events_add_cache()
410 if (cache_op == -1) in parse_events_add_cache()
411 cache_op = PERF_COUNT_HW_CACHE_OP_READ; in parse_events_add_cache()
420 attr.config = cache_type | (cache_op << 8) | (cache_result << 16); in parse_events_add_cache()
/linux-6.3-rc2/arch/x86/events/
A Dcore.c365 unsigned int cache_type, cache_op, cache_result; in set_ext_hw_attr() local
375 cache_op = (config >> 8) & 0xff; in set_ext_hw_attr()
376 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in set_ext_hw_attr()
378 cache_op = array_index_nospec(cache_op, PERF_COUNT_HW_CACHE_OP_MAX); in set_ext_hw_attr()
385 val = hybrid_var(event->pmu, hw_cache_event_ids)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
393 attr->config1 = hybrid_var(event->pmu, hw_cache_extra_regs)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
/linux-6.3-rc2/arch/sparc/kernel/
A Dperf_event.c1198 unsigned int cache_type, cache_op, cache_result; in sparc_map_cache_event() local
1208 cache_op = (config >> 8) & 0xff; in sparc_map_cache_event()
1209 if (cache_op >= PERF_COUNT_HW_CACHE_OP_MAX) in sparc_map_cache_event()
1216 pmap = &((*sparc_pmu->cache_map)[cache_type][cache_op][cache_result]); in sparc_map_cache_event()
/linux-6.3-rc2/arch/mips/include/uapi/asm/
A Dinst.h34 sdl_op, sdr_op, swr_op, cache_op, enumerator

Completed in 54 milliseconds

12