Lines Matching full:string
76 * truncated if the string is smaller than the buffer. However, "other" in acpi_ex_store_buffer_to_buffer()
84 * If the original source was a string, we must truncate the buffer, in acpi_ex_store_buffer_to_buffer()
122 * DESCRIPTION: Copy a String object to another String object
141 /* We know that source_desc is a string by now */ in acpi_ex_store_string_to_string()
143 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); in acpi_ex_store_string_to_string()
144 length = source_desc->string.length; in acpi_ex_store_string_to_string()
147 * Replace existing string value if it will fit and the string in acpi_ex_store_string_to_string()
150 if ((length < target_desc->string.length) && in acpi_ex_store_string_to_string()
153 * String will fit in existing non-static buffer. in acpi_ex_store_string_to_string()
154 * Clear old string and copy in the new one 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()
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()
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()