Lines Matching refs:target_desc
31 union acpi_operand_object *target_desc) in acpi_ex_store_buffer_to_buffer() argument
40 if (source_desc == target_desc) { in acpi_ex_store_buffer_to_buffer()
53 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer()
54 (target_desc->common.flags & AOPOBJ_STATIC_POINTER)) { in acpi_ex_store_buffer_to_buffer()
55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer()
56 if (!target_desc->buffer.pointer) { in acpi_ex_store_buffer_to_buffer()
60 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer()
65 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer()
69 memset(target_desc->buffer.pointer, 0, in acpi_ex_store_buffer_to_buffer()
70 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer()
71 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer()
92 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer()
98 memcpy(target_desc->buffer.pointer, buffer, in acpi_ex_store_buffer_to_buffer()
99 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer()
103 length, target_desc->buffer.length)); in acpi_ex_store_buffer_to_buffer()
108 target_desc->buffer.flags = source_desc->buffer.flags; in acpi_ex_store_buffer_to_buffer()
109 target_desc->common.flags &= ~AOPOBJ_STATIC_POINTER; in acpi_ex_store_buffer_to_buffer()
128 union acpi_operand_object *target_desc) in acpi_ex_store_string_to_string() argument
137 if (source_desc == target_desc) { in acpi_ex_store_string_to_string()
150 if ((length < target_desc->string.length) && in acpi_ex_store_string_to_string()
151 (!(target_desc->common.flags & AOPOBJ_STATIC_POINTER))) { in acpi_ex_store_string_to_string()
156 memset(target_desc->string.pointer, 0, in acpi_ex_store_string_to_string()
157 (acpi_size)target_desc->string.length + 1); in acpi_ex_store_string_to_string()
158 memcpy(target_desc->string.pointer, buffer, length); in acpi_ex_store_string_to_string()
164 if (target_desc->string.pointer && in acpi_ex_store_string_to_string()
165 (!(target_desc->common.flags & AOPOBJ_STATIC_POINTER))) { in acpi_ex_store_string_to_string()
169 ACPI_FREE(target_desc->string.pointer); in acpi_ex_store_string_to_string()
172 target_desc->string.pointer = in acpi_ex_store_string_to_string()
175 if (!target_desc->string.pointer) { in acpi_ex_store_string_to_string()
179 target_desc->common.flags &= ~AOPOBJ_STATIC_POINTER; in acpi_ex_store_string_to_string()
180 memcpy(target_desc->string.pointer, buffer, length); in acpi_ex_store_string_to_string()
185 target_desc->string.length = length; in acpi_ex_store_string_to_string()