Lines Matching defs:device

10  *	1. Support more than one IRQ resource entry per link device (index).
36 static int acpi_pci_link_add(struct acpi_device *device,
38 static void acpi_pci_link_remove(struct acpi_device *device);
68 struct acpi_device *device;
88 acpi_handle handle = link->device->handle;
157 acpi_handle handle = link->device->handle;
230 acpi_handle handle = link->device->handle;
239 /* Query _STA, set link->device->status */
240 result = acpi_bus_get_status(link->device);
246 if (!link->device->status.enabled) {
284 acpi_handle handle = link->device->handle;
343 status = acpi_set_current_resources(link->device->handle, &buffer);
352 /* Query _STA, set device->status */
353 result = acpi_bus_get_status(link->device);
358 if (!link->device->status.enabled)
415 * that no device will attach to, vs. a link which may be shared
419 * with a pin dedicated to each device. Or for that matter, an MSI
530 acpi_handle handle = link->device->handle;
583 /* Attempt to enable the link device at this IRQ. */
609 struct acpi_device *device = acpi_fetch_acpi_dev(handle);
612 if (!device) {
613 acpi_handle_err(handle, "Invalid link device\n");
617 link = acpi_driver_data(device);
648 *name = acpi_device_bid(link->device);
659 struct acpi_device *device = acpi_fetch_acpi_dev(handle);
662 if (!device) {
663 acpi_handle_err(handle, "Invalid link device\n");
667 link = acpi_driver_data(device);
694 acpi_evaluate_object(link->device->handle, "_DIS", NULL, NULL);
704 static int acpi_pci_link_add(struct acpi_device *device,
707 acpi_handle handle = device->handle;
716 link->device = device;
717 strcpy(acpi_device_name(device), ACPI_PCI_LINK_DEVICE_NAME);
718 strcpy(acpi_device_class(device), ACPI_PCI_LINK_CLASS);
719 device->driver_data = link;
730 acpi_device_bid(device), link->irq.active);
738 if (!link->device->status.enabled)
739 pr_info("Interrupt link %s disabled\n", acpi_device_bid(device));
771 static void acpi_pci_link_remove(struct acpi_device *device)
775 link = acpi_driver_data(device);
820 * single ISA_USED value for each legacy device.