Lines Matching refs:bpf_struct_ops
32 const struct bpf_struct_ops *st_ops;
69 extern struct bpf_struct_ops bpf_##_name; \
85 static struct bpf_struct_ops * const bpf_struct_ops[] = { variable
104 struct bpf_struct_ops *st_ops; in bpf_struct_ops_init()
122 for (i = 0; i < ARRAY_SIZE(bpf_struct_ops); i++) { in bpf_struct_ops_init()
123 st_ops = bpf_struct_ops[i]; in bpf_struct_ops_init()
201 static const struct bpf_struct_ops *
209 for (i = 0; i < ARRAY_SIZE(bpf_struct_ops); i++) { in bpf_struct_ops_find_value()
210 if (bpf_struct_ops[i]->value_id == value_id) in bpf_struct_ops_find_value()
211 return bpf_struct_ops[i]; in bpf_struct_ops_find_value()
217 const struct bpf_struct_ops *bpf_struct_ops_find(u32 type_id) in bpf_struct_ops_find()
224 for (i = 0; i < ARRAY_SIZE(bpf_struct_ops); i++) { in bpf_struct_ops_find()
225 if (bpf_struct_ops[i]->type_id == type_id) in bpf_struct_ops_find()
226 return bpf_struct_ops[i]; in bpf_struct_ops_find()
319 const struct bpf_struct_ops *st_ops = st_map->st_ops; in bpf_struct_ops_map_update_elem()
554 const struct bpf_struct_ops *st_ops; in bpf_struct_ops_map_alloc()