Lines Matching refs:enum_t
650 static bool find_btf_enum_const(const struct btf *btf, const struct btf_type *enum_t, in find_btf_enum_const() argument
659 if (!btf || !enum_t) in find_btf_enum_const()
662 for (i = 0, n = btf_vlen(enum_t); i < n; i++) { in find_btf_enum_const()
663 e = &btf_enum(enum_t)[i]; in find_btf_enum_const()
682 const struct btf_type *enum_t, in seq_print_delegate_opts() argument
703 if (btf && enum_t) { in seq_print_delegate_opts()
704 for (i = 0, n = btf_vlen(enum_t); i < n; i++) { in seq_print_delegate_opts()
705 e = &btf_enum(enum_t)[i]; in seq_print_delegate_opts()
880 const struct btf_type *enum_t; in bpf_parse_param() local
892 enum_t = info.cmd_t; in bpf_parse_param()
897 enum_t = info.map_t; in bpf_parse_param()
902 enum_t = info.prog_t; in bpf_parse_param()
907 enum_t = info.attach_t; in bpf_parse_param()
918 } else if (find_btf_enum_const(info.btf, enum_t, enum_pfx, p, &val)) { in bpf_parse_param()