Searched refs:st_ops_desc (Results 1 – 3 of 3) sorted by relevance
26 const struct bpf_struct_ops_desc *st_ops_desc; member298 void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc) in bpf_struct_ops_desc_release() argument303 arg_info = st_ops_desc->arg_info; in bpf_struct_ops_desc_release()304 for (i = 0; i < btf_type_vlen(st_ops_desc->type); i++) in bpf_struct_ops_desc_release()331 int bpf_struct_ops_desc_init(struct bpf_struct_ops_desc *st_ops_desc, in bpf_struct_ops_desc_init() argument335 struct bpf_struct_ops *st_ops = st_ops_desc->st_ops; in bpf_struct_ops_desc_init()386 st_ops_desc->arg_info = arg_info; in bpf_struct_ops_desc_init()387 st_ops_desc->type = t; in bpf_struct_ops_desc_init()388 st_ops_desc->type_id = type_id; in bpf_struct_ops_desc_init()389 st_ops_desc->value_id = value_id; in bpf_struct_ops_desc_init()[all …]
23385 const struct bpf_struct_ops_desc *st_ops_desc; in check_struct_ops_btf_id() local23415 st_ops_desc = bpf_struct_ops_find(btf, btf_id); in check_struct_ops_btf_id()23416 if (!st_ops_desc) { in check_struct_ops_btf_id()23421 st_ops = st_ops_desc->st_ops; in check_struct_ops_btf_id()23423 t = st_ops_desc->type; in check_struct_ops_btf_id()23464 for (i = 0; i < st_ops_desc->arg_info[member_idx].cnt; i++) { in check_struct_ops_btf_id()23465 if (st_ops_desc->arg_info[member_idx].info->refcounted) { in check_struct_ops_btf_id()23488 return bpf_prog_ctx_arg_info_init(prog, st_ops_desc->arg_info[member_idx].info, in check_struct_ops_btf_id()23489 st_ops_desc->arg_info[member_idx].cnt); in check_struct_ops_btf_id()
2031 int bpf_struct_ops_desc_init(struct bpf_struct_ops_desc *st_ops_desc,2035 void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc);2064 static inline void bpf_struct_ops_desc_release(struct bpf_struct_ops_desc *st_ops_desc) in bpf_struct_ops_desc_release() argument