Lines Matching defs:device

27 static int acpi_pci_root_add(struct acpi_device *device,
29 static void acpi_pci_root_remove(struct acpi_device *device);
69 struct acpi_device *device;
71 ret = acpi_bus_get_device(handle, &device);
75 ret = acpi_match_device_ids(device, root_device_ids);
157 dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf);
213 status = acpi_pci_run_osc(root->device->handle, capbuf, &result);
235 struct acpi_device *device;
237 if (acpi_bus_get_device(handle, &device) ||
238 acpi_match_device_ids(device, root_device_ids))
241 root = acpi_driver_data(device);
256 * Given an ACPI CA handle, the desired PCI device is located in the
259 * If the device is found, its reference count is increased and this
262 * If no device is found, %NULL is returned.
301 * Now, walk back down the PCI device tree until we return to our
303 * bridge and the device we're looking for must be a P2P bridge.
321 * This function may be called for a non-PCI device that has a
414 struct acpi_device *device = root->device;
415 acpi_handle handle = device->handle;
453 dev_info(&device->dev, "_OSC failed (%s)%s\n",
460 dev_info(&device->dev, "PCIe port services disabled; not requesting _OSC control\n");
505 dev_info(&device->dev, "FADT indicates ASPM is unsupported, using BIOS configuration\n");
511 dev_info(&device->dev, "_OSC failed (%s); disabling ASPM\n",
525 static int acpi_pci_root_add(struct acpi_device *device,
532 acpi_handle handle = device->handle;
545 dev_err(&device->dev, "can't evaluate _SEG\n");
561 dev_warn(&device->dev,
570 dev_err(&device->dev, "can't evaluate _BBN\n");
576 root->device = device;
578 strcpy(acpi_device_name(device), ACPI_PCI_ROOT_DEVICE_NAME);
579 strcpy(acpi_device_class(device), ACPI_PCI_ROOT_CLASS);
580 device->driver_data = root;
588 acpi_device_name(device), acpi_device_bid(device),
593 is_pcie = strcmp(acpi_device_hid(device), "PNP0A08") == 0;
603 * Must do this prior to any attempt to bind the root device, as the
609 dev_err(&device->dev,
612 device->driver_data = NULL;
620 pci_acpi_add_bus_pm_notifier(device);
621 device_set_wakeup_capable(root->bus->bridge, device->wakeup.flags.valid);
636 acpi_ioapic_add(root->device->handle);
652 static void acpi_pci_root_remove(struct acpi_device *device)
654 struct acpi_pci_root *root = acpi_driver_data(device);
662 pci_acpi_remove_bus_pm_notifier(device);
667 dmar_device_remove(device->handle);
679 static void acpi_pci_root_validate_resources(struct device *dev,
777 struct acpi_device *device = info->bridge;
782 ret = acpi_dev_get_resources(device, list,
786 dev_warn(&device->dev,
789 dev_dbg(&device->dev,
794 acpi_pci_root_remap_iospace(&device->fwnode,
802 acpi_pci_root_validate_resources(&device->dev, list,
804 acpi_pci_root_validate_resources(&device->dev, list,
883 struct acpi_device *device = root->device;
884 int node = acpi_get_node(device->handle);
890 info->bridge = device;