Lines Matching defs:args

2725  * @args: Arguments for the format string
2748 int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
2787 set_field_width(&spec, va_arg(args, int));
2791 set_precision(&spec, va_arg(args, int));
2805 c = (unsigned char) va_arg(args, int);
2818 str = string(str, end, va_arg(args, char *), spec);
2822 str = pointer(fmt, str, end, va_arg(args, void *),
2848 num = va_arg(args, long long);
2851 num = va_arg(args, unsigned long);
2854 num = va_arg(args, long);
2858 num = va_arg(args, ssize_t);
2860 num = va_arg(args, size_t);
2863 num = va_arg(args, ptrdiff_t);
2866 num = (unsigned char) va_arg(args, int);
2869 num = (signed char) va_arg(args, int);
2872 num = (unsigned short) va_arg(args, int);
2875 num = (short) va_arg(args, int);
2878 num = (int) va_arg(args, int);
2881 num = va_arg(args, unsigned int);
2907 * @args: Arguments for the format string
2917 int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
2924 i = vsnprintf(buf, size, fmt, args);
2949 va_list args;
2952 va_start(args, fmt);
2953 i = vsnprintf(buf, size, fmt, args);
2954 va_end(args);
2973 va_list args;
2976 va_start(args, fmt);
2977 i = vscnprintf(buf, size, fmt, args);
2978 va_end(args);
2988 * @args: Arguments for the format string
2998 int vsprintf(char *buf, const char *fmt, va_list args)
3000 return vsnprintf(buf, INT_MAX, fmt, args);
3018 va_list args;
3021 va_start(args, fmt);
3022 i = vsnprintf(buf, INT_MAX, fmt, args);
3023 va_end(args);
3037 * vbin_printf - Parse a format string and place args' binary value in a buffer
3038 * @bin_buf: The buffer to place args' binary value
3041 * @args: Arguments for the format string
3053 int vbin_printf(u32 *bin_buf, size_t size, const char *fmt, va_list args)
3068 val8 = va_arg(args, unsigned long long); \
3077 val4 = va_arg(args, int); \
3111 const char *save_str = va_arg(args, char *);
3142 str = pointer(fmt, str, end, va_arg(args, void *),
3216 const char *args = (const char *)bin_buf;
3228 args = PTR_ALIGN(args, sizeof(u32)); \
3229 *(u32 *)&value = *(u32 *)args; \
3230 *((u32 *)&value + 1) = *(u32 *)(args + 4); \
3232 args = PTR_ALIGN(args, sizeof(type)); \
3233 value = *(typeof(type) *)args; \
3235 args += sizeof(type); \
3294 const char *str_arg = args;
3295 args += strlen(str_arg) + 1;
3319 len = copy = strlen(args);
3322 memcpy(str, args, copy);
3324 args += len + 1;
3402 * bprintf - Parse a format string and place args' binary value in a buffer
3403 * @bin_buf: The buffer to place args' binary value
3413 va_list args;
3416 va_start(args, fmt);
3417 ret = vbin_printf(bin_buf, size, fmt, args);
3418 va_end(args);
3430 * @args: arguments
3432 int vsscanf(const char *buf, const char *fmt, va_list args)
3514 *va_arg(args, int *) = str - buf;
3528 char *s = (char *)va_arg(args, char*);
3539 char *s = (char *)va_arg(args, char *);
3569 char *s = (char *)va_arg(args, char *);
3662 *va_arg(args, signed char *) = val.s;
3664 *va_arg(args, unsigned char *) = val.u;
3668 *va_arg(args, short *) = val.s;
3670 *va_arg(args, unsigned short *) = val.u;
3674 *va_arg(args, long *) = val.s;
3676 *va_arg(args, unsigned long *) = val.u;
3680 *va_arg(args, long long *) = val.s;
3682 *va_arg(args, unsigned long long *) = val.u;
3685 *va_arg(args, size_t *) = val.u;
3689 *va_arg(args, int *) = val.s;
3691 *va_arg(args, unsigned int *) = val.u;
3713 va_list args;
3716 va_start(args, fmt);
3717 i = vsscanf(buf, fmt, args);
3718 va_end(args);