Lines Matching refs:cpu_node
148 struct acpi_pptt_processor *cpu_node, in acpi_find_cache_level() argument
159 while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) { in acpi_find_cache_level()
196 struct acpi_pptt_processor *cpu_node, in acpi_count_levels() argument
200 acpi_find_cache_level(table_hdr, cpu_node, levels, split_levels, 0, 0); in acpi_count_levels()
201 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_count_levels()
202 } while (cpu_node); in acpi_count_levels()
222 struct acpi_pptt_processor *cpu_node; in acpi_pptt_leaf_node() local
235 cpu_node = (struct acpi_pptt_processor *)entry; in acpi_pptt_leaf_node()
237 cpu_node->parent == node_entry) in acpi_pptt_leaf_node()
267 struct acpi_pptt_processor *cpu_node; in acpi_find_processor_node() local
277 cpu_node = (struct acpi_pptt_processor *)entry; in acpi_find_processor_node()
284 acpi_cpu_id == cpu_node->acpi_processor_id && in acpi_find_processor_node()
285 acpi_pptt_leaf_node(table_hdr, cpu_node)) { in acpi_find_processor_node()
326 struct acpi_pptt_processor *cpu_node; in acpi_find_cache_node() local
332 cpu_node = acpi_find_processor_node(table_hdr, acpi_cpu_id); in acpi_find_cache_node()
334 while (cpu_node && !found) { in acpi_find_cache_node()
335 found = acpi_find_cache_level(table_hdr, cpu_node, in acpi_find_cache_node()
337 *node = cpu_node; in acpi_find_cache_node()
338 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_find_cache_node()
359 struct acpi_pptt_processor *cpu_node, in update_cache_properties() argument
364 this_leaf->fw_token = cpu_node; in update_cache_properties()
428 struct acpi_pptt_processor *cpu_node = NULL; in cache_setup_acpi_cpu() local
435 &cpu_node); in cache_setup_acpi_cpu()
436 pr_debug("found = %p %p\n", found_cache, cpu_node); in cache_setup_acpi_cpu()
439 ACPI_TO_POINTER(ACPI_PTR_DIFF(cpu_node, table)), in cache_setup_acpi_cpu()
512 struct acpi_pptt_processor *cpu_node; in topology_get_acpi_cpu_tag() local
515 cpu_node = acpi_find_processor_node(table, acpi_cpu_id); in topology_get_acpi_cpu_tag()
516 if (cpu_node) { in topology_get_acpi_cpu_tag()
517 cpu_node = acpi_find_processor_tag(table, cpu_node, in topology_get_acpi_cpu_tag()
526 cpu_node->flags & ACPI_PPTT_ACPI_PROCESSOR_ID_VALID) in topology_get_acpi_cpu_tag()
527 return cpu_node->acpi_processor_id; in topology_get_acpi_cpu_tag()
528 return ACPI_PTR_DIFF(cpu_node, table); in topology_get_acpi_cpu_tag()
590 struct acpi_pptt_processor *cpu_node = NULL; in check_acpi_cpu_flag() local
598 cpu_node = acpi_find_processor_node(table, acpi_cpu_id); in check_acpi_cpu_flag()
600 if (cpu_node) in check_acpi_cpu_flag()
601 ret = (cpu_node->flags & flag) != 0; in check_acpi_cpu_flag()
624 struct acpi_pptt_processor *cpu_node; in acpi_get_cache_info() local
639 cpu_node = acpi_find_processor_node(table, acpi_cpu_id); in acpi_get_cache_info()
640 if (!cpu_node) in acpi_get_cache_info()
643 acpi_count_levels(table, cpu_node, levels, split_levels); in acpi_get_cache_info()
755 struct acpi_pptt_processor *cpu_node, *cluster_node; in find_acpi_cpu_topology_cluster() local
765 cpu_node = acpi_find_processor_node(table, acpi_cpu_id); in find_acpi_cpu_topology_cluster()
766 if (!cpu_node || !cpu_node->parent) in find_acpi_cpu_topology_cluster()
769 is_thread = cpu_node->flags & ACPI_PPTT_ACPI_PROCESSOR_IS_THREAD; in find_acpi_cpu_topology_cluster()
770 cluster_node = fetch_pptt_node(table, cpu_node->parent); in find_acpi_cpu_topology_cluster()