Lines Matching full:handle
134 /* TBD: handle nested packages... */ in acpi_extract_package()
225 (void *)element->reference.handle; in acpi_extract_package()
234 /* TBD: handle nested packages... */ in acpi_extract_package()
247 acpi_evaluate_integer(acpi_handle handle, in acpi_evaluate_integer() argument
260 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); in acpi_evaluate_integer()
262 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_integer()
267 acpi_util_eval_error(handle, pathname, AE_BAD_DATA); in acpi_evaluate_integer()
273 acpi_handle_debug(handle, "Return value [%llu]\n", *data); in acpi_evaluate_integer()
280 int acpi_get_local_u64_address(acpi_handle handle, u64 *addr) in acpi_get_local_u64_address() argument
284 status = acpi_evaluate_integer(handle, METHOD_NAME__ADR, NULL, addr); in acpi_get_local_u64_address()
291 int acpi_get_local_address(acpi_handle handle, u32 *addr) in acpi_get_local_address() argument
296 ret = acpi_get_local_u64_address(handle, &adr); in acpi_get_local_address()
306 const char *acpi_get_subsystem_id(acpi_handle handle) in acpi_get_subsystem_id() argument
314 status = acpi_evaluate_object(handle, METHOD_NAME__SUB, NULL, &buffer); in acpi_get_subsystem_id()
316 acpi_handle_debug(handle, "Reading ACPI _SUB failed: %#x\n", status); in acpi_get_subsystem_id()
328 acpi_handle_err(handle, "ACPI _SUB Length %zu is Invalid\n", len); in acpi_get_subsystem_id()
332 acpi_handle_warn(handle, "Warning ACPI _SUB did not return a string\n"); in acpi_get_subsystem_id()
342 bool acpi_evaluate_reference(acpi_handle handle, acpi_string pathname, in acpi_evaluate_reference() argument
357 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); in acpi_evaluate_reference()
378 !element->reference.handle) in acpi_evaluate_reference()
383 list->handles[i] = element->reference.handle; in acpi_evaluate_reference()
402 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference()
409 * acpi_handle_list_equal - Check if two ACPI handle lists are the same
413 * Return true if the given ACPI handle lists are of the same size and
426 * acpi_handle_list_replace - Replace one ACPI handle list with another
427 * @dst: ACPI handle list to replace.
428 * @src: Source ACPI handle list.
448 * acpi_handle_list_free - Free the handles table in an ACPI handle list
449 * @list: ACPI handle list to free.
465 * @target: ACPI handle of the target ACPI device.
466 * @match: ACPI handle to look up in the target's _DEP list.
498 acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld) in acpi_get_physical_device_location() argument
504 status = acpi_evaluate_object(handle, "_PLD", NULL, &buffer); in acpi_get_physical_device_location()
531 * @handle: ACPI device handle
541 acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code, in acpi_evaluate_ost() argument
561 return acpi_evaluate_object(handle, "_OST", &arg_list, NULL); in acpi_evaluate_ost()
566 * acpi_handle_path: Return the object path of handle
567 * @handle: ACPI device handle
571 char *acpi_handle_path(acpi_handle handle) in acpi_handle_path() argument
579 acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer) != AE_OK) in acpi_handle_path()
587 * @handle: ACPI device handle
596 acpi_handle_printk(const char *level, acpi_handle handle, const char *fmt, ...) in acpi_handle_printk() argument
606 path = acpi_handle_path(handle); in acpi_handle_printk()
618 * @handle: ACPI device handle
627 __acpi_handle_debug(struct _ddebug *descriptor, acpi_handle handle, in __acpi_handle_debug() argument
638 path = acpi_handle_path(handle); in __acpi_handle_debug()
649 * @handle: Parent object handle.
653 void acpi_evaluation_failure_warn(acpi_handle handle, const char *name, in acpi_evaluation_failure_warn() argument
656 acpi_handle_warn(handle, "%s evaluation failed: %s\n", name, in acpi_evaluation_failure_warn()
662 * acpi_has_method: Check whether @handle has a method named @name
663 * @handle: ACPI device handle
666 * Check whether @handle has a method named @name.
668 bool acpi_has_method(acpi_handle handle, char *name) in acpi_has_method() argument
672 return ACPI_SUCCESS(acpi_get_handle(handle, name, &tmp)); in acpi_has_method()
676 acpi_status acpi_execute_simple_method(acpi_handle handle, char *method, in acpi_execute_simple_method() argument
684 return acpi_evaluate_object(handle, method, &arg_list, NULL); in acpi_execute_simple_method()
690 * @handle: ACPI device handle
694 acpi_status acpi_evaluate_ej0(acpi_handle handle) in acpi_evaluate_ej0() argument
698 status = acpi_execute_simple_method(handle, "_EJ0", 1); in acpi_evaluate_ej0()
700 acpi_handle_warn(handle, "No _EJ0 support for device\n"); in acpi_evaluate_ej0()
702 acpi_handle_warn(handle, "Eject failed (0x%x)\n", status); in acpi_evaluate_ej0()
709 * @handle: ACPI device handle
714 acpi_status acpi_evaluate_lck(acpi_handle handle, int lock) in acpi_evaluate_lck() argument
718 status = acpi_execute_simple_method(handle, "_LCK", !!lock); in acpi_evaluate_lck()
721 acpi_handle_warn(handle, in acpi_evaluate_lck()
724 acpi_handle_warn(handle, in acpi_evaluate_lck()
733 * @handle: ACPI device handle
740 acpi_status acpi_evaluate_reg(acpi_handle handle, u8 space_id, u32 function) in acpi_evaluate_reg() argument
752 return acpi_evaluate_object(handle, "_REG", &arg_list, NULL); in acpi_evaluate_reg()
758 * @handle: ACPI device handle
771 acpi_evaluate_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 func, in acpi_evaluate_dsm() argument
797 ret = acpi_evaluate_object(handle, "_DSM", &input, &buf); in acpi_evaluate_dsm()
802 acpi_handle_warn(handle, in acpi_evaluate_dsm()
812 * @handle: ACPI device handle
821 bool acpi_check_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 funcs) in acpi_check_dsm() argument
830 obj = acpi_evaluate_dsm(handle, guid, rev, 0, NULL); in acpi_check_dsm()
929 status = acpi_evaluate_integer(adev->handle, "_HRV", NULL, &hrv); in acpi_dev_match_cb()