Lines Matching +full:- +full:- +full:target +full:- +full:list
1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: rsdump - AML debugger support for resource structures.
56 * PARAMETERS: resource_list - Pointer to a resource descriptor list
77 /* Walk list and dump all resource descriptors (END_TAG terminates) */ in acpi_rs_dump_resource_list()
85 type = resource_list->type; in acpi_rs_dump_resource_list()
88 ("Invalid descriptor type (%X) in resource list\n", in acpi_rs_dump_resource_list()
89 resource_list->type); in acpi_rs_dump_resource_list()
91 } else if (!resource_list->type) { in acpi_rs_dump_resource_list()
98 if (!resource_list->length) { in acpi_rs_dump_resource_list()
100 ("Invalid zero length descriptor in resource list\n"); in acpi_rs_dump_resource_list()
107 acpi_rs_dump_descriptor(&resource_list->data, in acpi_rs_dump_resource_list()
109 [resource_list->data. in acpi_rs_dump_resource_list()
112 acpi_rs_dump_descriptor(&resource_list->data, in acpi_rs_dump_resource_list()
130 * PARAMETERS: route_table - Pointer to the routing table to dump.
155 for (count = 0; prt_element->length; count++) { in acpi_rs_dump_irq_list()
161 prt_element, prt_element->length); in acpi_rs_dump_irq_list()
170 * PARAMETERS: resource - Buffer containing the resource
171 * table - Table entry to decode the resource
182 u8 *target = NULL; in acpi_rs_dump_descriptor() local
189 count = table->offset; in acpi_rs_dump_descriptor()
192 previous_target = target; in acpi_rs_dump_descriptor()
193 target = ACPI_ADD_PTR(u8, resource, table->offset); in acpi_rs_dump_descriptor()
194 name = table->name; in acpi_rs_dump_descriptor()
196 switch (table->opcode) { in acpi_rs_dump_descriptor()
201 if (table->name) { in acpi_rs_dump_descriptor()
211 ACPI_CAST_PTR(char, table->pointer)); in acpi_rs_dump_descriptor()
216 acpi_rs_out_string(name, ACPI_CAST_PTR(char, target)); in acpi_rs_dump_descriptor()
223 if (table->pointer) { in acpi_rs_dump_descriptor()
225 table->pointer[*target]); in acpi_rs_dump_descriptor()
227 acpi_rs_out_integer8(name, ACPI_GET8(target)); in acpi_rs_dump_descriptor()
233 acpi_rs_out_integer16(name, ACPI_GET16(target)); in acpi_rs_dump_descriptor()
238 acpi_rs_out_integer32(name, ACPI_GET32(target)); in acpi_rs_dump_descriptor()
243 acpi_rs_out_integer64(name, ACPI_GET64(target)); in acpi_rs_dump_descriptor()
246 /* Flags: 1-bit and 2-bit flags supported */ in acpi_rs_dump_descriptor()
251 table->pointer[*target & 0x01]); in acpi_rs_dump_descriptor()
257 table->pointer[*target & 0x03]); in acpi_rs_dump_descriptor()
263 table->pointer[*target & 0x07]); in acpi_rs_dump_descriptor()
268 acpi_rs_out_integer8(name, (ACPI_GET8(target) & 0x3F)); in acpi_rs_dump_descriptor()
273 * Short byte list (single line output) for DMA and IRQ resources in acpi_rs_dump_descriptor()
274 * Note: The list length is obtained from the previous table entry in acpi_rs_dump_descriptor()
279 target); in acpi_rs_dump_descriptor()
285 * Short byte list (single line output) for GPIO vendor data in acpi_rs_dump_descriptor()
286 * Note: The list length is obtained from the previous table entry in acpi_rs_dump_descriptor()
293 (u8, target))); in acpi_rs_dump_descriptor()
299 * Long byte list for Vendor resource data in acpi_rs_dump_descriptor()
300 * Note: The list length is obtained from the previous table entry in acpi_rs_dump_descriptor()
305 target); in acpi_rs_dump_descriptor()
311 * Dword list for Extended Interrupt resources in acpi_rs_dump_descriptor()
312 * Note: The list length is obtained from the previous table entry in acpi_rs_dump_descriptor()
317 target)); in acpi_rs_dump_descriptor()
323 * Word list for GPIO Pin Table in acpi_rs_dump_descriptor()
324 * Note: The list length is obtained from the previous table entry in acpi_rs_dump_descriptor()
329 (u16, target))); in acpi_rs_dump_descriptor()
339 target)); in acpi_rs_dump_descriptor()
349 target)); in acpi_rs_dump_descriptor()
359 target)); in acpi_rs_dump_descriptor()
369 target)); in acpi_rs_dump_descriptor()
375 table->opcode); in acpi_rs_dump_descriptor()
380 count--; in acpi_rs_dump_descriptor()
388 * PARAMETERS: resource_source - Pointer to a Resource Source struct
402 if (resource_source->index == 0xFF) { in acpi_rs_dump_resource_source()
406 acpi_rs_out_integer8("Resource Source Index", resource_source->index); in acpi_rs_dump_resource_source()
409 resource_source->string_ptr ? in acpi_rs_dump_resource_source()
410 resource_source->string_ptr : "[Not Specified]"); in acpi_rs_dump_resource_source()
417 * PARAMETERS: title - Title of the dumped resource field
418 * resource_label - Pointer to a Resource Label struct
433 resource_label->string_ptr ? in acpi_rs_dump_resource_label()
434 resource_label->string_ptr : "[Not Specified]"); in acpi_rs_dump_resource_label()
441 * PARAMETERS: resource - Pointer to an internal resource descriptor
454 /* Decode the type-specific flags */ in acpi_rs_dump_address_common()
456 switch (resource->address.resource_type) { in acpi_rs_dump_address_common()
475 (u8) resource->address.resource_type); in acpi_rs_dump_address_common()
488 * PARAMETERS: title - Name of the resource field
489 * value - Value of the resource field
539 * FUNCTION: acpi_rs_dump*List
541 * PARAMETERS: length - Number of elements in the list
542 * data - Start of the list