Lines Matching refs:acpi_dev
123 * @acpi_dev: ACPI device object.
134 static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias,
142 if (!acpi_device_is_present(acpi_dev))
151 list_for_each_entry(id, &acpi_dev->pnp.ids, list)
164 list_for_each_entry(id, &acpi_dev->pnp.ids, list) {
184 * @acpi_dev: ACPI device object.
192 static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias,
202 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf);
218 of_compatible = acpi_dev->data.of_compatible;
397 struct acpi_device *acpi_dev = to_acpi_device(dev);
399 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev));
406 struct acpi_device *acpi_dev = to_acpi_device(dev);
408 return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id);
415 struct acpi_device *acpi_dev = to_acpi_device(dev);
417 if (acpi_dev->pnp.bus_address > U32_MAX)
418 return sprintf(buf, "0x%016llx\n", acpi_dev->pnp.bus_address);
420 return sprintf(buf, "0x%08llx\n", acpi_dev->pnp.bus_address);
427 struct acpi_device *acpi_dev = to_acpi_device(dev);
429 return acpi_object_path(acpi_dev->handle, buf);
437 struct acpi_device *acpi_dev = to_acpi_device(dev);
440 if (acpi_dev->pnp.str_obj == NULL)
448 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer,
449 acpi_dev->pnp.str_obj->buffer.length,
462 struct acpi_device *acpi_dev = to_acpi_device(dev);
466 status = acpi_evaluate_integer(acpi_dev->handle, "_SUN", NULL, &sun);
477 struct acpi_device *acpi_dev = to_acpi_device(dev);
481 status = acpi_evaluate_integer(acpi_dev->handle, "_HRV", NULL, &hrv);
491 struct acpi_device *acpi_dev = to_acpi_device(dev);
495 status = acpi_evaluate_integer(acpi_dev->handle, "_STA", NULL, &sta);