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.
649 static void acpi_dev_get_irqresource(struct resource *res, u32 gsi, in acpi_dev_get_irqresource()
666 * resource (the legacy ISA resources). With modern ACPI 5 devices in acpi_dev_get_irqresource()
698 * acpi_dev_resource_interrupt - Extract ACPI interrupt resource information.
699 * @ares: Input ACPI resource object.
700 * @index: Index into the array of GSIs represented by the resource.
701 * @res: Output generic resource object.
703 * Check if the given ACPI resource object represents an interrupt resource
704 * and @index does not exceed the resource's interrupt count (true is returned
707 * represented by the resource and populate the generic resource object pointed
712 * 1) false with res->flags setting to zero: not the expected resource type
713 * 2) false with IORESOURCE_DISABLED in res->flags: valid unassigned resource
714 * 3) true: valid assigned resource
717 struct resource *res) in acpi_dev_resource_interrupt()
762 * acpi_dev_free_resource_list - Free resource from %acpi_dev_get_resources().
763 * @list: The head of the resource list to free.
801 struct resource *res = &win.res; in acpi_dev_process_resource()
873 * resource pointer and @preproc_data to it as arguments, for each ACPI resource
875 * resource objects if possible. If the return value of @preproc() in step (1)
876 * is different from 0, step (2) is not applied to the given ACPI resource and
880 * The resultant struct resource objects are put on the list pointed to by
900 struct resource *res = &win.res; in is_memory()
920 * The resultant struct resource objects are put on the list pointed to
953 * acpi_dev_filter_resource_type - Filter ACPI resource according to resource
955 * @ares: Input ACPI resource object.
956 * @types: Valid resource types of IORESOURCE_XXX
959 * ACPI resource objects according to resource types.
1007 static int acpi_dev_consumes_res(struct acpi_device *adev, struct resource *res) in acpi_dev_consumes_res()
1033 struct resource *res = context; in acpi_res_consumer_cb()
1050 * @res: Resource to search for.
1052 * Search the current resource settings (_CRS) of every ACPI device node
1056 struct acpi_device *acpi_resource_consumer(struct resource *res) in acpi_resource_consumer()