Lines Matching defs:adev
101 static bool is_mock_adev(struct acpi_device *adev)
105 if (adev == &acpi0017_mock)
109 if (adev == &host_bridge[i])
558 static int host_bridge_index(struct acpi_device *adev)
560 return adev - host_bridge;
578 struct acpi_device *adev = find_host_bridge(handle);
580 if (!adev || strcmp(pathname, METHOD_NAME__UID) != 0)
583 *data = host_bridge_index(adev);
616 struct acpi_device *adev = find_host_bridge(handle);
618 if (!adev)
620 return &mock_pci_root[host_bridge_index(adev)];
991 static void mock_companion(struct acpi_device *adev, struct device *dev)
993 device_initialize(&adev->dev);
994 fwnode_init(&adev->fwnode, NULL);
995 dev->fwnode = &adev->fwnode;
996 adev->fwnode.dev = dev;
1009 struct acpi_device *adev = &host_bridge[idx];
1016 mock_companion(adev, &pdev->dev);
1089 struct acpi_device *adev =
1098 mock_companion(adev, &pdev->dev);
1272 struct acpi_device *adev = &host_bridge[i];
1279 mock_companion(adev, &pdev->dev);