Lines Matching refs:acpi_dev
135 static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias, in create_pnp_modalias() argument
143 if (!acpi_device_is_present(acpi_dev)) in create_pnp_modalias()
152 list_for_each_entry(id, &acpi_dev->pnp.ids, list) in create_pnp_modalias()
165 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_pnp_modalias()
193 static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias, in create_of_modalias() argument
203 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf); in create_of_modalias()
217 of_compatible = acpi_dev->data.of_compatible; in create_of_modalias()
401 struct acpi_device *acpi_dev = to_acpi_device(dev); in hid_show() local
403 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in hid_show()
410 struct acpi_device *acpi_dev = to_acpi_device(dev); in uid_show() local
412 return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id); in uid_show()
419 struct acpi_device *acpi_dev = to_acpi_device(dev); in adr_show() local
421 if (acpi_dev->pnp.bus_address > U32_MAX) in adr_show()
422 return sprintf(buf, "0x%016llx\n", acpi_dev->pnp.bus_address); in adr_show()
424 return sprintf(buf, "0x%08llx\n", acpi_dev->pnp.bus_address); in adr_show()
431 struct acpi_device *acpi_dev = to_acpi_device(dev); in path_show() local
433 return acpi_object_path(acpi_dev->handle, buf); in path_show()
442 struct acpi_device *acpi_dev = to_acpi_device(dev); in description_show() local
445 if (acpi_dev->pnp.str_obj == NULL) in description_show()
453 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer, in description_show()
454 acpi_dev->pnp.str_obj->buffer.length, in description_show()
468 struct acpi_device *acpi_dev = to_acpi_device(dev); in sun_show() local
472 status = acpi_evaluate_integer(acpi_dev->handle, "_SUN", NULL, &sun); in sun_show()
484 struct acpi_device *acpi_dev = to_acpi_device(dev); in hrv_show() local
488 status = acpi_evaluate_integer(acpi_dev->handle, "_HRV", NULL, &hrv); in hrv_show()
499 struct acpi_device *acpi_dev = to_acpi_device(dev); in status_show() local
503 status = acpi_evaluate_integer(acpi_dev->handle, "_STA", NULL, &sta); in status_show()