Home
last modified time | relevance | path

Searched refs:SYM_PTR (Results 1 – 25 of 48) sorted by relevance

12

/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_type.c156 if (sym->type == SYM_PTR) in get_symbol_from_deref()
439 if (sym && sym->type == SYM_PTR) in returns_pointer()
523 if (!type || type->type != SYM_PTR) in is_void_pointer()
536 if (!type || type->type != SYM_PTR) in is_char_pointer()
556 if (!type || type->type != SYM_PTR) in is_struct_ptr()
601 if (one->type == SYM_PTR) in types_equiv()
659 if (fn_type->type == SYM_PTR) in get_arg_type()
702 if (sub->type == SYM_PTR) in get_member_from_string()
723 if (!sym || sym->type != SYM_PTR) in get_member_type_from_key()
731 if (sym->type == SYM_PTR) in get_member_type_from_key()
[all …]
H A Dsymbol.c215 if (!base_type || base_type->type == SYM_PTR) in examine_base_type()
475 case SYM_PTR: in examine_symbol_type()
530 [SYM_PTR] = "pointer", in get_type_name()
785 { &string_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &char_ctype },
786 { &ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype },
787 { &null_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype },
788 { &label_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype },
789 { &lazy_ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype },
790 { &int_ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &int_ctype },
791 { &uint_ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &uint_ctype },
[all …]
H A Dsmatch_function_ptrs.c75 if (type->type != SYM_ARRAY && type->type != SYM_PTR) in xxx_is_array()
167 if (type && type->type == SYM_PTR) in get_returned_ptr()
225 if (type && type->type == SYM_PTR) { in get_fnptr_name()
254 if (type && type->type == SYM_PTR) in match_passes_function_pointer()
293 if (type->type == SYM_PTR || type->type == SYM_ARRAY) { in can_hold_function_ptr()
299 if (type->type == SYM_PTR || type->type == SYM_ARRAY) { in can_hold_function_ptr()
347 if (type->type == SYM_PTR || type->type == SYM_ARRAY) { in match_function_assign()
382 if (!type || type->type != SYM_PTR) in match_returns_function_pointer()
H A Dcheck_buffer_too_small_for_struct.c33 if (!left_type || left_type->type != SYM_PTR) in match_assign()
40 if (!right_type || right_type->type != SYM_PTR) in match_assign()
84 if (!left_type || left_type->type != SYM_PTR) in match_dereferences()
H A Dsmatch_container_of.c34 if (!type || type->type != SYM_PTR) in get_param_from_container_of()
63 if (!type || type->type != SYM_PTR) in get_offset_from_container_of()
296 if (!type || type->type != SYM_PTR) in is_fn_ptr()
389 if (!type || type->type != SYM_PTR) in get_member_from_offset()
411 if (base_type && base_type->type == SYM_PTR) in get_member_type_from_offset()
431 if (!type || type->type != SYM_PTR) in get_name_from_offset()
486 if (type->type != SYM_PTR) in save_vals()
518 if (type->type != SYM_PTR) in load_tag_info_sym()
H A Dsymbol.h61 SYM_PTR, enumerator
371 if (sym->type == SYM_PTR) in is_signed_type()
387 return type->type == SYM_PTR || type->type == SYM_ARRAY || type->type == SYM_FN; in is_ptr_type()
437 case SYM_PTR: in is_scalar_type()
457 case SYM_PTR: in is_integral_type()
H A Dsmatch_buf_size.c143 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in bytes_per_element()
341 if (type->type == SYM_PTR) in get_bytes_from_address()
445 if (!base_sym || base_sym->type != SYM_PTR) in get_stored_size_end_struct_bytes()
497 if (type->type != SYM_ARRAY && type->type != SYM_PTR) in get_array_size_bytes_rl()
651 if (type->type != SYM_PTR) in store_alloc()
658 if (type->type != SYM_BASETYPE && type->type != SYM_PTR) in store_alloc()
810 if (type->type != SYM_PTR) in is_type_bytes()
832 if (!type || (type->type != SYM_PTR && type->type != SYM_ARRAY)) in match_call()
H A Dsmatch_untracked_param.c179 if (!type || type->type != SYM_PTR) in match_after_call()
257 if (!type || type->type != SYM_PTR) in match_param_assign()
278 if (!type || type->type != SYM_PTR) in match_param_assign_in_asm()
H A Dsmatch_about_fn_ptr_arg.c61 if (!type || type->type != SYM_PTR) in link_function_arg()
160 if (type && type->type == SYM_PTR) in match_assign_function()
H A Dsmatch_fn_arg_link.c58 if (type->type != SYM_PTR) in save_in_fn_ptr_data_link_table()
156 if (!type || type->type != SYM_PTR) in check_passes_fn_and_data()
H A Dsmatch_struct_assignment.c76 if (type->type == SYM_PTR) { in get_struct_type()
126 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in remove_addr()
160 if (type->type == SYM_PTR) { in handle_non_struct_assignments()
418 (left_type->type != SYM_PTR && in __fake_struct_member_assignments()
H A Dsmatch_type_links.c58 if (!type || type->type != SYM_PTR) in match_assign()
H A Dsmatch_type_val.c202 if (!type || type->type != SYM_PTR) in is_ignored_fake_assignment()
369 if (left_type->type != SYM_PTR && in is_uncasted_pointer_assign()
372 if (right_type->type != SYM_PTR && in is_uncasted_pointer_assign()
438 if (!left_type || left_type->type != SYM_PTR) in is_uncasted_fn_param_from_db()
H A Dcheck_implicit_dependencies.c159 if (member_sym->type == SYM_PTR) in print_read_member_type()
194 if (member_sym->type == SYM_PTR) in print_write_member_type()
H A Dcheck_struct_type.c33 if (!left_type || left_type->type != SYM_PTR) in match_assign()
H A Dsmatch_passes_array_size.c56 if (!type || (type->type != SYM_PTR && type->type != SYM_ARRAY)) in match_call()
H A Dcheck_kmalloc_wrong_size.c27 if (!type || type->type != SYM_PTR) in get_data_size()
H A Dcheck_syscall_arg_type.c118 if (!type || type->type != SYM_PTR) in get_arg_type_from_type()
H A Dsmatch_kernel_user_data.c277 if (!type || type->type != SYM_PTR) in tag_as_user_data()
397 if (!sym || sym->type != SYM_PTR) in is_skb_data()
492 if (type && type->type == SYM_PTR) in set_points_to_user_data()
522 if (!left_type || left_type->type != SYM_PTR) in handle_struct_assignment()
537 if (!right_type || right_type->type != SYM_PTR) in handle_struct_assignment()
1186 while (tmp && tmp->type == SYM_PTR) in set_param_user_data()
H A Ddissect.c67 return type->type == SYM_PTR || type->type == SYM_ARRAY; in is_ptr()
224 case SYM_PTR: case SYM_FN: in examine_sym_node()
399 ret = alloc_symbol(unop->pos, SYM_PTR); in do_expression()
H A Dsmatch_real_absolute.c116 if (type->type != SYM_PTR && type->type != SYM_BASETYPE && in match_assign()
H A Dsmatch_constraints_required.c67 if (type->type != SYM_PTR && type->type != SYM_ARRAY) in bytes_per_element()
109 if (!type || type->type != SYM_PTR) in handle_zero_size_arrays()
H A Dsmatch_param_limit.c108 if (!estate_type(state) || estate_type(state)->type != SYM_PTR) in generify_mtag_range()
H A Dctags.c152 case SYM_PTR: in examine_symbol()
H A Dast-inspect.c106 [SYM_PTR] = "SYM_PTR", in symbol_type_name()

12