• Home
  • Raw
  • Download

Lines Matching refs:t

109 	const struct btf_type *t;  in bpf_struct_ops_init()  local
152 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_init()
153 if (btf_type_vlen(t) > BPF_STRUCT_OPS_MAX_NR_MEMBERS) { in bpf_struct_ops_init()
155 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_init()
159 for_each_member(j, t, member) { in bpf_struct_ops_init()
169 if (__btf_member_bitfield_size(t, member)) { in bpf_struct_ops_init()
188 if (j == btf_type_vlen(t)) { in bpf_struct_ops_init()
194 st_ops->type = t; in bpf_struct_ops_init()
282 const struct btf_type *t = st_map->st_ops->type; in bpf_struct_ops_map_put_progs() local
285 for (i = 0; i < btf_type_vlen(t); i++) { in bpf_struct_ops_map_put_progs()
293 static int check_zero_holes(const struct btf_type *t, void *data) in check_zero_holes() argument
299 for_each_member(i, t, member) { in check_zero_holes()
300 moff = __btf_member_bit_offset(t, member) / 8; in check_zero_holes()
312 if (t->size > prev_mend && in check_zero_holes()
313 memchr_inv(data + prev_mend, 0, t->size - prev_mend)) in check_zero_holes()
359 const struct btf_type *t = st_ops->type; in bpf_struct_ops_map_update_elem() local
377 err = check_zero_holes(t, uvalue->data); in bpf_struct_ops_map_update_elem()
405 for_each_member(i, t, member) { in bpf_struct_ops_map_update_elem()
411 moff = __btf_member_bit_offset(t, member) / 8; in bpf_struct_ops_map_update_elem()
420 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem()
599 const struct btf_type *t, *vt; in bpf_struct_ops_map_alloc() local
613 t = st_ops->type; in bpf_struct_ops_map_alloc()
630 bpf_map_area_alloc(btf_type_vlen(t) * sizeof(struct bpf_links *), in bpf_struct_ops_map_alloc()