Lines Matching refs:t

312 	const struct btf_type *t;  in is_module_member()  local
314 t = btf_type_resolve_ptr(btf, id, NULL); in is_module_member()
315 if (!t) in is_module_member()
318 if (!__btf_type_is_struct(t) && !btf_type_is_fwd(t)) in is_module_member()
321 return !strcmp(btf_name_by_offset(btf, t->name_off), "module"); in is_module_member()
338 const struct btf_type *t; in bpf_struct_ops_desc_init() local
364 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_desc_init()
365 if (btf_type_vlen(t) > BPF_STRUCT_OPS_MAX_NR_MEMBERS) { in bpf_struct_ops_desc_init()
367 btf_type_vlen(t), st_ops->name); in bpf_struct_ops_desc_init()
378 if (!is_valid_value_type(btf, value_id, t, value_name)) in bpf_struct_ops_desc_init()
381 arg_info = kcalloc(btf_type_vlen(t), sizeof(*arg_info), in bpf_struct_ops_desc_init()
387 st_ops_desc->type = t; in bpf_struct_ops_desc_init()
392 for_each_member(i, t, member) { in bpf_struct_ops_desc_init()
397 moff = __btf_member_bit_offset(t, member) / 8; in bpf_struct_ops_desc_init()
406 if (__btf_member_bitfield_size(t, member)) { in bpf_struct_ops_desc_init()
545 static int check_zero_holes(const struct btf *btf, const struct btf_type *t, void *data) in check_zero_holes() argument
551 for_each_member(i, t, member) { in check_zero_holes()
552 moff = __btf_member_bit_offset(t, member) / 8; in check_zero_holes()
564 if (t->size > prev_mend && in check_zero_holes()
565 memchr_inv(data + prev_mend, 0, t->size - prev_mend)) in check_zero_holes()
685 const struct btf_type *t = st_ops_desc->type; in bpf_struct_ops_map_update_elem() local
706 err = check_zero_holes(st_map->btf, t, uvalue->data); in bpf_struct_ops_map_update_elem()
734 tname = btf_name_by_offset(st_map->btf, t->name_off); in bpf_struct_ops_map_update_elem()
736 for_each_member(i, t, member) { in bpf_struct_ops_map_update_elem()
743 moff = __btf_member_bit_offset(t, member) / 8; in bpf_struct_ops_map_update_elem()
753 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem()
1014 static u32 count_func_ptrs(const struct btf *btf, const struct btf_type *t) in count_func_ptrs() argument
1021 for_each_member(i, t, member) in count_func_ptrs()
1032 const struct btf_type *t, *vt; in bpf_struct_ops_map_alloc() local
1075 t = st_ops_desc->type; in bpf_struct_ops_map_alloc()
1093 st_map->funcs_cnt = count_func_ptrs(btf, t); in bpf_struct_ops_map_alloc()