Home
last modified time | relevance | path

Searched refs:base_type (Results 1 – 14 of 14) sorted by relevance

/linux/include/linux/
H A Dbpf_verifier.h1323 static inline u32 base_type(u32 type) in base_type() function
1336 switch (base_type(type)) { in bpf_is_ptr_to_mem_or_btf_id()
1360 if (base_type(prog->aux->ctx_arg_info[i].reg_type) == PTR_TO_ARENA) in bpf_prog_has_arena_ctx_arg()
1395 return base_type(type) == PTR_TO_BTF_ID && in type_is_ptr_alloc_obj()
1407 switch (base_type(type)) { in type_is_map_ptr()
1419 type = base_type(type); in type_is_pkt_pointer()
/linux/tools/testing/selftests/bpf/
H A Dveristat.c2079 const struct btf_type *base_type; in adjust_var_secinfo() local
2088 base_type = btf__type_by_id(btf, tid); in adjust_var_secinfo()
2099 err = adjust_var_secinfo_member(btf, base_type, 0, atom->name, sinfo); in adjust_var_secinfo()
2110 base_type = btf__type_by_id(btf, sinfo->type); in adjust_var_secinfo()
2121 const struct btf_type *base_type; in set_global_var() local
2126 base_type = btf__type_by_id(btf, btf__resolve_type(btf, sinfo->type)); in set_global_var()
2127 if (!base_type) { in set_global_var()
2131 if (!is_preset_supported(base_type)) { in set_global_var()
2138 if (btf_is_any_enum(base_type)) { in set_global_var()
2139 if (enum_value_from_name(btf, base_type, preset->value.svalue, &value)) { in set_global_var()
[all …]
/linux/kernel/bpf/
H A Dlog.c429 if (base_type(type) == PTR_TO_BTF_ID) in reg_type_str()
446 prefix, str[base_type(type)], postfix); in reg_type_str()
650 if (base_type(t) == PTR_TO_BTF_ID) in print_reg_state()
676 if (base_type(t) == PTR_TO_MEM) { in print_reg_state()
H A Ddiagnostics.c931 switch (base_type(type)) { in bpf_diag_reg_type_plain()
1447 if (base_type(reg->type) == PTR_TO_BTF_ID && reg->btf && reg->btf_id) { in diag_snapshot_reg()
2123 if (base_type(snapshot->type) == PTR_TO_CTX) in diag_reg_snapshot()
2126 if (base_type(snapshot->type) == PTR_TO_STACK) in diag_reg_snapshot()
2129 if (base_type(snapshot->type) == PTR_TO_MAP_VALUE) { in diag_reg_snapshot()
2139 if (base_type(snapshot->type) == CONST_PTR_TO_MAP) { in diag_reg_snapshot()
2158 if (base_type(snapshot->type) == PTR_TO_BTF_ID && btf) in diag_reg_snapshot()
H A Dverifier.c362 type = base_type(type); in reg_not_null()
1971 return base_type(reg->type) == PTR_TO_MEM && in reg_is_dynptr_slice_pkt()
4494 if (base_type(reg->type) != PTR_TO_BTF_ID) in map_kptr_match_type()
4911 if (base_type(info->reg_type) == PTR_TO_BTF_ID) { in __check_ctx_access()
5129 if (reg2btf_ids[base_type(reg->type)] && in is_trusted_reg()
6436 } else if (base_type(reg->type) == PTR_TO_MEM) { in check_mem_access()
6512 if (base_type(info.reg_type) == PTR_TO_BTF_ID) { in check_mem_access()
6573 } else if (base_type(reg->type) == PTR_TO_BTF_ID && in check_mem_access()
6580 } else if (base_type(reg->type) == PTR_TO_BUF && in check_mem_access()
7026 switch (base_type(re in check_helper_mem_access()
[all...]
H A Dstates.c540 switch (base_type(rold->type)) { in regsafe()
H A Dbtf.c7026 type = base_type(ctx_arg_info->reg_type); in btf_ctx_access()
/linux/drivers/pinctrl/bcm/
H A Dpinctrl-nsp-gpio.c69 enum base_type { enum
92 static inline void nsp_set_bit(struct nsp_gpio *chip, enum base_type address, in nsp_set_bit()
116 static inline bool nsp_get_bit(struct nsp_gpio *chip, enum base_type address, in nsp_get_bit()
/linux/drivers/nvmem/
H A Dsunplus-ocotp.c57 enum base_type { enum
/linux/net/ipv4/
H A Dbpf_tcp_ca.c52 if (base_type(info->reg_type) == PTR_TO_BTF_ID && in bpf_tcp_ca_is_valid_access()
/linux/drivers/pci/hotplug/
H A Dcpqphp_pci.c615 func->base_type[(cloop - 0x10) >> 2] = type; in cpqhp_save_base_addr_length()
654 func->base_type[(cloop - 0x10) >> 2] = type; in cpqhp_save_base_addr_length()
1124 if (func->base_type[(cloop - 0x10) >> 2] != type) in cpqhp_valid_replace()
H A Dcpqphp.h236 u8 base_type[0x06]; member
/linux/tools/net/ynl/pyynl/
H A Dynl_gen_c.py730 def __init__(self, family, attr_set, attr, value, base_type): argument
733 self.base_type = base_type
789 return self.base_type._attr_policy(policy)
792 return self.base_type._attr_typol()
/linux/Documentation/kbuild/
H A Dgendwarfksyms.rst320 "member base_type int byte_size(4) "