Lines Matching full:resource
3 * drivers/acpi/resource.c - ACPI device resources interpretation.
22 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid()
35 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid()
65 pr_debug("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", in acpi_dev_resource_len_valid()
71 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags()
83 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource()
92 * acpi_dev_resource_memory - Extract ACPI memory resource information.
93 * @ares: Input ACPI resource object.
94 * @res: Output generic resource object.
96 * Check if the given ACPI resource object represents a memory resource and
98 * resource object pointed to by @res.
101 * 1) false with res->flags setting to zero: not the expected resource type
102 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
103 * 3) true: valid assigned resource
105 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_memory()
139 static void acpi_dev_ioresource_flags(struct resource *res, u64 len, in acpi_dev_ioresource_flags()
156 static void acpi_dev_get_ioresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_ioresource()
165 * acpi_dev_resource_io - Extract ACPI I/O resource information.
166 * @ares: Input ACPI resource object.
167 * @res: Output generic resource object.
169 * Check if the given ACPI resource object represents an I/O resource and
171 * resource object pointed to by @res.
174 * 1) false with res->flags setting to zero: not the expected resource type
175 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
176 * 3) true: valid assigned resource
178 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_io()
213 struct resource *res = &win->res; in acpi_decode_space()
217 * 6.4.3.5 Address Space Resource Descriptors. in acpi_decode_space()
244 pr_warn("acpi resource window ([%#llx-%#llx] ignored, not CPU addressable)\n", in acpi_decode_space()
275 * @ares: Input ACPI resource object.
276 * @win: Output generic resource object.
278 * Check if the given ACPI resource object represents an address space resource
280 * resource object pointed to by @win.
283 * 1) false with win->res.flags setting to zero: not the expected resource type
285 * resource
286 * 3) true: valid assigned resource
304 * @ares: Input ACPI resource object.
305 * @win: Output generic resource object.
307 * Check if the given ACPI resource object represents an extended address space
308 * resource and if that's the case, use the information in it to populate the
309 * generic resource object pointed to by @win.
312 * 1) false with win->res.flags setting to zero: not the expected resource type
314 * resource
315 * 3) true: valid assigned resource
334 * acpi_dev_irq_flags - Determine IRQ resource flags.
383 static void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi) in acpi_dev_irqresource_disabled()
390 static void acpi_dev_get_irqresource(struct resource *res, u32 gsi, in acpi_dev_get_irqresource()
407 * resource (the legacy ISA resources). With modern ACPI 5 devices in acpi_dev_get_irqresource()
434 * acpi_dev_resource_interrupt - Extract ACPI interrupt resource information.
435 * @ares: Input ACPI resource object.
436 * @index: Index into the array of GSIs represented by the resource.
437 * @res: Output generic resource object.
439 * Check if the given ACPI resource object represents an interrupt resource
440 * and @index does not exceed the resource's interrupt count (true is returned
443 * represented by the resource and populate the generic resource object pointed
448 * 1) false with res->flags setting to zero: not the expected resource type
449 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
450 * 3) true: valid assigned resource
453 struct resource *res) in acpi_dev_resource_interrupt()
496 * acpi_dev_free_resource_list - Free resource from %acpi_dev_get_resources().
497 * @list: The head of the resource list to free.
535 struct resource *res = &win.res; in acpi_dev_process_resource()
607 * resource pointer and @preproc_data to it as arguments, for each ACPI resource
609 * resource objects if possible. If the return value of @preproc() in step (1)
610 * is different from 0, step (2) is not applied to the given ACPI resource and
614 * The resultant struct resource objects are put on the list pointed to by
634 struct resource *res = &win.res; in is_memory()
651 * The resultant struct resource objects are put on the list pointed to
667 * acpi_dev_filter_resource_type - Filter ACPI resource according to resource
669 * @ares: Input ACPI resource object.
670 * @types: Valid resource types of IORESOURCE_XXX
673 * ACPI resource objects according to resource types.
721 static int acpi_dev_consumes_res(struct acpi_device *adev, struct resource *res) in acpi_dev_consumes_res()
747 struct resource *res = context; in acpi_res_consumer_cb()
764 * @res: Resource to search for.
766 * Search the current resource settings (_CRS) of every ACPI device node
770 struct acpi_device *acpi_resource_consumer(struct resource *res) in acpi_resource_consumer()