Lines Matching +full:count +full:- +full:width

1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: utprint - Formatted printing routines
6 * Copyright (C) 2000 - 2025, Intel Corp.
25 acpi_ut_bound_string_length(const char *string, acpi_size count);
32 u8 base, s32 width, s32 precision, u8 type);
40 * PARAMETERS: string - String with boundary
41 * count - Boundary of the string
43 * RETURN: Length of the string. Less than or equal to Count.
50 acpi_ut_bound_string_length(const char *string, acpi_size count) in acpi_ut_bound_string_length() argument
54 while (*string && count) { in acpi_ut_bound_string_length()
57 count--; in acpi_ut_bound_string_length()
67 * PARAMETERS: string - String with boundary
68 * end - Boundary of the string
69 * c - Character to be output to the string
92 * PARAMETERS: string - Buffer to hold reverse-ordered string
93 * number - Integer to be converted
94 * base - Base of the integer
95 * upper - Whether or not using upper cased digits
131 * PARAMETERS: string - String buffer
132 * number_ptr - Where the number is returned
146 number += *(string++) - '0'; in acpi_ut_scan_number()
157 * PARAMETERS: string - String buffer
158 * number - The number to be converted
176 *(pos2++) = *(--pos1); in acpi_ut_print_number()
187 * PARAMETERS: string - String buffer with boundary
188 * end - Boundary of the string
189 * number - The number to be converted
190 * base - Base of the integer
191 * width - Field width
192 * precision - Precision of the integer
193 * type - Special printing flags
204 u8 base, s32 width, s32 precision, u8 type) in acpi_ut_format_number() argument
234 sign = '-'; in acpi_ut_format_number()
235 number = -(s64)number; in acpi_ut_format_number()
236 width--; in acpi_ut_format_number()
239 width--; in acpi_ut_format_number()
242 width--; in acpi_ut_format_number()
246 width--; in acpi_ut_format_number()
248 width--; in acpi_ut_format_number()
263 width -= precision; in acpi_ut_format_number()
268 while (--width >= 0) { in acpi_ut_format_number()
284 while (--width >= 0) { in acpi_ut_format_number()
289 while (i <= --precision) { in acpi_ut_format_number()
292 while (--i >= 0) { in acpi_ut_format_number()
296 while (--width >= 0) { in acpi_ut_format_number()
307 * PARAMETERS: string - String with boundary
308 * size - Boundary of the string
309 * format - Standard printf format
310 * args - Argument list
322 s32 width; in vsnprintf() local
360 } else if (*format == '-') { in vsnprintf()
368 /* Process width */ in vsnprintf()
370 width = -1; in vsnprintf()
373 width = (s32)number; in vsnprintf()
376 width = va_arg(args, int); in vsnprintf()
377 if (width < 0) { in vsnprintf()
378 width = -width; in vsnprintf()
385 precision = -1; in vsnprintf()
403 qualifier = -1; in vsnprintf()
423 while (--width > 0) { in vsnprintf()
434 while (--width > 0) { in vsnprintf()
448 while (length < width--) { in vsnprintf()
461 while (length < width--) { in vsnprintf()
493 if (width == -1) { in vsnprintf()
494 width = 2 * sizeof(void *); in vsnprintf()
501 16, width, precision, type); in vsnprintf()
512 --format; in vsnprintf()
540 width, precision, type); in vsnprintf()
547 end[-1] = '\0'; in vsnprintf()
558 * PARAMETERS: string - String with boundary
559 * size - Boundary of the string
560 * Format, ... - Standard printf format
584 * PARAMETERS: string - String with boundary
585 * Format, ... - Standard printf format
610 * PARAMETERS: format - Standard printf format
611 * args - Argument list
638 * PARAMETERS: Format, ... - Standard printf format
662 * PARAMETERS: file - File descriptor
663 * format - Standard printf format
664 * args - Argument list
691 * PARAMETERS: file - File descriptor
692 * Format, ... - Standard printf format