Lines Matching +full:proximity +full:- +full:near +full:- +full:level

1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: evhandler - Support for Address Space handlers
6 * Copyright (C) 2000 - 2022, Intel Corp.
22 u32 level, void *context, void **return_value);
69 * available -- even though we are nowhere near ready to find the PCI root in acpi_ev_install_region_handlers()
107 * PARAMETERS: node - Namespace node for the device
108 * space_id - The address space ID
128 handler_obj = obj_desc->common_notify.handler; in acpi_ev_has_default_handler()
133 if (handler_obj->address_space.space_id == space_id) { in acpi_ev_has_default_handler()
134 if (handler_obj->address_space.handler_flags & in acpi_ev_has_default_handler()
140 handler_obj = handler_obj->address_space.next; in acpi_ev_has_default_handler()
159 * This is because the existing handler is closer in proximity
166 u32 level, void *context, void **return_value) in acpi_ev_install_handler() argument
195 if ((node->type != ACPI_TYPE_DEVICE) && in acpi_ev_install_handler()
196 (node->type != ACPI_TYPE_REGION) && (node != acpi_gbl_root_node)) { in acpi_ev_install_handler()
212 if (obj_desc->common.type == ACPI_TYPE_DEVICE) { in acpi_ev_install_handler()
217 acpi_ev_find_region_handler(handler_obj->address_space. in acpi_ev_install_handler()
219 obj_desc->common_notify. in acpi_ev_install_handler()
227 acpi_ut_get_region_name(handler_obj-> in acpi_ev_install_handler()
252 if (obj_desc->region.space_id != handler_obj->address_space.space_id) { in acpi_ev_install_handler()
276 * PARAMETERS: space_id - The address space ID
277 * handler_obj - Head of the handler object list
298 if (handler_obj->address_space.space_id == space_id) { in acpi_ev_find_region_handler()
304 handler_obj = handler_obj->address_space.next; in acpi_ev_find_region_handler()
314 * PARAMETERS: node - Namespace node for the device
315 * space_id - The address space ID
316 * handler - Address of the handler
317 * setup - Address of the setup function
318 * context - Value passed to the handler on each access
345 if ((node->type != ACPI_TYPE_DEVICE) && in acpi_ev_install_space_handler()
346 (node->type != ACPI_TYPE_PROCESSOR) && in acpi_ev_install_space_handler()
347 (node->type != ACPI_TYPE_THERMAL) && (node != acpi_gbl_root_node)) { in acpi_ev_install_space_handler()
414 obj_desc-> in acpi_ev_install_space_handler()
419 if (handler_obj->address_space.handler == handler) { in acpi_ev_install_space_handler()
442 if (node->type == ACPI_TYPE_ANY) { in acpi_ev_install_space_handler()
445 type = node->type; in acpi_ev_install_space_handler()
456 obj_desc->common.type = (u8)type; in acpi_ev_install_space_handler()
493 acpi_os_create_mutex(&handler_obj->address_space.context_mutex); in acpi_ev_install_space_handler()
499 handler_obj->address_space.space_id = (u8)space_id; in acpi_ev_install_space_handler()
500 handler_obj->address_space.handler_flags = flags; in acpi_ev_install_space_handler()
501 handler_obj->address_space.region_list = NULL; in acpi_ev_install_space_handler()
502 handler_obj->address_space.node = node; in acpi_ev_install_space_handler()
503 handler_obj->address_space.handler = handler; in acpi_ev_install_space_handler()
504 handler_obj->address_space.context = context; in acpi_ev_install_space_handler()
505 handler_obj->address_space.setup = setup; in acpi_ev_install_space_handler()
509 handler_obj->address_space.next = obj_desc->common_notify.handler; in acpi_ev_install_space_handler()
515 obj_desc->common_notify.handler = handler_obj; in acpi_ev_install_space_handler()