Lines Matching refs:acpi_dev

125  * @acpi_dev: ACPI device object.
136 static int create_pnp_modalias(const struct acpi_device *acpi_dev, char *modalias,
144 if (!acpi_device_is_present(acpi_dev))
153 list_for_each_entry(id, &acpi_dev->pnp.ids, list)
166 list_for_each_entry(id, &acpi_dev->pnp.ids, list) {
186 * @acpi_dev: ACPI device object.
194 static int create_of_modalias(const struct acpi_device *acpi_dev, char *modalias,
204 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf);
220 of_compatible = acpi_dev->data.of_compatible;
404 struct acpi_device *acpi_dev = to_acpi_device(dev);
406 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev));
413 struct acpi_device *acpi_dev = to_acpi_device(dev);
415 return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id);
422 struct acpi_device *acpi_dev = to_acpi_device(dev);
424 if (acpi_dev->pnp.bus_address > U32_MAX)
425 return sprintf(buf, "0x%016llx\n", acpi_dev->pnp.bus_address);
427 return sprintf(buf, "0x%08llx\n", acpi_dev->pnp.bus_address);
434 struct acpi_device *acpi_dev = to_acpi_device(dev);
436 return acpi_object_path(acpi_dev->handle, buf);
445 struct acpi_device *acpi_dev = to_acpi_device(dev);
448 if (acpi_dev->pnp.str_obj == NULL)
456 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer,
457 acpi_dev->pnp.str_obj->buffer.length,
471 struct acpi_device *acpi_dev = to_acpi_device(dev);
475 status = acpi_evaluate_integer(acpi_dev->handle, "_SUN", NULL, &sun);
487 struct acpi_device *acpi_dev = to_acpi_device(dev);
491 status = acpi_evaluate_integer(acpi_dev->handle, "_HRV", NULL, &hrv);
502 struct acpi_device *acpi_dev = to_acpi_device(dev);
506 status = acpi_evaluate_integer(acpi_dev->handle, "_STA", NULL, &sta);