Lines Matching +full:cache +full:- +full:unified
1 /* SPDX-License-Identifier: GPL-2.0 */
24 * struct cacheinfo - represent a cache leaf node
25 * @id: This cache's id. It is unique among caches with the same (type, level).
26 * @type: type of the cache - data, inst or unified
27 * @level: represents the hierarchy in the multi-level cache
28 * @coherency_line_size: size of each cache line usually representing
30 * @number_of_sets: total number of sets, a set is a collection of cache
33 * block can be placed in the cache
34 * @physical_line_partition: number of physical cache lines sharing the
36 * @size: Total size of the cache
38 * this cache node
39 * @attributes: bitfield representing various cache attributes
41 * structures represent a single hardware cache instance.
45 * cache design
48 * keeping, the remaining members form the core properties of the cache
83 * Helpers to make sure "func" is executed on the cpu whose cache
124 * Get the id of the cache associated with @cpu at level @level.
132 for (i = 0; i < ci->num_leaves; i++) { in get_cpu_cacheinfo_id()
133 if (ci->info_list[i].level == level) { in get_cpu_cacheinfo_id()
134 if (ci->info_list[i].attributes & CACHE_ID) in get_cpu_cacheinfo_id()
135 return ci->info_list[i].id; in get_cpu_cacheinfo_id()
136 return -1; in get_cpu_cacheinfo_id()
140 return -1; in get_cpu_cacheinfo_id()