Lines Matching full:resource
2 * drivers/acpi/resource.c - ACPI device resources interpretation.
30 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid()
43 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid()
73 pr_debug("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", in acpi_dev_resource_len_valid()
79 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags()
91 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource()
100 * acpi_dev_resource_memory - Extract ACPI memory resource information.
101 * @ares: Input ACPI resource object.
102 * @res: Output generic resource object.
104 * Check if the given ACPI resource object represents a memory resource and
106 * resource object pointed to by @res.
109 * 1) false with res->flags setting to zero: not the expected resource type
110 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
111 * 3) true: valid assigned resource
113 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_memory()
147 static void acpi_dev_ioresource_flags(struct resource *res, u64 len, in acpi_dev_ioresource_flags()
164 static void acpi_dev_get_ioresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_ioresource()
173 * acpi_dev_resource_io - Extract ACPI I/O resource information.
174 * @ares: Input ACPI resource object.
175 * @res: Output generic resource object.
177 * Check if the given ACPI resource object represents an I/O resource and
179 * resource object pointed to by @res.
182 * 1) false with res->flags setting to zero: not the expected resource type
183 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
184 * 3) true: valid assigned resource
186 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_io()
221 struct resource *res = &win->res; in acpi_decode_space()
225 * 6.4.3.5 Address Space Resource Descriptors. in acpi_decode_space()
252 pr_warn("acpi resource window ([%#llx-%#llx] ignored, not CPU addressable)\n", in acpi_decode_space()
283 * @ares: Input ACPI resource object.
284 * @win: Output generic resource object.
286 * Check if the given ACPI resource object represents an address space resource
288 * resource object pointed to by @win.
291 * 1) false with win->res.flags setting to zero: not the expected resource type
293 * resource
294 * 3) true: valid assigned resource
312 * @ares: Input ACPI resource object.
313 * @win: Output generic resource object.
315 * Check if the given ACPI resource object represents an extended address space
316 * resource and if that's the case, use the information in it to populate the
317 * generic resource object pointed to by @win.
320 * 1) false with win->res.flags setting to zero: not the expected resource type
322 * resource
323 * 3) true: valid assigned resource
342 * acpi_dev_irq_flags - Determine IRQ resource flags.
391 static void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi) in acpi_dev_irqresource_disabled()
398 static void acpi_dev_get_irqresource(struct resource *res, u32 gsi, in acpi_dev_get_irqresource()
415 * resource (the legacy ISA resources). With modern ACPI 5 devices in acpi_dev_get_irqresource()
442 * acpi_dev_resource_interrupt - Extract ACPI interrupt resource information.
443 * @ares: Input ACPI resource object.
444 * @index: Index into the array of GSIs represented by the resource.
445 * @res: Output generic resource object.
447 * Check if the given ACPI resource object represents an interrupt resource
448 * and @index does not exceed the resource's interrupt count (true is returned
451 * represented by the resource and populate the generic resource object pointed
456 * 1) false with res->flags setting to zero: not the expected resource type
457 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
458 * 3) true: valid assigned resource
461 struct resource *res) in acpi_dev_resource_interrupt()
504 * acpi_dev_free_resource_list - Free resource from %acpi_dev_get_resources().
505 * @list: The head of the resource list to free.
543 struct resource *res = &win.res; in acpi_dev_process_resource()
615 * resource pointer and @preproc_data to it as arguments, for each ACPI resource
617 * resource objects if possible. If the return value of @preproc() in step (1)
618 * is different from 0, step (2) is not applied to the given ACPI resource and
622 * The resultant struct resource objects are put on the list pointed to by
642 struct resource *res = &win.res; in is_memory()
659 * The resultant struct resource objects are put on the list pointed to
675 * acpi_dev_filter_resource_type - Filter ACPI resource according to resource
677 * @ares: Input ACPI resource object.
678 * @types: Valid resource types of IORESOURCE_XXX
681 * ACPI resource objects according to resource types.
729 static int acpi_dev_consumes_res(struct acpi_device *adev, struct resource *res) in acpi_dev_consumes_res()
755 struct resource *res = context; in acpi_res_consumer_cb()
772 * @res: Resource to search for.
774 * Search the current resource settings (_CRS) of every ACPI device node
778 struct acpi_device *acpi_resource_consumer(struct resource *res) in acpi_resource_consumer()