Lines Matching refs:target_desc

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