Lines Matching refs:acpi_dev
136 static int create_pnp_modalias(const struct acpi_device *acpi_dev, char *modalias, in create_pnp_modalias() argument
144 if (!acpi_device_is_present(acpi_dev)) in create_pnp_modalias()
153 list_for_each_entry(id, &acpi_dev->pnp.ids, list) in create_pnp_modalias()
166 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_pnp_modalias()
194 static int create_of_modalias(const struct acpi_device *acpi_dev, char *modalias, in create_of_modalias() argument
204 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf); in create_of_modalias()
218 of_compatible = acpi_dev->data.of_compatible; in create_of_modalias()
402 struct acpi_device *acpi_dev = to_acpi_device(dev); in hid_show() local
404 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in hid_show()
411 struct acpi_device *acpi_dev = to_acpi_device(dev); in uid_show() local
413 return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id); in uid_show()
420 struct acpi_device *acpi_dev = to_acpi_device(dev); in adr_show() local
422 if (acpi_dev->pnp.bus_address > U32_MAX) in adr_show()
423 return sprintf(buf, "0x%016llx\n", acpi_dev->pnp.bus_address); in adr_show()
425 return sprintf(buf, "0x%08llx\n", acpi_dev->pnp.bus_address); in adr_show()
432 struct acpi_device *acpi_dev = to_acpi_device(dev); in path_show() local
434 return acpi_object_path(acpi_dev->handle, buf); in path_show()
443 struct acpi_device *acpi_dev = to_acpi_device(dev); in description_show() local
446 if (acpi_dev->pnp.str_obj == NULL) in description_show()
454 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer, in description_show()
455 acpi_dev->pnp.str_obj->buffer.length, in description_show()
469 struct acpi_device *acpi_dev = to_acpi_device(dev); in sun_show() local
473 status = acpi_evaluate_integer(acpi_dev->handle, "_SUN", NULL, &sun); in sun_show()
485 struct acpi_device *acpi_dev = to_acpi_device(dev); in hrv_show() local
489 status = acpi_evaluate_integer(acpi_dev->handle, "_HRV", NULL, &hrv); in hrv_show()
500 struct acpi_device *acpi_dev = to_acpi_device(dev); in status_show() local
504 status = acpi_evaluate_integer(acpi_dev->handle, "_STA", NULL, &sta); in status_show()