Lines Matching defs:adev
242 int __acpi_device_uevent_modalias(struct acpi_device *adev,
247 if (!adev)
250 if (list_empty(&adev->pnp.ids))
256 if (adev->data.of_compatible)
257 len = create_of_modalias(adev, &env->buf[env->buflen - 1],
260 len = create_pnp_modalias(adev, &env->buf[env->buflen - 1],
284 static int __acpi_device_modalias(struct acpi_device *adev, char *buf, int size)
288 if (!adev)
291 if (list_empty(&adev->pnp.ids))
294 len = create_pnp_modalias(adev, buf, size - 1);
301 if (!adev->data.of_compatible)
304 count = create_of_modalias(adev, buf + len, size - 1);
339 struct acpi_device *adev = to_acpi_device(dev);
343 ret = acpi_device_get_power(adev, &state);
355 struct acpi_device *adev = to_acpi_device(dev);
357 return sprintf(buf, "%s\n", acpi_power_state_string(adev->power.state));