Lines Matching refs:st_ops

33 	const struct bpf_struct_ops *st_ops;  member
108 struct bpf_struct_ops *st_ops; in bpf_struct_ops_init() local
127 st_ops = bpf_struct_ops[i]; in bpf_struct_ops_init()
129 if (strlen(st_ops->name) + VALUE_PREFIX_LEN >= in bpf_struct_ops_init()
132 st_ops->name); in bpf_struct_ops_init()
135 sprintf(value_name, "%s%s", VALUE_PREFIX, st_ops->name); in bpf_struct_ops_init()
145 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init()
149 st_ops->name); in bpf_struct_ops_init()
155 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_init()
165 st_ops->name); in bpf_struct_ops_init()
171 mname, st_ops->name); in bpf_struct_ops_init()
181 &st_ops->func_models[j])) { in bpf_struct_ops_init()
183 mname, st_ops->name); in bpf_struct_ops_init()
189 if (st_ops->init(btf)) { in bpf_struct_ops_init()
191 st_ops->name); in bpf_struct_ops_init()
193 st_ops->type_id = type_id; in bpf_struct_ops_init()
194 st_ops->type = t; in bpf_struct_ops_init()
195 st_ops->value_id = value_id; in bpf_struct_ops_init()
196 st_ops->value_type = btf_type_by_id(btf, in bpf_struct_ops_init()
282 const struct btf_type *t = st_map->st_ops->type; in bpf_struct_ops_map_put_progs()
356 const struct bpf_struct_ops *st_ops = st_map->st_ops; in bpf_struct_ops_map_update_elem() local
359 const struct btf_type *t = st_ops->type; in bpf_struct_ops_map_update_elem()
372 err = check_zero_holes(st_ops->value_type, value); in bpf_struct_ops_map_update_elem()
420 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem()
464 prog->aux->attach_btf_id != st_ops->type_id || in bpf_struct_ops_map_update_elem()
482 &st_ops->func_models[i], in bpf_struct_ops_map_update_elem()
499 err = st_ops->reg(kdata); in bpf_struct_ops_map_update_elem()
539 st_map->st_ops->unreg(&st_map->kvalue.data); in bpf_struct_ops_map_delete_elem()
596 const struct bpf_struct_ops *st_ops; in bpf_struct_ops_map_alloc() local
605 st_ops = bpf_struct_ops_find_value(attr->btf_vmlinux_value_type_id); in bpf_struct_ops_map_alloc()
606 if (!st_ops) in bpf_struct_ops_map_alloc()
609 vt = st_ops->value_type; in bpf_struct_ops_map_alloc()
613 t = st_ops->type; in bpf_struct_ops_map_alloc()
625 st_map->st_ops = st_ops; in bpf_struct_ops_map_alloc()