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 * @res: cache resource in the PPTT we want to walk
86 * @level: the requested cache level
87 * @type: the requested cache type
89 * Attempt to find a given cache level, while counting the max number
90 * of cache levels for the cache node.
92 * Given a pptt resource, verify that it is a cache node, then walk
94 * as well as checking the cache type (icache, dcache, unified). If a
96 * Once the entire cache branch has been walked return its max
99 * Return: The cache structure and the level we terminated with.
107 struct acpi_pptt_cache *cache;
112 cache = (struct acpi_pptt_cache *) res;
113 while (cache) {
117 cache->flags & ACPI_PPTT_CACHE_TYPE_VALID &&
118 acpi_pptt_match_type(cache->attributes, type)) {
119 if (*found != NULL && cache != *found)
120 pr_warn("Found duplicate cache level/type unable to determine uniqueness\n");
122 pr_debug("Found cache @ level %u\n", level);
123 *found = cache;
127 * cache node.
130 cache = fetch_pptt_cache(table_hdr, cache->next_level_of_cache);
175 * caches that exist across packages). Count the number of cache levels that
301 pr_debug("Looking for data cache\n");
304 pr_debug("Looking for instruction cache\n");
308 pr_debug("Looking for unified cache\n");
330 pr_debug("Looking for CPU %d's level %u cache type %d\n",
347 * @this_leaf: Kernel cache info structure being updated
348 * @found_cache: The PPTT node describing this cache instance
349 * @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
396 * If cache type is NOCACHE, then the cache hasn't been specified
397 * via other mechanisms. Update the type if a cache type has been
483 pr_warn_once("No PPTT table found, CPU and cache topology may be inaccurate\n");
583 * acpi_find_last_cache_level() - Determines the number of cache levels for a PE
586 * Given a logical CPU number, returns the number of levels of cache represented
588 * indicating we didn't find any cache levels.
615 * cache_setup_acpi() - Override CPU cache topology with data from the PPTT
618 * Updates the global cache info provided by cpu_get_cacheinfo()
621 * cache levels have any valid flags set. Further, a unique value is
622 * associated with each known CPU cache entry. This unique value
684 * find_acpi_cpu_cache_topology() - Determine a unique cache topology value
686 * @level: The cache level for which we would like a unique ID
688 * Determine a unique ID for each unified cache in the system