Lines Matching defs:adev
123 struct acpi_device *adev = ac->device;
127 acpi_handle_debug(adev->handle, "Unsupported event [0x%x]\n",
144 acpi_bus_generate_netlink_event(adev->pnp.device_class,
145 dev_name(&adev->dev), event,
147 acpi_notifier_call_chain(adev, event, (u32) ac->state);
206 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev);
215 ac->device = adev;
216 strcpy(acpi_device_name(adev), ACPI_AC_DEVICE_NAME);
217 strcpy(acpi_device_class(adev), ACPI_AC_CLASS);
227 ac->charger_desc.name = acpi_device_bid(adev);
239 pr_info("%s [%s] (%s-line)\n", acpi_device_name(adev),
240 acpi_device_bid(adev), str_on_off(ac->state));
245 result = acpi_dev_install_notify_handler(adev, ACPI_ALL_NOTIFY,