Home
last modified time | relevance | path

Searched refs:type_bytes (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_stack.c50 total_size += type_bytes(base); in match_declarations()
55 if (type_bytes(base) >= MAX_ALLOWED) { in match_declarations()
57 sm_warning("'%s' puts %d bytes on stack", name, type_bytes(base)); in match_declarations()
59 add_scope_hook(&scope_end, INT_PTR(type_bytes(base))); in match_declarations()
H A Dcheck_memcpy_overflow.c71 struct_bytes = type_bytes(type); in bytes_to_end_of_struct()
92 return type_bytes(type); in size_of_union()
175 offset += type_bytes(tmp); in ends_on_struct_member_boundary()
176 size = type_bytes(tmp); in ends_on_struct_member_boundary()
183 offset += type_bytes(tmp); in ends_on_struct_member_boundary()
184 size += type_bytes(tmp); in ends_on_struct_member_boundary()
H A Dcheck_buffer_too_small_for_struct.c49 if (bytes >= type_bytes(left_type)) in match_assign()
59 if (min_size.value >= type_bytes(left_type)) in match_assign()
98 if (min_size.value >= type_bytes(left_type)) in match_dereferences()
H A Dsmatch_address.c108 if (!(type_bits(tmp) % 8) && type_bits(tmp) / 8 == type_bytes(tmp)) in get_member_offset()
109 offset += type_bytes(tmp); in get_member_offset()
295 bytes.uvalue = type_bytes(type); in get_address_rl()
301 if (type_bytes(type)) { in get_address_rl()
H A Dsmatch_buf_size.c147 return type_bytes(type); in bytes_per_element()
344 ret = type_bytes(type); in get_bytes_from_address()
439 if (!type_bytes(sym)) in get_stored_size_end_struct_bytes()
460 return estate_to_size(state) - type_bytes(base_sym) + type_bytes(get_type(expr)); in get_stored_size_end_struct_bytes()
500 bytes = type_bytes(type); in get_array_size_bytes_rl()
816 if (sval.value != type_bytes(type)) in is_type_bytes()
H A Dsmatch_constraints_required.c71 return type_bytes(type); in bytes_per_element()
129 if (struct_size.value != type_bytes(type)) in handle_zero_size_arrays()
140 sval.value == type_bytes(array_type)) in handle_zero_size_arrays()
143 sval.value == type_bytes(array_type)) in handle_zero_size_arrays()
H A Dcheck_allocating_enough_data.c41 bytes = type_bytes(left_type); in db_returns_buf_size()
H A Dcheck_cast_assign.c44 cast_size = type_bytes(type); in match_overflow()
H A Dcheck_kmalloc_wrong_size.c32 return type_bytes(type); in get_data_size()
H A Dsmatch_mtag.c249 if (!type_bytes(type)) in get_array_mtag_offset()
258 *offset = start_offset + sval.value * type_bytes(type); in get_array_mtag_offset()
H A Dsmatch_math.c1147 ret.value = type_bytes(sym); in handle_sizeof()
1332 res_sval->value = offset + sval.value * type_bytes(type); in get_offset_from_down()
1347 res_sval->value = offset + sval.value * type_bytes(type); in get_offset_from_down()
1351 sval.value = type_bytes(type); in get_offset_from_down()
H A Dcheck_rosenberg.c90 align += type_bytes(tmp); in check_struct()
H A Dsmatch_container_of.c400 cur += type_bytes(tmp); in get_member_from_offset()
H A Dsmatch_buf_comparison.c140 return type_bytes(type); in bytes_per_element()
H A Dsmatch_type.c42 int type_bytes(struct symbol *type) in type_bytes() function
H A Dsmatch_helper.c345 size = type_bytes(get_base_type(expr->cast_type)); in __get_variable_from_expr()
H A Dsmatch.h472 int type_bytes(struct symbol *type);