Lines Matching refs:nr_args
4506 u16 nr_args = btf_type_vlen(t), i; in btf_func_proto_log() local
4509 if (!nr_args) { in btf_func_proto_log()
4514 if (nr_args == 1 && !args[0].type) { in btf_func_proto_log()
4523 for (i = 1; i < nr_args - 1; i++) in btf_func_proto_log()
4528 if (nr_args > 1) { in btf_func_proto_log()
4529 const struct btf_param *last_arg = &args[nr_args - 1]; in btf_func_proto_log()
5011 u16 nr_args, i; in btf_func_proto_check() local
5016 nr_args = btf_type_vlen(t); in btf_func_proto_check()
5047 if (!nr_args) in btf_func_proto_check()
5051 if (!args[nr_args - 1].type) { in btf_func_proto_check()
5052 if (args[nr_args - 1].name_off) { in btf_func_proto_check()
5054 nr_args); in btf_func_proto_check()
5057 nr_args--; in btf_func_proto_check()
5060 for (i = 0; i < nr_args; i++) { in btf_func_proto_check()
5106 u16 nr_args, i; in btf_func_check() local
5117 nr_args = btf_type_vlen(proto_type); in btf_func_check()
5118 for (i = 0; i < nr_args; i++) { in btf_func_check()
6359 u32 offset = 0, nr_args; in get_ctx_arg_idx() local
6365 nr_args = btf_type_vlen(func_proto); in get_ctx_arg_idx()
6367 for (i = 0; i < nr_args; i++) { in get_ctx_arg_idx()
6377 return nr_args; in get_ctx_arg_idx()
6379 return nr_args + 1; in get_ctx_arg_idx()
6429 u32 nr_args, arg; in btf_ctx_access() local
6442 nr_args = t ? btf_type_vlen(t) : MAX_BPF_FUNC_REG_ARGS; in btf_ctx_access()
6446 nr_args--; in btf_ctx_access()
6449 if (arg > nr_args) { in btf_ctx_access()
6455 if (arg == nr_args) { in btf_ctx_access()
7068 m->nr_args = MAX_BPF_FUNC_REG_ARGS; in btf_distill_func_proto()
7114 m->nr_args = nargs; in btf_distill_func_proto()
8127 u32 nr_args; in btf_check_iter_kfuncs() local
8135 nr_args = btf_type_vlen(func); in btf_check_iter_kfuncs()
8136 if (nr_args < 1) in btf_check_iter_kfuncs()
8166 if (!(flags & KF_ITER_NEW) && nr_args != 1) in btf_check_iter_kfuncs()
8504 u32 nr_args, i; in btf_check_dtor_kfuncs() local
8522 nr_args = btf_type_vlen(dtor_func_proto); in btf_check_dtor_kfuncs()
8523 if (nr_args != 1) in btf_check_dtor_kfuncs()