Lines Matching refs:enum_t
645 static bool find_btf_enum_const(const struct btf *btf, const struct btf_type *enum_t, in find_btf_enum_const() argument
654 if (!btf || !enum_t) in find_btf_enum_const()
657 for (i = 0, n = btf_vlen(enum_t); i < n; i++) { in find_btf_enum_const()
658 e = &btf_enum(enum_t)[i]; in find_btf_enum_const()
677 const struct btf_type *enum_t, in seq_print_delegate_opts() argument
698 if (btf && enum_t) { in seq_print_delegate_opts()
699 for (i = 0, n = btf_vlen(enum_t); i < n; i++) { in seq_print_delegate_opts()
700 e = &btf_enum(enum_t)[i]; in seq_print_delegate_opts()
875 const struct btf_type *enum_t; in bpf_parse_param() local
887 enum_t = info.cmd_t; in bpf_parse_param()
892 enum_t = info.map_t; in bpf_parse_param()
897 enum_t = info.prog_t; in bpf_parse_param()
902 enum_t = info.attach_t; in bpf_parse_param()
913 } else if (find_btf_enum_const(info.btf, enum_t, enum_pfx, p, &val)) { in bpf_parse_param()