Home
last modified time | relevance | path

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

/linux-6.15/kernel/bpf/
H A Dlog.c469 if (base_type(type) == PTR_TO_BTF_ID) in reg_type_str()
486 prefix, str[base_type(type)], postfix); in reg_type_str()
665 switch (base_type(t)) { in type_is_map_ptr()
707 if (base_type(t) == PTR_TO_BTF_ID) in print_reg_state()
733 if (base_type(t) == PTR_TO_MEM) { in print_reg_state()
H A Dverifier.c400 type = base_type(type); in reg_not_null()
4850 switch (base_type(type)) { in is_spillable_regtype()
6277 if (reg2btf_ids[base_type(reg->type)] && in is_trusted_reg()
8049 switch (base_type(reg->type)) { in check_helper_mem_access()
9617 switch (base_type(arg_type)) { in check_func_arg()
11559 switch (base_type(ret_type)) { in check_helper_call()
12293 if ((base_type(reg->type) == PTR_TO_BTF_ID || reg2btf_ids[base_type(reg->type)])) { in get_kfunc_ptr_arg_type()
14329 switch (base_type(ptr_reg->type)) { in adjust_ptr_min_max_vals()
16648 switch (base_type(dst_reg->type)) { in check_ld_imm()
18348 switch (base_type(rold->type)) { in regsafe()
[all …]
H A Dbtf.c6770 type = base_type(ctx_arg_info->reg_type); in btf_ctx_access()
/linux-6.15/include/linux/
H A Dbpf_verifier.h894 static inline u32 base_type(u32 type) in base_type() function
935 return base_type(type) == PTR_TO_BTF_ID && type_flag(type) & MEM_ALLOC; in type_is_ptr_alloc_obj()
945 type = base_type(type); in type_is_pkt_pointer()
/linux-6.15/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-6.15/tools/testing/selftests/bpf/
H A Dveristat.c1493 const struct btf_type *base_type; in set_global_var() local
1498 base_type = btf__type_by_id(btf, btf__resolve_type(btf, t->type)); in set_global_var()
1499 if (!base_type) { in set_global_var()
1503 if (!is_preset_supported(base_type)) { in set_global_var()
1505 btf__name_by_offset(btf, base_type->name_off)); in set_global_var()
1510 if (btf_is_any_enum(base_type)) { in set_global_var()
1511 if (enum_value_from_name(btf, base_type, preset->svalue, &value)) { in set_global_var()
1519 preset->svalue, btf__name_by_offset(btf, base_type->name_off)); in set_global_var()
1526 bool is_signed = is_signed_type(base_type); in set_global_var()
/linux-6.15/drivers/nvmem/
H A Dsunplus-ocotp.c58 enum base_type { enum
/linux-6.15/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-6.15/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()
1130 if (func->base_type[(cloop - 0x10) >> 2] != type) in cpqhp_valid_replace()
H A Dcpqphp.h236 u8 base_type[0x06]; member
/linux-6.15/drivers/spi/
H A Dspi-bcm-qspi.c190 enum base_type { enum
303 static inline u32 bcm_qspi_read(struct bcm_qspi *qspi, enum base_type type, in bcm_qspi_read()
310 static inline void bcm_qspi_write(struct bcm_qspi *qspi, enum base_type type, in bcm_qspi_write()
/linux-6.15/tools/net/ynl/pyynl/
H A Dynl_gen_c.py627 def __init__(self, family, attr_set, attr, value, base_type): argument
630 self.base_type = base_type
665 return self.base_type._attr_policy(policy)
668 return self.base_type._attr_typol()
/linux-6.15/Documentation/bpf/
H A Dbtf.rst527 -> base_type