Lines Matching refs:nr_args
3918 u16 nr_args = btf_type_vlen(t), i; in btf_func_proto_log() local
3921 if (!nr_args) { in btf_func_proto_log()
3926 if (nr_args == 1 && !args[0].type) { in btf_func_proto_log()
3935 for (i = 1; i < nr_args - 1; i++) in btf_func_proto_log()
3940 if (nr_args > 1) { in btf_func_proto_log()
3941 const struct btf_param *last_arg = &args[nr_args - 1]; in btf_func_proto_log()
4422 u16 nr_args, i; in btf_func_proto_check() local
4427 nr_args = btf_type_vlen(t); in btf_func_proto_check()
4458 if (!nr_args) in btf_func_proto_check()
4462 if (!args[nr_args - 1].type) { in btf_func_proto_check()
4463 if (args[nr_args - 1].name_off) { in btf_func_proto_check()
4465 nr_args); in btf_func_proto_check()
4468 nr_args--; in btf_func_proto_check()
4472 for (i = 0; i < nr_args; i++) { in btf_func_proto_check()
4516 u16 nr_args, i; in btf_func_check() local
4527 nr_args = btf_type_vlen(proto_type); in btf_func_check()
4528 for (i = 0; i < nr_args; i++) { in btf_func_check()
5336 u32 offset = 0, nr_args; in get_ctx_arg_idx() local
5342 nr_args = btf_type_vlen(func_proto); in get_ctx_arg_idx()
5344 for (i = 0; i < nr_args; i++) { in get_ctx_arg_idx()
5354 return nr_args; in get_ctx_arg_idx()
5356 return nr_args + 1; in get_ctx_arg_idx()
5370 u32 nr_args, arg; in btf_ctx_access() local
5383 nr_args = t ? btf_type_vlen(t) : MAX_BPF_FUNC_REG_ARGS; in btf_ctx_access()
5387 nr_args--; in btf_ctx_access()
5390 if (arg > nr_args) { in btf_ctx_access()
5396 if (arg == nr_args) { in btf_ctx_access()
5937 m->nr_args = MAX_BPF_FUNC_REG_ARGS; in btf_distill_func_proto()
5982 m->nr_args = nargs; in btf_distill_func_proto()
7503 u32 nr_args, i; in btf_check_dtor_kfuncs() local
7521 nr_args = btf_type_vlen(dtor_func_proto); in btf_check_dtor_kfuncs()
7522 if (nr_args != 1) in btf_check_dtor_kfuncs()