Lines Matching full:resource

3  * drivers/acpi/resource.c - ACPI device resources interpretation.
23 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid()
36 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid()
66 pr_debug("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", in acpi_dev_resource_len_valid()
72 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags()
84 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource()
93 * acpi_dev_resource_memory - Extract ACPI memory resource information.
94 * @ares: Input ACPI resource object.
95 * @res: Output generic resource object.
97 * Check if the given ACPI resource object represents a memory resource and
99 * resource object pointed to by @res.
102 * 1) false with res->flags setting to zero: not the expected resource type
103 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
104 * 3) true: valid assigned resource
106 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_memory()
140 static void acpi_dev_ioresource_flags(struct resource *res, u64 len, in acpi_dev_ioresource_flags()
157 static void acpi_dev_get_ioresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_ioresource()
166 * acpi_dev_resource_io - Extract ACPI I/O resource information.
167 * @ares: Input ACPI resource object.
168 * @res: Output generic resource object.
170 * Check if the given ACPI resource object represents an I/O resource and
172 * resource object pointed to by @res.
175 * 1) false with res->flags setting to zero: not the expected resource type
176 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
177 * 3) true: valid assigned resource
179 bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_io()
214 struct resource *res = &win->res; in acpi_decode_space()
218 * 6.4.3.5 Address Space Resource Descriptors. in acpi_decode_space()
245 pr_warn("acpi resource window ([%#llx-%#llx] ignored, not CPU addressable)\n", in acpi_decode_space()
276 * @ares: Input ACPI resource object.
277 * @win: Output generic resource object.
279 * Check if the given ACPI resource object represents an address space resource
281 * resource object pointed to by @win.
284 * 1) false with win->res.flags setting to zero: not the expected resource type
286 * resource
287 * 3) true: valid assigned resource
305 * @ares: Input ACPI resource object.
306 * @win: Output generic resource object.
308 * Check if the given ACPI resource object represents an extended address space
309 * resource and if that's the case, use the information in it to populate the
310 * generic resource object pointed to by @win.
313 * 1) false with win->res.flags setting to zero: not the expected resource type
315 * resource
316 * 3) true: valid assigned resource
335 * acpi_dev_irq_flags - Determine IRQ resource flags.
494 static void acpi_dev_get_irqresource(struct resource *res, u32 gsi, in acpi_dev_get_irqresource()
511 * resource (the legacy ISA resources). With modern ACPI 5 devices in acpi_dev_get_irqresource()
543 * acpi_dev_resource_interrupt - Extract ACPI interrupt resource information.
544 * @ares: Input ACPI resource object.
545 * @index: Index into the array of GSIs represented by the resource.
546 * @res: Output generic resource object.
548 * Check if the given ACPI resource object represents an interrupt resource
549 * and @index does not exceed the resource's interrupt count (true is returned
552 * represented by the resource and populate the generic resource object pointed
557 * 1) false with res->flags setting to zero: not the expected resource type
558 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
559 * 3) true: valid assigned resource
562 struct resource *res) in acpi_dev_resource_interrupt()
607 * acpi_dev_free_resource_list - Free resource from %acpi_dev_get_resources().
608 * @list: The head of the resource list to free.
646 struct resource *res = &win.res; in acpi_dev_process_resource()
718 * resource pointer and @preproc_data to it as arguments, for each ACPI resource
720 * resource objects if possible. If the return value of @preproc() in step (1)
721 * is different from 0, step (2) is not applied to the given ACPI resource and
725 * The resultant struct resource objects are put on the list pointed to by
745 struct resource *res = &win.res; in is_memory()
765 * The resultant struct resource objects are put on the list pointed to
798 * acpi_dev_filter_resource_type - Filter ACPI resource according to resource
800 * @ares: Input ACPI resource object.
801 * @types: Valid resource types of IORESOURCE_XXX
804 * ACPI resource objects according to resource types.
852 static int acpi_dev_consumes_res(struct acpi_device *adev, struct resource *res) in acpi_dev_consumes_res()
878 struct resource *res = context; in acpi_res_consumer_cb()
895 * @res: Resource to search for.
897 * Search the current resource settings (_CRS) of every ACPI device node
901 struct acpi_device *acpi_resource_consumer(struct resource *res) in acpi_resource_consumer()