Lines Matching refs:type

28 	struct symbol *type;  in get_param_from_container_of()  local
33 type = get_type(expr); in get_param_from_container_of()
34 if (!type || type->type != SYM_PTR) in get_param_from_container_of()
38 if (expr->type != EXPR_BINOP || expr->op != '-') in get_param_from_container_of()
59 struct symbol *type; in get_offset_from_container_of() local
62 type = get_type(expr); in get_offset_from_container_of()
63 if (!type || type->type != SYM_PTR) in get_offset_from_container_of()
67 if (expr->type != EXPR_BINOP || expr->op != '-') in get_offset_from_container_of()
108 while (expr && expr->type == EXPR_DEREF) { in get_deref_count()
110 if (expr->type == EXPR_PREOP && expr->op == '*') in get_deref_count()
122 if (!expr || expr->type != EXPR_DEREF) in get_partial_deref()
125 if (expr->type == EXPR_PREOP && expr->op == '*') in get_partial_deref()
144 if (expr->type != EXPR_DEREF) in partial_deref_to_offset_str()
147 if (expr->type == EXPR_PREOP && expr->op == '*') in partial_deref_to_offset_str()
199 if (!container || container->type != EXPR_SYMBOL) in get_stored_container_name()
201 if (!expr || expr->type != EXPR_SYMBOL) in get_stored_container_name()
241 if (container->type == EXPR_DEREF) in get_container_name_helper()
246 if (container->type == EXPR_PREOP && container->op == '&') in get_container_name_helper()
248 if (expr->type == EXPR_PREOP && expr->op == '&') in get_container_name_helper()
288 struct symbol *type; in is_fn_ptr() local
292 if (expr->type != EXPR_SYMBOL && expr->type != EXPR_DEREF) in is_fn_ptr()
295 type = get_type(expr); in is_fn_ptr()
296 if (!type || type->type != SYM_PTR) in is_fn_ptr()
298 type = get_real_base_type(type); in is_fn_ptr()
299 if (!type || type->type != SYM_FN) in is_fn_ptr()
385 struct symbol *type, *tmp; in get_member_from_offset() local
388 type = get_real_base_type(sym); in get_member_from_offset()
389 if (!type || type->type != SYM_PTR) in get_member_from_offset()
391 type = get_real_base_type(type); in get_member_from_offset()
392 if (!type || type->type != SYM_STRUCT) in get_member_from_offset()
396 FOR_EACH_PTR(type->symbol_list, tmp) { in get_member_from_offset()
411 if (base_type && base_type->type == SYM_PTR) in get_member_type_from_offset()
413 if (offset == 0 && base_type && base_type->type == SYM_BASETYPE) in get_member_type_from_offset()
424 struct symbol *member, *type; in get_name_from_offset() local
430 type = get_real_base_type(arg); in get_name_from_offset()
431 if (!type || type->type != SYM_PTR) in get_name_from_offset()
434 type = get_real_base_type(type); in get_name_from_offset()
435 if (!type) in get_name_from_offset()
437 if (type->type != SYM_STRUCT) { in get_name_from_offset()
463 struct symbol *type; in save_vals() local
483 type = get_real_base_type(db_info->arg); in save_vals()
486 if (type->type != SYM_PTR) in save_vals()
488 type = get_real_base_type(type); in save_vals()
489 if (type->type == SYM_BASETYPE) in save_vals()
491 type = get_member_type_from_offset(db_info->arg, offset); in save_vals()
493 str_to_rl(type, (char *)value, &rl); in save_vals()
509 struct symbol *type; in load_tag_info_sym() local
514 type = get_real_base_type(arg); in load_tag_info_sym()
515 if (!type) in load_tag_info_sym()
518 if (type->type != SYM_PTR) in load_tag_info_sym()
520 type = get_real_base_type(type); in load_tag_info_sym()
521 if (!type) in load_tag_info_sym()
525 if (star || type->type == SYM_BASETYPE) { in load_tag_info_sym()
542 sval.type = get_real_base_type(arg); in load_tag_info_sym()