Home
last modified time | relevance | path

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

/arch/nds32/kernel/
Dcacheinfo.c9 enum cache_type type, unsigned int level) in ci_leaf_init()
11 char cache_type = (type & CACHE_TYPE_INST ? ICACHE : DCACHE); in ci_leaf_init() local
15 this_leaf->coherency_line_size = CACHE_LINE_SIZE(cache_type); in ci_leaf_init()
16 this_leaf->number_of_sets = CACHE_SET(cache_type); in ci_leaf_init()
17 this_leaf->ways_of_associativity = CACHE_WAY(cache_type); in ci_leaf_init()
Dperf_event_cpu.c46 unsigned int cache_type, cache_op, cache_result, ret; in nds32_pmu_map_cache_event() local
48 cache_type = (config >> 0) & 0xff; in nds32_pmu_map_cache_event()
49 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in nds32_pmu_map_cache_event()
60 ret = (int)(*cache_map)[cache_type][cache_op][cache_result]; in nds32_pmu_map_cache_event()
/arch/sh/mm/
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/riscv/include/asm/
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/s390/kernel/
Dcache.c61 static const enum cache_type cache_type_map[] = {
91 static inline enum cache_type get_cache_type(struct cache_info *ci, int level) in get_cache_type()
107 enum cache_type type, unsigned int level, int cpu) in ci_leaf_init()
133 enum cache_type ctype; in init_cache_level()
158 enum cache_type ctype; in populate_cache_leaves()
/arch/arm64/kernel/
Dcacheinfo.c29 static inline enum cache_type get_cache_type(int level) in get_cache_type()
40 enum cache_type type, unsigned int level) in ci_leaf_init()
88 enum cache_type type; in populate_cache_leaves()
/arch/riscv/kernel/
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()
67 static void ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, in ci_leaf_init()
/arch/ia64/kernel/
Dsal.c240 u64 vector, cache_type = 3; in check_sal_cache_flush() local
258 SAL_CALL(isrv, SAL_CACHE_FLUSH, cache_type, 0, 0, 0, 0, 0, 0); in check_sal_cache_flush()
279 ia64_sal_cache_flush (u64 cache_type) in ia64_sal_cache_flush() argument
290 rc = ia64_pal_cache_flush(cache_type, in ia64_sal_cache_flush()
296 SAL_CALL(isrv, SAL_CACHE_FLUSH, cache_type, 0, 0, 0, 0, 0, 0); in ia64_sal_cache_flush()
/arch/ia64/include/asm/
Dpal.h286 u64 cache_type : 8, /* 7-0 cache type */ member
299 u64 cache_type : 8, /* 7-0 cache type */ member
329 #define pclid_read_cache_type pclid_info_read.cache_type
338 #define pclid_write_cache_type pclid_info_write.cache_type
909 ia64_pal_cache_config_info (u64 cache_level, u64 cache_type, pal_cache_config_info_t *conf) in ia64_pal_cache_config_info() argument
913 PAL_CALL(iprv, PAL_CACHE_INFO, cache_level, cache_type, 0); in ia64_pal_cache_config_info()
927 ia64_pal_cache_prot_info (u64 cache_level, u64 cache_type, pal_cache_protection_info_t *prot) in ia64_pal_cache_prot_info() argument
931 PAL_CALL(iprv, PAL_CACHE_PROT_INFO, cache_level, cache_type, 0); in ia64_pal_cache_prot_info()
950 ia64_pal_cache_flush (u64 cache_type, u64 invalidate, u64 *progress, u64 *vector) in ia64_pal_cache_flush() argument
953 PAL_CALL(iprv, PAL_CACHE_FLUSH, cache_type, invalidate, *progress); in ia64_pal_cache_flush()
[all …]
Dsal.h670 extern s64 ia64_sal_cache_flush (u64 cache_type);
/arch/xtensa/kernel/
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/arc/kernel/
Dperf_event.c141 unsigned int cache_type, cache_op, cache_result; in arc_pmu_cache_event() local
144 cache_type = (config >> 0) & 0xff; in arc_pmu_cache_event()
147 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in arc_pmu_cache_event()
154 ret = arc_pmu_cache_map[cache_type][cache_op][cache_result]; in arc_pmu_cache_event()
160 cache_type, cache_op, cache_result, ret, in arc_pmu_cache_event()
/arch/powerpc/kernel/
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/x86/kernel/cpu/
Dcacheinfo.c34 char cache_type; member
222 static const enum cache_type cache_type_map[] = {
810 if (only_trace && cache_table[k].cache_type != LVL_TRACE) in init_intel_cacheinfo()
812 switch (cache_table[k].cache_type) { in init_intel_cacheinfo()
/arch/csky/kernel/
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/
Dcore.c360 unsigned int cache_type, cache_op, cache_result; in set_ext_hw_attr() local
365 cache_type = (config >> 0) & 0xff; in set_ext_hw_attr()
366 if (cache_type >= PERF_COUNT_HW_CACHE_MAX) in set_ext_hw_attr()
368 cache_type = array_index_nospec(cache_type, PERF_COUNT_HW_CACHE_MAX); in set_ext_hw_attr()
380 val = hybrid_var(event->pmu, hw_cache_event_ids)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
388 attr->config1 = hybrid_var(event->pmu, hw_cache_extra_regs)[cache_type][cache_op][cache_result]; in set_ext_hw_attr()
/arch/sparc/kernel/
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()
/arch/mips/kernel/
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()