Lines Matching defs:var
167 const struct btf_type *var = btf__type_by_id(btf, sec_var->type);
168 const char *var_name = btf__name_by_offset(btf, var->name_off);
175 __u32 var_type_id = var->type;
178 if (btf_var(var)->linkage == BTF_VAR_STATIC)
187 align = btf__align_of(btf, var->type);
329 const struct btf_type *sec, *var;
367 var = btf__type_by_id(btf, sec_var->type);
368 var_name = btf__name_by_offset(btf, var->name_off);
369 var_type_id = var->type;
372 if (btf_var(var)->linkage == BTF_VAR_STATIC)
378 var = skip_mods_and_typedefs(btf, var->type, NULL);
382 * Instead of producing `typename *var`, they produce
383 * `typeof(typename) *var`. This allows us to keep a
387 needs_typeof = btf_is_array(var) || btf_is_ptr_to_func_proto(btf, var);
533 const struct btf_type *var = btf__type_by_id(btf, sec_var->type);
534 const char *var_name = btf__name_by_offset(btf, var->name_off);
538 if (btf_var(var)->linkage == BTF_VAR_STATIC)
541 var_size = btf__resolve_size(btf, var->type);
1536 const struct btf_var_secinfo *var;
1643 var = btf_var_secinfos(map_type);
1645 for (i = 0; i < len; i++, var++) {
1646 var_type = btf__type_by_id(btf, var->type);
1764 var = btf_var_secinfos(map_type);
1766 for (i = 0; i < len; i++, var++) {
1767 var_type = btf__type_by_id(btf, var->type);