• Home
  • Raw
  • Download

Lines Matching refs:acpi_dev

134 static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias,  in create_pnp_modalias()  argument
142 if (!acpi_device_is_present(acpi_dev)) in create_pnp_modalias()
151 list_for_each_entry(id, &acpi_dev->pnp.ids, list) in create_pnp_modalias()
164 list_for_each_entry(id, &acpi_dev->pnp.ids, list) { in create_pnp_modalias()
192 static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias, in create_of_modalias() argument
202 status = acpi_get_name(acpi_dev->handle, ACPI_SINGLE_NAME, &buf); in create_of_modalias()
216 of_compatible = acpi_dev->data.of_compatible; in create_of_modalias()
395 struct acpi_device *acpi_dev = to_acpi_device(dev); in hid_show() local
397 return sprintf(buf, "%s\n", acpi_device_hid(acpi_dev)); in hid_show()
404 struct acpi_device *acpi_dev = to_acpi_device(dev); in uid_show() local
406 return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id); in uid_show()
413 struct acpi_device *acpi_dev = to_acpi_device(dev); in adr_show() local
415 if (acpi_dev->pnp.bus_address > U32_MAX) in adr_show()
416 return sprintf(buf, "0x%016llx\n", acpi_dev->pnp.bus_address); in adr_show()
418 return sprintf(buf, "0x%08llx\n", acpi_dev->pnp.bus_address); in adr_show()
425 struct acpi_device *acpi_dev = to_acpi_device(dev); in path_show() local
427 return acpi_object_path(acpi_dev->handle, buf); in path_show()
435 struct acpi_device *acpi_dev = to_acpi_device(dev); in description_show() local
438 if (acpi_dev->pnp.str_obj == NULL) in description_show()
446 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer, in description_show()
447 acpi_dev->pnp.str_obj->buffer.length, in description_show()
460 struct acpi_device *acpi_dev = to_acpi_device(dev); in sun_show() local
464 status = acpi_evaluate_integer(acpi_dev->handle, "_SUN", NULL, &sun); in sun_show()
475 struct acpi_device *acpi_dev = to_acpi_device(dev); in hrv_show() local
479 status = acpi_evaluate_integer(acpi_dev->handle, "_HRV", NULL, &hrv); in hrv_show()
489 struct acpi_device *acpi_dev = to_acpi_device(dev); in status_show() local
493 status = acpi_evaluate_integer(acpi_dev->handle, "_STA", NULL, &sta); in status_show()