Lines Matching refs:nregs
2077 static void save_args(struct jit_ctx *ctx, int args_off, int nregs) in save_args() argument
2081 for (i = 0; i < nregs; i++) { in save_args()
2087 static void restore_args(struct jit_ctx *ctx, int args_off, int nregs) in restore_args() argument
2091 for (i = 0; i < nregs; i++) { in restore_args()
2110 int nregs, u32 flags) in prepare_trampoline() argument
2168 stack_size += nregs * 8; in prepare_trampoline()
2212 emit(A64_MOVZ(1, A64_R(10), nregs, 0), ctx); in prepare_trampoline()
2216 save_args(ctx, args_off, nregs); in prepare_trampoline()
2247 restore_args(ctx, args_off, nregs); in prepare_trampoline()
2280 restore_args(ctx, args_off, nregs); in prepare_trampoline()
2314 int nregs = m->nr_args; in btf_func_model_nregs() local
2321 nregs += (m->arg_size[i] + 7) / 8 - 1; in btf_func_model_nregs()
2324 return nregs; in btf_func_model_nregs()
2335 int nregs, ret; in arch_bpf_trampoline_size() local
2337 nregs = btf_func_model_nregs(m); in arch_bpf_trampoline_size()
2339 if (nregs > 8) in arch_bpf_trampoline_size()
2342 ret = prepare_trampoline(&ctx, &im, tlinks, func_addr, nregs, flags); in arch_bpf_trampoline_size()
2369 int ret, nregs; in arch_prepare_bpf_trampoline() local
2387 nregs = btf_func_model_nregs(m); in arch_prepare_bpf_trampoline()
2389 if (nregs > 8) in arch_prepare_bpf_trampoline()
2393 ret = prepare_trampoline(&ctx, im, tlinks, func_addr, nregs, flags); in arch_prepare_bpf_trampoline()