Home
last modified time | relevance | path

Searched refs:cache_type (Results 1 – 20 of 20) sorted by relevance

/arch/openrisc/mm/
A Dcache.c23 bool cpu_cache_is_present(const unsigned int cache_type) in cpu_cache_is_present() argument
26 unsigned long mask = SPR_UPR_UP | cache_type; in cpu_cache_is_present()
32 const unsigned short reg, const unsigned int cache_type) in cache_loop() argument
34 if (!cpu_cache_is_present(cache_type)) in cache_loop()
44 const unsigned int cache_type) in cache_loop_page() argument
51 cache_loop(paddr, end, reg, cache_type); in cache_loop_page()
/arch/sh/mm/
A Dcache-debugfs.c19 enum cache_type { enum
27 unsigned int cache_type = (unsigned int)file->private; in cache_debugfs_show() local
47 if (cache_type == CACHE_TYPE_DCACHE) { in cache_debugfs_show()
61 if ((ccr & CCR_CACHE_ORA) && cache_type == CACHE_TYPE_DCACHE) in cache_debugfs_show()
/arch/s390/kernel/
A Dcache.c60 static const enum cache_type cache_type_map[] = {
88 static inline enum cache_type get_cache_type(struct cache_info *ci, int level) in get_cache_type()
104 enum cache_type type, unsigned int level, int cpu) in ci_leaf_init()
130 enum cache_type ctype; in init_cache_level()
153 enum cache_type ctype; in populate_cache_leaves()
/arch/riscv/include/asm/
A Dcacheinfo.h17 uintptr_t get_cache_size(u32 level, enum cache_type type);
18 uintptr_t get_cache_geometry(u32 level, enum cache_type type);
/arch/riscv/kernel/
A Dcacheinfo.c27 static struct cacheinfo *get_cacheinfo(u32 level, enum cache_type type) in get_cacheinfo()
51 uintptr_t get_cache_size(u32 level, enum cache_type type) in get_cache_size()
58 uintptr_t get_cache_geometry(u32 level, enum cache_type type) in get_cache_geometry()
68 enum cache_type type, unsigned int level) in ci_leaf_init()
/arch/arm64/kernel/
A Dcacheinfo.c24 static inline enum cache_type get_cache_type(int level) in get_cache_type()
35 enum cache_type type, unsigned int level) in ci_leaf_init()
102 enum cache_type type; in populate_cache_leaves()
/arch/arm/kernel/
A Dcacheinfo.c64 static inline enum cache_type get_cache_type(int level) in get_cache_type()
77 enum cache_type type, unsigned int level) in ci_leaf_init()
152 enum cache_type type; in populate_cache_leaves()
/arch/openrisc/include/asm/
A Dcpuinfo.h43 extern bool cpu_cache_is_present(const unsigned int cache_type);
/arch/xtensa/kernel/
A Dperf_event.c115 unsigned int cache_type, cache_op, cache_result; in xtensa_pmu_cache_event() local
118 cache_type = (config >> 0) & 0xff; in xtensa_pmu_cache_event()
122 if (cache_type >= ARRAY_SIZE(xtensa_cache_ctl) || in xtensa_pmu_cache_event()
127 ret = xtensa_cache_ctl[cache_type][cache_op][cache_result]; in xtensa_pmu_cache_event()
/arch/x86/kernel/cpu/
A Dtopology_common.c64 u32 cache_type : 5, in parse_num_cores_legacy() member
73 if (!eax.cache_type) in parse_num_cores_legacy()
A Dcacheinfo.c82 static const enum cache_type cache_type_map[] = {
/arch/arc/kernel/
A Dperf_event.c303 unsigned int cache_type, cache_op, cache_result; in arc_pmu_cache_event() local
306 cache_type = (config >> 0) & 0xff; in arc_pmu_cache_event()
309 if (cache_type >= PERF_COUNT_HW_CACHE_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()
/arch/loongarch/kernel/
A Dperf_event.c603 unsigned int cache_type, cache_op, cache_result; in loongarch_pmu_map_cache_event() local
606 cache_type = (config >> 0) & 0xff; in loongarch_pmu_map_cache_event()
607 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in loongarch_pmu_map_cache_event()
619 [cache_type] in loongarch_pmu_map_cache_event()
/arch/powerpc/kernel/
A Dcacheinfo.c746 const char *cache_type; in cacheinfo_create_index_opt_attrs() local
756 cache_type = cache_type_string(cache); in cacheinfo_create_index_opt_attrs()
774 cache_type, rc); in cacheinfo_create_index_opt_attrs()
779 attr->attr.name, cache->ofnode, cache_type); in cacheinfo_create_index_opt_attrs()
/arch/riscv/kvm/
A Dvcpu_pmu.c95 unsigned int cache_type, cache_op, cache_result; in kvm_pmu_get_perf_event_cache_config() local
98 cache_type = (sbi_event_code & SBI_PMU_EVENT_CACHE_ID_CODE_MASK) >> in kvm_pmu_get_perf_event_cache_config()
104 if (cache_type >= PERF_COUNT_HW_CACHE_MAX || in kvm_pmu_get_perf_event_cache_config()
109 config = cache_type | (cache_op << 8) | (cache_result << 16); in kvm_pmu_get_perf_event_cache_config()
/arch/openrisc/kernel/
A Dcacheinfo.c17 static inline void ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, in ci_leaf_init()
/arch/csky/kernel/
A Dperf_event.c952 unsigned int cache_type, cache_op, cache_result; in csky_pmu_cache_event() local
954 cache_type = (config >> 0) & 0xff; in csky_pmu_cache_event()
958 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in csky_pmu_cache_event()
965 return csky_pmu_cache_map[cache_type][cache_op][cache_result]; in csky_pmu_cache_event()
/arch/x86/events/
A Dcore.c377 unsigned int cache_type, cache_op, cache_result; in set_ext_hw_attr() local
382 cache_type = (config >> 0) & 0xff; in set_ext_hw_attr()
383 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in set_ext_hw_attr()
385 cache_type = array_index_nospec(cache_type, PERF_COUNT_HW_CACHE_MAX); in set_ext_hw_attr()
397 val = hybrid_var(event->pmu, hw_cache_event_ids)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
405 attr->config1 = hybrid_var(event->pmu, hw_cache_extra_regs)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
/arch/mips/kernel/
A Dperf_event_mipsxx.c733 unsigned int cache_type, cache_op, cache_result; in mipspmu_map_cache_event() local
736 cache_type = (config >> 0) & 0xff; in mipspmu_map_cache_event()
737 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in mipspmu_map_cache_event()
749 [cache_type] in mipspmu_map_cache_event()
/arch/sparc/kernel/
A Dperf_event.c1198 unsigned int cache_type, cache_op, cache_result; in sparc_map_cache_event() local
1204 cache_type = (config >> 0) & 0xff; in sparc_map_cache_event()
1205 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in sparc_map_cache_event()
1216 pmap = &((*sparc_pmu->cache_map)[cache_type][cache_op][cache_result]); in sparc_map_cache_event()

Completed in 51 milliseconds