Lines Matching refs:t

118 	const struct btf_type *t;  in bpf_struct_ops_init()  local
161 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_init()
162 if (btf_type_vlen(t) > BPF_STRUCT_OPS_MAX_NR_MEMBERS) { in bpf_struct_ops_init()
164 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_init()
168 for_each_member(j, t, member) { in bpf_struct_ops_init()
178 if (__btf_member_bitfield_size(t, member)) { in bpf_struct_ops_init()
197 if (j == btf_type_vlen(t)) { in bpf_struct_ops_init()
203 st_ops->type = t; in bpf_struct_ops_init()
299 const struct btf_type *t = st_map->st_ops->type; in bpf_struct_ops_map_put_progs() local
302 for (i = 0; i < btf_type_vlen(t); i++) { in bpf_struct_ops_map_put_progs()
310 static int check_zero_holes(const struct btf_type *t, void *data) in check_zero_holes() argument
316 for_each_member(i, t, member) { in check_zero_holes()
317 moff = __btf_member_bit_offset(t, member) / 8; in check_zero_holes()
329 if (t->size > prev_mend && in check_zero_holes()
330 memchr_inv(data + prev_mend, 0, t->size - prev_mend)) in check_zero_holes()
376 const struct btf_type *t = st_ops->type; in bpf_struct_ops_map_update_elem() local
394 err = check_zero_holes(t, uvalue->data); in bpf_struct_ops_map_update_elem()
422 for_each_member(i, t, member) { in bpf_struct_ops_map_update_elem()
428 moff = __btf_member_bit_offset(t, member) / 8; in bpf_struct_ops_map_update_elem()
437 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem()
658 const struct btf_type *t, *vt; in bpf_struct_ops_map_alloc() local
669 t = st_ops->type; in bpf_struct_ops_map_alloc()
686 bpf_map_area_alloc(btf_type_vlen(t) * sizeof(struct bpf_links *), in bpf_struct_ops_map_alloc()