Lines Matching full:string
21 u16 base, u8 *string, u8 max_length, u8 leading_zeros);
28 * Integer, Buffer, or String
30 * implicit_conversion - Used for string conversion
62 /* Note: Takes advantage of common buffer/string fields */ in acpi_ex_convert_to_integer()
74 * Convert the buffer/string to an integer. Note that both buffers and in acpi_ex_convert_to_integer()
80 * 2) The end of the buffer or string has been reached in acpi_ex_convert_to_integer()
84 /* String conversion is different than Buffer conversion */ in acpi_ex_convert_to_integer()
89 * Convert string to an integer - for most cases, the string must be in acpi_ex_convert_to_integer()
95 * All other string-to-integer conversions are implicit conversions. in acpi_ex_convert_to_integer()
165 * Integer, Buffer, or String
212 * Size will be the string length in acpi_ex_convert_to_buffer()
214 * NOTE: Add one to the string length to include the null terminator. in acpi_ex_convert_to_buffer()
220 obj_desc->string. in acpi_ex_convert_to_buffer()
226 /* Copy the string to the buffer */ in acpi_ex_convert_to_buffer()
229 strncpy((char *)new_buf, (char *)obj_desc->string.pointer, in acpi_ex_convert_to_buffer()
230 obj_desc->string.length); in acpi_ex_convert_to_buffer()
251 * string - Where the string is returned
255 * RETURN: Actual string length
257 * DESCRIPTION: Convert an ACPI Integer to a hex or decimal string
263 u16 base, u8 *string, u8 data_width, u8 leading_zeros) in acpi_ex_convert_to_ascii() argument
319 string[k] = (u8) (ACPI_ASCII_ZERO + remainder); in acpi_ex_convert_to_ascii()
344 string[k] = hex_char; in acpi_ex_convert_to_ascii()
357 * Finally, null terminate the string and return the length in acpi_ex_convert_to_ascii()
360 string[0] = ACPI_ASCII_ZERO; in acpi_ex_convert_to_ascii()
364 string[k] = 0; in acpi_ex_convert_to_ascii()
373 * Integer, Buffer, or String
374 * result_desc - Where the string object is returned
375 * type - String flags (base and conversion type)
379 * DESCRIPTION: Convert an ACPI Object to a string. Supports both implicit
432 /* Two hex string characters for each integer byte */ in acpi_ex_convert_to_string()
440 * Create a new String in acpi_ex_convert_to_string()
458 /* Convert integer to string */ in acpi_ex_convert_to_string()
468 return_desc->string.length = string_length; in acpi_ex_convert_to_string()
473 return_desc->string.length += 2; in acpi_ex_convert_to_string()
481 /* Setup string length, base, and separator */ in acpi_ex_convert_to_string()
489 * a string of decimal values separated by commas." in acpi_ex_convert_to_string()
495 * Calculate the final string length. Individual string values in acpi_ex_convert_to_string()
511 * Implicit buffer-to-string conversion in acpi_ex_convert_to_string()
514 * "The entire contents of the buffer are converted to a string of in acpi_ex_convert_to_string()
528 * From ACPI: "If Data is a buffer, it is converted to a string of in acpi_ex_convert_to_string()
543 * Create a new string object and string buffer in acpi_ex_convert_to_string()
583 * Null terminate the string in acpi_ex_convert_to_string()
672 * a Buffer or a String to an Integer if necessary. in acpi_ex_convert_to_target_type()
681 * The operand must be a String. We can convert an in acpi_ex_convert_to_target_type()
692 * Integer or String if necessary in acpi_ex_convert_to_target_type()