• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/acpica/

Lines Matching defs:handler

3  * Module Name: evregion - ACPI address_space (op_region) handler dispatch
109 * We install the default PCI config space handler at the root so that
116 * NOTE: We ignore AE_ALREADY_EXISTS because this means that a handler
154 * RETURN: TRUE if default handler is installed, FALSE otherwise
156 * DESCRIPTION: Check if the default handler is installed for the requested
172 handler_obj = obj_desc->device.handler;
200 * an installed default region handler.
220 * Make sure the installed handler is the DEFAULT handler. If not the
222 * handler was installed)
289 * connection status 1 for connecting the handler, 0 for disconnecting
290 * the handler (Passed as a parameter)
337 * a previously installed handler.
347 acpi_adr_space_handler handler;
360 /* Ensure that there is a handler associated with this region */
362 handler_desc = region_obj->region.handler;
365 "No handler for Region [%4.4s] (%p) [%s]",
428 /* The handler for this region was already installed */
442 /* We have everything we need, we can invoke the address space handler */
444 handler = handler_desc->address_space.handler;
448 &region_obj->region.handler->address_space, handler,
458 * exit the interpreter because the handler *might* block -- we don't
464 /* Call the handler */
466 status = handler(function,
480 * We just returned from a non-default handler, we must re-enter the
498 * DESCRIPTION: Break the association between the handler and the region
523 /* Get the address handler from the region object */
525 handler_obj = region_obj->region.handler;
528 /* This region has no handler, all done */
533 /* Find this region in the handler's list */
544 "Removing Region %p from address handler %p\n",
547 /* This is it, remove it from the handler's list */
579 * If the region has been activated, call the setup handler with
594 "from region handler - deactivate, [%s]",
605 * Remove handler reference in the region
610 * If the region is on the handler's list, this must be the
611 * region's handler
613 region_obj->region.handler = NULL;
625 /* If we get here, the region was not in the handler's region list */
628 "Cannot remove region %p from address handler %p\n",
644 * DESCRIPTION: Create the association between the handler and the region
658 "Adding Region [%4.4s] %p to address handler %p [%s]\n",
664 /* Link this region to the front of the handler's list */
669 /* Install the region's handler */
671 if (region_obj->region.handler) {
675 region_obj->region.handler = handler_obj;
687 * DESCRIPTION: This routine installs an address handler into objects that are
690 * If the Object is a Device, and the device has a handler of
693 * This is because the existing handler is closer in proximity
748 /* Check if this Device already has a handler for this address space */
750 next_handler_obj = obj_desc->device.handler;
753 /* Found a handler, is it for the same address space? */
758 "Found handler for region [%s] in device %p(%p) "
759 "handler %p\n",
768 * means that someone has already installed a handler for
782 * As long as the device didn't have a handler for this space we
798 * Now we have a region and it is for the handler's address space type.
800 * First disconnect region for any previous handler (if any)
804 /* Connect the region to the new handler */
816 * Handler - Address of the handler
818 * Context - Value passed to the handler on each access
822 * DESCRIPTION: Install a handler for all op_regions of a given space_id.
830 acpi_adr_space_handler handler,
852 if (handler == ACPI_DEFAULT_HANDLER) {
857 handler = acpi_ex_system_memory_space_handler;
862 handler = acpi_ex_system_io_space_handler;
867 handler = acpi_ex_pci_config_space_handler;
872 handler = acpi_ex_cmos_space_handler;
877 handler = acpi_ex_pci_bar_space_handler;
882 handler = acpi_ex_data_table_space_handler;
903 * The attached device object already exists. Make sure the handler
906 handler_obj = obj_desc->device.handler;
908 /* Walk the handler list for this device */
912 /* Same space_id indicates a handler already installed */
915 if (handler_obj->address_space.handler ==
916 handler) {
919 * handler twice. This can easily happen with the
925 /* A handler is already installed */
938 "Creating object on Device %p while installing handler\n",
973 "Installing address handler for region %s(%X) on Device %4.4s %p(%p)\n",
978 * Install the handler
980 * At this point there is no existing handler. Just allocate the object
981 * for the handler and link it into the list.
990 /* Init handler obj */
996 handler_obj->address_space.handler = handler;
1002 handler_obj->address_space.next = obj_desc->device.handler;
1006 * Each region that uses the handler adds a reference.
1008 obj_desc->device.handler = handler_obj;
1012 * handler will manage.
1016 * a device is detected that has an address handler of the