| /arch/openrisc/mm/ |
| A D | cache.c | 23 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 D | cache-debugfs.c | 19 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 D | cache.c | 60 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 D | cacheinfo.h | 17 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 D | cacheinfo.c | 27 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 D | cacheinfo.c | 24 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 D | cacheinfo.c | 64 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 D | cpuinfo.h | 43 extern bool cpu_cache_is_present(const unsigned int cache_type);
|
| /arch/xtensa/kernel/ |
| A D | perf_event.c | 115 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 D | topology_common.c | 64 u32 cache_type : 5, in parse_num_cores_legacy() member 73 if (!eax.cache_type) in parse_num_cores_legacy()
|
| A D | cacheinfo.c | 82 static const enum cache_type cache_type_map[] = {
|
| /arch/arc/kernel/ |
| A D | perf_event.c | 303 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 D | perf_event.c | 603 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 D | cacheinfo.c | 746 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 D | vcpu_pmu.c | 95 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 D | cacheinfo.c | 17 static inline void ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, in ci_leaf_init()
|
| /arch/csky/kernel/ |
| A D | perf_event.c | 952 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 D | core.c | 377 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 D | perf_event_mipsxx.c | 733 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 D | perf_event.c | 1198 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()
|