Lines Matching +full:no +full:- +full:insert +full:- +full:detect
1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: utstrsuppt - Support functions for string-to-integer conversion
27 * PARAMETERS: string - Null terminated input string
28 * return_value_ptr - Where the converted value is returned
30 * RETURN: Status and 64-bit converted integer
35 * NOTE: Maximum 64-bit unsigned octal value is 01777777777777777777777
36 * Maximum 32-bit unsigned octal value is 037777777777
49 * Character must be ASCII 0-7, otherwise: in acpi_ut_convert_octal_string()
50 * 1) Runtime: terminate with no error, per the ACPI spec in acpi_ut_convert_octal_string()
60 /* Convert and insert this octal digit into the accumulator */ in acpi_ut_convert_octal_string()
81 * PARAMETERS: string - Null terminated input string
82 * return_value_ptr - Where the converted value is returned
84 * RETURN: Status and 64-bit converted integer
89 * NOTE: Maximum 64-bit unsigned decimal value is 18446744073709551615
90 * Maximum 32-bit unsigned decimal value is 4294967295
103 * Character must be ASCII 0-9, otherwise: in acpi_ut_convert_decimal_string()
104 * 1) Runtime: terminate with no error, per the ACPI spec in acpi_ut_convert_decimal_string()
114 /* Convert and insert this decimal digit into the accumulator */ in acpi_ut_convert_decimal_string()
135 * PARAMETERS: string - Null terminated input string
136 * return_value_ptr - Where the converted value is returned
138 * RETURN: Status and 64-bit converted integer
143 * NOTE: Maximum 64-bit unsigned hex value is 0xFFFFFFFFFFFFFFFF
144 * Maximum 32-bit unsigned hex value is 0xFFFFFFFF
157 * Character must be ASCII A-F, a-f, or 0-9, otherwise: in acpi_ut_convert_hex_string()
158 * 1) Runtime: terminate with no error, per the ACPI spec in acpi_ut_convert_hex_string()
168 /* Convert and insert this hex digit into the accumulator */ in acpi_ut_convert_hex_string()
189 * PARAMETERS: string - Pointer to input ASCII string
192 * used by the caller to detect end-of-string.
214 * PARAMETERS: string - Pointer to input ASCII string
217 * used by the caller to detect end-of-string.
239 * PARAMETERS: string - Pointer to input ASCII string
243 * DESCRIPTION: Detect and remove a hex "0x" prefix
263 * PARAMETERS: string - Pointer to input ASCII string
283 * PARAMETERS: string - Pointer to input ASCII string
288 * DESCRIPTION: Detect and remove an octal prefix (zero)
307 * PARAMETERS: accumulated_value - Current value of the integer value
310 * base - Radix, either 8/10/16
311 * ascii_digit - ASCII single digit to be inserted
313 * RETURN: Status and result of the convert/insert operation. The only
357 * PARAMETERS: multiplicand - Current accumulated converted integer
358 * base - Base/Radix
359 * out_product - Where the product is returned
361 * RETURN: Status and 64-bit product
363 * DESCRIPTION: Multiply two 64-bit values, with checking for 64-bit overflow as
364 * well as 32-bit overflow if necessary (if the current global
383 * Check for 64-bit overflow before the actual multiplication. in acpi_ut_strtoul_multiply64()
385 * Notes: 64-bit division is often not supported on 32-bit platforms in acpi_ut_strtoul_multiply64()
387 * 64-bit divide function. Also, Multiplier is currently only used in acpi_ut_strtoul_multiply64()
397 /* Check for 32-bit overflow if necessary */ in acpi_ut_strtoul_multiply64()
411 * PARAMETERS: addend1 - Current accumulated converted integer
412 * digit - New hex value/char
413 * out_sum - Where sum is returned (Accumulator)
415 * RETURN: Status and 64-bit sum
417 * DESCRIPTION: Add two 64-bit values, with checking for 64-bit overflow as
418 * well as 32-bit overflow if necessary (if the current global
427 /* Check for 64-bit overflow before the actual addition */ in acpi_ut_strtoul_add64()
429 if ((addend1 > 0) && (digit > (ACPI_UINT64_MAX - addend1))) { in acpi_ut_strtoul_add64()
435 /* Check for 32-bit overflow if necessary */ in acpi_ut_strtoul_add64()