Lines Matching defs:cache

8  * which is optionally used to describe the processor and cache topology.
14 * the caches available at that level. Each cache structure optionally
15 * contains properties describing the cache at a given level which can be
83 * @local_level: passed res reflects this cache level
84 * @split_levels: Number of split cache levels (data/instruction).
85 * @res: cache resource in the PPTT we want to walk
87 * @level: the requested cache level
88 * @type: the requested cache type
90 * Attempt to find a given cache level, while counting the max number
91 * of cache levels for the cache node.
93 * Given a pptt resource, verify that it is a cache node, then walk
95 * as well as checking the cache type (icache, dcache, unified). If a
97 * Once the entire cache branch has been walked return its max
100 * Return: The cache structure and the level we terminated with.
109 struct acpi_pptt_cache *cache;
114 cache = (struct acpi_pptt_cache *) res;
115 while (cache) {
118 if (!(cache->flags & ACPI_PPTT_CACHE_TYPE_VALID)) {
119 cache = fetch_pptt_cache(table_hdr, cache->next_level_of_cache);
124 (acpi_pptt_match_type(cache->attributes, ACPI_PPTT_CACHE_TYPE_DATA) ||
125 acpi_pptt_match_type(cache->attributes, ACPI_PPTT_CACHE_TYPE_INSTR)))
129 acpi_pptt_match_type(cache->attributes, type)) {
130 if (*found != NULL && cache != *found)
131 pr_warn("Found duplicate cache level/type unable to determine uniqueness\n");
133 pr_debug("Found cache @ level %u\n", level);
134 *found = cache;
138 * cache node.
141 cache = fetch_pptt_cache(table_hdr, cache->next_level_of_cache);
180 * acpi_count_levels() - Given a PPTT table, and a CPU node, count the cache
181 * levels and split cache levels (data/instruction).
185 * @split_levels: Number of split cache levels (data/instruction) if
191 * caches that exist across packages). Count the number of cache levels and
192 * split cache levels (data/instruction) that exist at each level on the way
300 pr_debug("Looking for data cache\n");
303 pr_debug("Looking for instruction cache\n");
307 pr_debug("Looking for unified cache\n");
329 pr_debug("Looking for CPU %d's level %u cache type %d\n",
346 * @this_leaf: Kernel cache info structure being updated
347 * @found_cache: The PPTT node describing this cache instance
348 * @cpu_node: A unique reference to describe this cache instance
351 * The ACPI spec implies that the fields in the cache structures are used to
399 * If cache type is NOCACHE, then the cache hasn't been specified
400 * via other mechanisms. Update the type if a cache type has been
493 pr_warn_once("No PPTT table found, CPU and cache topology may be inaccurate\n");
607 * acpi_get_cache_info() - Determine the number of cache levels and
608 * split cache levels (data/instruction) and for a PE.
614 * Given a logical CPU number, returns the number of levels of cache represented
616 * indicating we didn't find any cache levels.
636 pr_debug("Cache Setup: find cache levels for CPU=%d\n", cpu);
652 * cache_setup_acpi() - Override CPU cache topology with data from the PPTT
655 * Updates the global cache info provided by cpu_get_cacheinfo()
658 * cache levels have any valid flags set. Further, a unique value is
659 * associated with each known CPU cache entry. This unique value