table_hdr 24 drivers/acpi/pptt.c static struct acpi_subtable_header *fetch_pptt_subtable(struct acpi_table_header *table_hdr, table_hdr 33 drivers/acpi/pptt.c if (pptt_ref + sizeof(struct acpi_subtable_header) > table_hdr->length) table_hdr 36 drivers/acpi/pptt.c entry = ACPI_ADD_PTR(struct acpi_subtable_header, table_hdr, pptt_ref); table_hdr 41 drivers/acpi/pptt.c if (pptt_ref + entry->length > table_hdr->length) table_hdr 47 drivers/acpi/pptt.c static struct acpi_pptt_processor *fetch_pptt_node(struct acpi_table_header *table_hdr, table_hdr 50 drivers/acpi/pptt.c return (struct acpi_pptt_processor *)fetch_pptt_subtable(table_hdr, pptt_ref); table_hdr 53 drivers/acpi/pptt.c static struct acpi_pptt_cache *fetch_pptt_cache(struct acpi_table_header *table_hdr, table_hdr 56 drivers/acpi/pptt.c return (struct acpi_pptt_cache *)fetch_pptt_subtable(table_hdr, pptt_ref); table_hdr 59 drivers/acpi/pptt.c static struct acpi_subtable_header *acpi_get_pptt_resource(struct acpi_table_header *table_hdr, table_hdr 71 drivers/acpi/pptt.c return fetch_pptt_subtable(table_hdr, *ref); table_hdr 101 drivers/acpi/pptt.c static int acpi_pptt_walk_cache(struct acpi_table_header *table_hdr, table_hdr 130 drivers/acpi/pptt.c cache = fetch_pptt_cache(table_hdr, cache->next_level_of_cache); table_hdr 135 drivers/acpi/pptt.c static struct acpi_pptt_cache *acpi_find_cache_level(struct acpi_table_header *table_hdr, table_hdr 147 drivers/acpi/pptt.c while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) { table_hdr 150 drivers/acpi/pptt.c local_level = acpi_pptt_walk_cache(table_hdr, *starting_level, table_hdr 179 drivers/acpi/pptt.c static int acpi_count_levels(struct acpi_table_header *table_hdr, table_hdr 185 drivers/acpi/pptt.c acpi_find_cache_level(table_hdr, cpu_node, &total_levels, 0, 0); table_hdr 186 drivers/acpi/pptt.c cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); table_hdr 203 drivers/acpi/pptt.c static int acpi_pptt_leaf_node(struct acpi_table_header *table_hdr, table_hdr 212 drivers/acpi/pptt.c if (table_hdr->revision > 1) table_hdr 215 drivers/acpi/pptt.c table_end = (unsigned long)table_hdr + table_hdr->length; table_hdr 216 drivers/acpi/pptt.c node_entry = ACPI_PTR_DIFF(node, table_hdr); table_hdr 217 drivers/acpi/pptt.c entry = ACPI_ADD_PTR(struct acpi_subtable_header, table_hdr, table_hdr 249 drivers/acpi/pptt.c static struct acpi_pptt_processor *acpi_find_processor_node(struct acpi_table_header *table_hdr, table_hdr 257 drivers/acpi/pptt.c table_end = (unsigned long)table_hdr + table_hdr->length; table_hdr 258 drivers/acpi/pptt.c entry = ACPI_ADD_PTR(struct acpi_subtable_header, table_hdr, table_hdr 272 drivers/acpi/pptt.c acpi_pptt_leaf_node(table_hdr, cpu_node)) { table_hdr 283 drivers/acpi/pptt.c static int acpi_find_cache_levels(struct acpi_table_header *table_hdr, table_hdr 289 drivers/acpi/pptt.c cpu = acpi_find_processor_node(table_hdr, acpi_cpu_id); table_hdr 291 drivers/acpi/pptt.c number_of_levels = acpi_count_levels(table_hdr, cpu); table_hdr 318 drivers/acpi/pptt.c static struct acpi_pptt_cache *acpi_find_cache_node(struct acpi_table_header *table_hdr, table_hdr 332 drivers/acpi/pptt.c cpu_node = acpi_find_processor_node(table_hdr, acpi_cpu_id); table_hdr 335 drivers/acpi/pptt.c found = acpi_find_cache_level(table_hdr, cpu_node, table_hdr 338 drivers/acpi/pptt.c cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); table_hdr 435 drivers/acpi/pptt.c static bool flag_identical(struct acpi_table_header *table_hdr, table_hdr 441 drivers/acpi/pptt.c if (table_hdr->revision < 2) table_hdr 446 drivers/acpi/pptt.c next = fetch_pptt_node(table_hdr, cpu->parent); table_hdr 457 drivers/acpi/pptt.c static struct acpi_pptt_processor *acpi_find_processor_tag(struct acpi_table_header *table_hdr, table_hdr 466 drivers/acpi/pptt.c if (flag_identical(table_hdr, cpu)) table_hdr 471 drivers/acpi/pptt.c prev_node = fetch_pptt_node(table_hdr, cpu->parent);