|
PatchworkOS
|
#include <kernel/acpi/aml/runtime/concat.h>#include <kernel/acpi/aml/runtime/convert.h>#include <kernel/log/log.h>#include <errno.h>Go to the source code of this file.
| uint64_t aml_concat | ( | aml_state_t * | state, |
| aml_object_t * | source1, | ||
| aml_object_t * | source2, | ||
| aml_object_t * | result | ||
| ) |
Concatenates two objects according to the rules in section 19.6.12 of the ACPI specification.
| state | Pointer to the current AML state. |
| source1 | Pointer to the first source object to concatenate, can be AML_UNINITIALIZED. |
| source2 | Pointer to the second source object to concatenate. Can be AML_UNINITIALIZED. |
| result | Pointer to the object where the result will be stored. |
0. On failure, ERR and errno is set. Definition at line 283 of file concat.c.
References AML_BUFFER, aml_concat_buffer(), aml_concat_integer(), aml_concat_other_types(), aml_concat_string(), AML_INTEGER, AML_STRING, AML_UNINITIALIZED, EINVAL, ERR, errno, and NULL.
Referenced by aml_def_concat_read().
|
static |
Definition at line 226 of file concat.c.
References AML_BUFFER, aml_buffer_set_empty(), aml_concat_resolve_to_buffer(), assert, aml_object_t::buffer, aml_buffer_obj_t::content, DEREF_DEFER, ERR, aml_buffer_obj_t::length, memcpy(), and NULL.
Referenced by aml_concat().
|
static |
Definition at line 179 of file concat.c.
References aml_buffer_set_empty(), aml_concat_resolve_to_integer(), AML_INTEGER, aml_integer_byte_size(), assert, aml_object_t::buffer, aml_buffer_obj_t::content, ERR, aml_object_t::integer, memcpy(), and aml_integer_obj_t::value.
Referenced by aml_concat().
|
static |
Definition at line 251 of file concat.c.
References aml_concat_resolve_to_string(), aml_string_set_empty(), aml_string_obj_t::content, DEREF_DEFER, ERR, memcpy(), NULL, aml_object_t::string, and strlen().
Referenced by aml_concat().
|
static |
Definition at line 140 of file concat.c.
References AML_BUFFER, aml_concat_resolve_to_string(), aml_convert_source(), AML_INTEGER, AML_STRING, aml_object_t::buffer, aml_buffer_obj_t::content, ERR, aml_buffer_obj_t::length, NULL, and strlen().
Referenced by aml_concat_buffer().
|
static |
Definition at line 8 of file concat.c.
References AML_BUFFER, aml_convert_source(), AML_INTEGER, AML_STRING, DEREF, EINVAL, ERR, errno, aml_object_t::integer, NULL, and aml_integer_obj_t::value.
Referenced by aml_concat_integer().
|
static |
Definition at line 34 of file concat.c.
References AML_BUFFER, AML_BUFFER_FIELD, aml_convert_source(), AML_DEBUG_OBJECT, AML_DEVICE, AML_EVENT, AML_FIELD_UNIT, AML_INTEGER, AML_METHOD, AML_MUTEX, AML_OPERATION_REGION, AML_PACKAGE, AML_POWER_RESOURCE, AML_PROCESSOR, AML_STRING, AML_THERMAL_ZONE, AML_UNINITIALIZED, aml_string_obj_t::content, EINVAL, ERR, errno, NULL, and aml_object_t::string.
Referenced by aml_concat_other_types(), aml_concat_resolve_to_buffer(), and aml_concat_string().
|
static |
Definition at line 200 of file concat.c.
References aml_concat_resolve_to_string(), AML_STRING, aml_string_set_empty(), assert, aml_string_obj_t::content, DEREF_DEFER, ERR, memcpy(), NULL, aml_object_t::string, and strlen().
Referenced by aml_concat().