Lines Matching defs:table_hdr

24 static struct acpi_subtable_header *fetch_pptt_subtable(struct acpi_table_header *table_hdr,
33 if (pptt_ref + sizeof(struct acpi_subtable_header) > table_hdr->length)
36 entry = ACPI_ADD_PTR(struct acpi_subtable_header, table_hdr, pptt_ref);
41 if (pptt_ref + entry->length > table_hdr->length)
47 static struct acpi_pptt_processor *fetch_pptt_node(struct acpi_table_header *table_hdr,
50 return (struct acpi_pptt_processor *)fetch_pptt_subtable(table_hdr, pptt_ref);
53 static struct acpi_pptt_cache *fetch_pptt_cache(struct acpi_table_header *table_hdr,
56 return (struct acpi_pptt_cache *)fetch_pptt_subtable(table_hdr, pptt_ref);
59 static struct acpi_subtable_header *acpi_get_pptt_resource(struct acpi_table_header *table_hdr,
71 return fetch_pptt_subtable(table_hdr, *ref);
82 * @table_hdr: Pointer to the head of the PPTT table
102 static unsigned int acpi_pptt_walk_cache(struct acpi_table_header *table_hdr,
119 cache = fetch_pptt_cache(table_hdr, cache->next_level_of_cache);
141 cache = fetch_pptt_cache(table_hdr, cache->next_level_of_cache);
147 acpi_find_cache_level(struct acpi_table_header *table_hdr,
159 while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) {
162 local_level = acpi_pptt_walk_cache(table_hdr, *starting_level,
182 * @table_hdr: Pointer to the head of the PPTT table
195 static void acpi_count_levels(struct acpi_table_header *table_hdr,
200 acpi_find_cache_level(table_hdr, cpu_node, levels, split_levels, 0, 0);
201 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent);
207 * @table_hdr: Pointer to the head of the PPTT table
216 static int acpi_pptt_leaf_node(struct acpi_table_header *table_hdr,
225 if (table_hdr->revision > 1)
228 table_end = (unsigned long)table_hdr + table_hdr->length;
229 node_entry = ACPI_PTR_DIFF(node, table_hdr);
230 entry = ACPI_ADD_PTR(struct acpi_subtable_header, table_hdr,
250 * @table_hdr: Pointer to the head of the PPTT table
262 static struct acpi_pptt_processor *acpi_find_processor_node(struct acpi_table_header *table_hdr,
270 table_end = (unsigned long)table_hdr + table_hdr->length;
271 entry = ACPI_ADD_PTR(struct acpi_subtable_header, table_hdr,
285 acpi_pptt_leaf_node(table_hdr, cpu_node)) {
318 static struct acpi_pptt_cache *acpi_find_cache_node(struct acpi_table_header *table_hdr,
332 cpu_node = acpi_find_processor_node(table_hdr, acpi_cpu_id);
335 found = acpi_find_cache_level(table_hdr, cpu_node,
338 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent);
446 static bool flag_identical(struct acpi_table_header *table_hdr,
452 if (table_hdr->revision < 2)
457 next = fetch_pptt_node(table_hdr, cpu->parent);
468 static struct acpi_pptt_processor *acpi_find_processor_tag(struct acpi_table_header *table_hdr,
477 if (flag_identical(table_hdr, cpu))
482 prev_node = fetch_pptt_node(table_hdr, cpu->parent);