Lines Matching refs:type

76 	unsigned int	type:8;		/* format_type enum */  member
104 if (spec->type == FORMAT_TYPE_WIDTH) { in format_decode()
109 spec->type = FORMAT_TYPE_NONE; in format_decode()
114 if (spec->type == FORMAT_TYPE_PRECISION) { in format_decode()
118 spec->type = FORMAT_TYPE_NONE; in format_decode()
123 spec->type = FORMAT_TYPE_NONE; in format_decode()
162 spec->type = FORMAT_TYPE_WIDTH; in format_decode()
177 spec->type = FORMAT_TYPE_PRECISION; in format_decode()
208 spec->type = FORMAT_TYPE_CHAR; in format_decode()
215 spec->type = FORMAT_TYPE_STR; in format_decode()
219 spec->type = FORMAT_TYPE_PTR; in format_decode()
223 spec->type = FORMAT_TYPE_PERCENT_CHAR; in format_decode()
245 spec->type = FORMAT_TYPE_NRCHARS; in format_decode()
252 spec->type = FORMAT_TYPE_FLOAT; in format_decode()
256 spec->type = FORMAT_TYPE_INVALID; in format_decode()
264 spec->type = FORMAT_TYPE_LONG_LONG; in format_decode()
267 spec->type = FORMAT_TYPE_LONG; in format_decode()
269 spec->type = FORMAT_TYPE_ULONG; in format_decode()
271 spec->type = FORMAT_TYPE_SIZE_T; in format_decode()
273 spec->type = FORMAT_TYPE_PTRDIFF; in format_decode()
276 spec->type = FORMAT_TYPE_BYTE; in format_decode()
278 spec->type = FORMAT_TYPE_UBYTE; in format_decode()
281 spec->type = FORMAT_TYPE_SHORT; in format_decode()
283 spec->type = FORMAT_TYPE_USHORT; in format_decode()
286 spec->type = FORMAT_TYPE_INT; in format_decode()
288 spec->type = FORMAT_TYPE_UINT; in format_decode()
294 static int is_struct_tag(struct symbol *type, const char *tag) in is_struct_tag() argument
296 return type->type == SYM_STRUCT && type->ident && !strcmp(type->ident->name, tag); in is_struct_tag()
299 static int has_struct_tag(struct symbol *type, const char *tag) in has_struct_tag() argument
303 if (type->type == SYM_STRUCT) in has_struct_tag()
304 return is_struct_tag(type, tag); in has_struct_tag()
305 if (type->type == SYM_UNION) { in has_struct_tag()
306 FOR_EACH_PTR(type->symbol_list, tmp) { in has_struct_tag()
315 static int is_char_type(struct symbol *type) in is_char_type() argument
317 return type == &uchar_ctype || type == &char_ctype || type == &schar_ctype; in is_char_type()
339 if (!node || node->type != SYM_NODE) in _typedef_lookup()
356 static void ip4(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in ip4() argument
383 if (type->ctype.modifiers & MOD_NODEREF) in ip4()
405 static void ip6(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in ip6() argument
419 if (type->ctype.modifiers & MOD_NODEREF) in ip6()
423 static void ipS(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in ipS() argument
449 "argument %d has type '%s'", fmt[0], vaidx, type_to_str(type)); in ipS()
452 static void hex_string(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in hex_string() argument
461 if (type->ctype.modifiers & MOD_NODEREF) in hex_string()
465 static void escaped_string(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in escaped_string() argument
472 if (type->ctype.modifiers & MOD_NODEREF) in escaped_string()
476 static void resource_string(const char *fmt, struct symbol *type, struct symbol *basetype, int vaid… in resource_string() argument
481 "but argument %d has type '%s'", fmt[0], vaidx, type_to_str(type)); in resource_string()
487 static void mac_address_string(const char *fmt, struct symbol *type, struct symbol *basetype, int v… in mac_address_string() argument
501 fmt[0], vaidx, type_to_str(type)); in mac_address_string()
503 if (type->ctype.modifiers & MOD_NODEREF) in mac_address_string()
507 static void dentry_file(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in dentry_file() argument
523 fmt[0], tag, vaidx, type_to_str(type)); in dentry_file()
526 static void time_and_date(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in time_and_date() argument
532 vaidx, type_to_str(type)); in time_and_date()
535 static void check_clock(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in check_clock() argument
546 vaidx, type_to_str(type)); in check_clock()
549 static void va_format(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in va_format() argument
555 … expects argument of type struct va_format*, argument %d has type '%s'", vaidx, type_to_str(type)); in va_format()
558 static void netdev_feature(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in netdev_feature() argument
575 vaidx, type_to_str(type)); in netdev_feature()
578 static void address_val(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in address_val() argument
607 suf, which->name, vaidx, type_to_str(type)); in address_val()
611 static void block_device(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in block_device() argument
621 fmt[0], tag, vaidx, type_to_str(type)); in block_device()
624 static void flag_string(const char *fmt, struct symbol *type, struct symbol *basetype, int vaidx) in flag_string() argument
638 fmt[1], vaidx, type_to_str(type)); in flag_string()
644 vaidx, type_to_str(type)); in flag_string()
651 static void device_node_string(const char *fmt, struct symbol *type, struct symbol *basetype, int v… in device_node_string() argument
659 vaidx, type_to_str(type)); in device_node_string()
665 struct symbol *type, *basetype; in pointer() local
667 type = get_type(arg); in pointer()
668 if (!type) { in pointer()
672 if (!is_ptr_type(type)) { in pointer()
674 vaidx, type_to_str(type)); in pointer()
687 basetype = get_real_base_type(type); in pointer()
696 if (basetype->type == SYM_ARRAY) { in pointer()
698 type = basetype; in pointer()
699 basetype = get_real_base_type(type); in pointer()
725 resource_string(fmt, type, basetype, vaidx); in pointer()
729 mac_address_string(fmt, type, basetype, vaidx); in pointer()
735 ip4(fmt, type, basetype, vaidx); in pointer()
738 ip6(fmt, type, basetype, vaidx); in pointer()
741 ipS(fmt, type, basetype, vaidx); in pointer()
754 escaped_string(fmt, type, basetype, vaidx); in pointer()
757 hex_string(fmt, type, basetype, vaidx); in pointer()
762 va_format(fmt, type, basetype, vaidx); in pointer()
767 netdev_feature(fmt, type, basetype, vaidx); in pointer()
770 address_val(fmt, type, basetype, vaidx); in pointer()
774 dentry_file(fmt, type, basetype, vaidx); in pointer()
777 time_and_date(fmt, type, basetype, vaidx); in pointer()
780 check_clock(fmt, type, basetype, vaidx); in pointer()
783 block_device(fmt, type, basetype, vaidx); in pointer()
786 flag_string(fmt, type, basetype, vaidx); in pointer()
789 device_node_string(fmt, type, basetype, vaidx); in pointer()
810 struct symbol *type; in hexbyte() local
821 type = get_type(arg); in hexbyte()
822 if (!type) { in hexbyte()
826 if (type == &char_ctype || type == &schar_ctype) in hexbyte()
828 vaidx, fmt_len, fmt, type_to_str(type)); in hexbyte()
885 if (arg->type != EXPR_SYMBOL) in arg_is___func__()
893 if (arg->type != EXPR_STRING) in arg_contains_caller()
901 if (base->type != SYM_ARRAY) in is_array_of_const_char()
917 if (base->type != SYM_PTR) in is_const_pointer_to_const_char()
947 static bool is_integer_specifier(int type) in is_integer_specifier() argument
949 switch (type) { in is_integer_specifier()
973 switch (expr->type) { in is_cast_expr()
1008 if (fmtexpr->type == EXPR_CONDITIONAL) { in do_check_printf_call()
1013 if (fmtexpr->type == EXPR_SYMBOL) { in do_check_printf_call()
1034 if (fmtexpr->type != EXPR_STRING) { in do_check_printf_call()
1055 if (spec.type == FORMAT_TYPE_NONE || in do_check_printf_call()
1056 spec.type == FORMAT_TYPE_PERCENT_CHAR) in do_check_printf_call()
1071 if (is_integer_specifier(spec.type)) { in do_check_printf_call()
1079 switch (spec.type) { in do_check_printf_call()