Lines Matching refs:string
76 * truncated if the string is smaller than the buffer. However, "other"
84 * If the original source was a string, we must truncate the buffer,
141 /* We know that source_desc is a string by now */
143 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer);
144 length = source_desc->string.length;
147 * Replace existing string value if it will fit and the string
150 if ((length < target_desc->string.length) &&
154 * Clear old string and copy in the new one
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 &&
169 ACPI_FREE(target_desc->string.pointer);
172 target_desc->string.pointer =
175 if (!target_desc->string.pointer) {
180 memcpy(target_desc->string.pointer, buffer, length);
185 target_desc->string.length = length;