Lines Matching refs:ad
779 struct acpi_device *ad;
782 if ((ad = malloc(sizeof(*ad), M_ACPIDEV, M_NOWAIT | M_ZERO)) == NULL)
785 resource_list_init(&ad->ad_rl);
789 device_set_ivars(child, ad);
791 free(ad, M_ACPIDEV);
910 struct acpi_device *ad;
912 if ((ad = device_get_ivars(child)) == NULL) {
920 *(ACPI_HANDLE *)result = ad->ad_handle;
923 *(void **)result = ad->ad_private;
926 *(int *)result = ad->ad_flags;
946 struct acpi_device *ad;
948 if ((ad = device_get_ivars(child)) == NULL) {
955 ad->ad_handle = (ACPI_HANDLE)value;
958 ad->ad_private = (void *)value;
961 ad->ad_flags = (int)value;
977 struct acpi_device *ad;
979 ad = device_get_ivars(child);
980 return (&ad->ad_rl);
986 struct acpi_device *ad = device_get_ivars(dev);
987 struct resource_list *rl = &ad->ad_rl;
1232 struct acpi_device *ad;
1241 ad = device_get_ivars(children[i]);
1242 rl = &ad->ad_rl;
1287 struct acpi_device *ad = device_get_ivars(child);
1288 struct resource_list *rl = &ad->ad_rl;
1306 if (ACPI_SUCCESS(AcpiGetObjectInfo(ad->ad_handle, &devinfo))) {
1371 struct acpi_device *ad;
1383 ad = device_get_ivars(child);
1384 rl = &ad->ad_rl;