Lines Matching refs:nargs
5946 u32 i, nargs; in btf_distill_func_proto() local
5962 nargs = btf_type_vlen(func); in btf_distill_func_proto()
5963 if (nargs > MAX_BPF_FUNC_ARGS) { in btf_distill_func_proto()
5966 tname, nargs); in btf_distill_func_proto()
5978 for (i = 0; i < nargs; i++) { in btf_distill_func_proto()
5979 if (i == nargs - 1 && args[i].type == 0) { in btf_distill_func_proto()
6003 m->nr_args = nargs; in btf_distill_func_proto()
6259 u32 i, nargs, ref_id, ref_obj_id = 0; in btf_check_func_arg_match() local
6283 nargs = btf_type_vlen(t); in btf_check_func_arg_match()
6284 if (nargs > MAX_BPF_FUNC_REG_ARGS) { in btf_check_func_arg_match()
6285 bpf_log(log, "Function %s has %d > %d args\n", func_name, nargs, in btf_check_func_arg_match()
6301 for (i = 0; i < nargs; i++) { in btf_check_func_arg_match()
6485 bool arg_mem_size = i + 1 < nargs && is_kfunc_arg_mem_size(btf, &args[i + 1], ®s[regno + 1]); in btf_check_func_arg_match()
6696 u32 i, nargs, btf_id; in btf_prepare_func_args() local
6739 nargs = btf_type_vlen(t); in btf_prepare_func_args()
6740 if (nargs > MAX_BPF_FUNC_REG_ARGS) { in btf_prepare_func_args()
6742 tname, nargs, MAX_BPF_FUNC_REG_ARGS); in btf_prepare_func_args()
6758 for (i = 0; i < nargs; i++) { in btf_prepare_func_args()