Lines Matching refs:nr_args
4551 u16 nr_args = btf_type_vlen(t), i; in btf_func_proto_log() local
4554 if (!nr_args) { in btf_func_proto_log()
4559 if (nr_args == 1 && !args[0].type) { in btf_func_proto_log()
4568 for (i = 1; i < nr_args - 1; i++) in btf_func_proto_log()
4573 if (nr_args > 1) { in btf_func_proto_log()
4574 const struct btf_param *last_arg = &args[nr_args - 1]; in btf_func_proto_log()
5051 u16 nr_args, i; in btf_func_proto_check() local
5056 nr_args = btf_type_vlen(t); in btf_func_proto_check()
5087 if (!nr_args) in btf_func_proto_check()
5091 if (!args[nr_args - 1].type) { in btf_func_proto_check()
5092 if (args[nr_args - 1].name_off) { in btf_func_proto_check()
5094 nr_args); in btf_func_proto_check()
5097 nr_args--; in btf_func_proto_check()
5100 for (i = 0; i < nr_args; i++) { in btf_func_proto_check()
5146 u16 nr_args, i; in btf_func_check() local
5157 nr_args = btf_type_vlen(proto_type); in btf_func_check()
5158 for (i = 0; i < nr_args; i++) { in btf_func_check()
6399 u32 offset = 0, nr_args; in get_ctx_arg_idx() local
6405 nr_args = btf_type_vlen(func_proto); in get_ctx_arg_idx()
6407 for (i = 0; i < nr_args; i++) { in get_ctx_arg_idx()
6417 return nr_args; in get_ctx_arg_idx()
6419 return nr_args + 1; in get_ctx_arg_idx()
6666 u32 nr_args, arg; in btf_ctx_access() local
6679 nr_args = t ? btf_type_vlen(t) : MAX_BPF_FUNC_REG_ARGS; in btf_ctx_access()
6683 nr_args--; in btf_ctx_access()
6686 if (arg > nr_args) { in btf_ctx_access()
6692 if (arg == nr_args) { in btf_ctx_access()
7354 m->nr_args = MAX_BPF_FUNC_REG_ARGS; in btf_distill_func_proto()
7400 m->nr_args = nargs; in btf_distill_func_proto()
8397 u32 nr_args; in btf_check_iter_kfuncs() local
8405 nr_args = btf_type_vlen(func); in btf_check_iter_kfuncs()
8406 if (nr_args < 1) in btf_check_iter_kfuncs()
8436 if (!(flags & KF_ITER_NEW) && nr_args != 1) in btf_check_iter_kfuncs()
8775 u32 nr_args, i; in btf_check_dtor_kfuncs() local
8793 nr_args = btf_type_vlen(dtor_func_proto); in btf_check_dtor_kfuncs()
8794 if (nr_args != 1) in btf_check_dtor_kfuncs()