Searched refs:subprog (Results 1 – 4 of 4) sorted by relevance
686 nfp_prog->subprog[index].needs_reg_push = 1; in nfp_assign_subprog_idx_and_regs()714 frame_depths[frame] = nfp_prog->subprog[idx].stack_depth; in nfp_bpf_get_stack_usage()773 nfp_prog->subprog = kcalloc(nfp_prog->subprog_cnt, in nfp_bpf_finalize()774 sizeof(nfp_prog->subprog[0]), GFP_KERNEL); in nfp_bpf_finalize()775 if (!nfp_prog->subprog) in nfp_bpf_finalize()782 nfp_prog->subprog[i].stack_depth = info[i].stack_depth; in nfp_bpf_finalize()788 nfp_prog->subprog[i].stack_depth += REG_WIDTH; in nfp_bpf_finalize()790 if (nfp_prog->subprog[i].needs_reg_push) in nfp_bpf_finalize()791 nfp_prog->subprog[i].stack_depth += BPF_REG_SIZE * 4; in nfp_bpf_finalize()
541 struct nfp_bpf_subprog_info *subprog; member
182 kfree(nfp_prog->subprog); in nfp_prog_free()
3315 if (nfp_prog->subprog[meta->jmp_dst->subprog_idx].needs_reg_push) { in bpf_to_bpf_call()3391 if (nfp_prog->subprog[meta->subprog_idx].needs_reg_push) { in nfp_subprog_epilogue()3611 nfp_prog->subprog[jmp_dst->subprog_idx].needs_reg_push) { in nfp_fixup_branches()3649 unsigned int depth = nfp_prog->subprog[meta->subprog_idx].stack_depth; in nfp_start_subprog()3755 if (nfp_prog->subprog[idx].needs_reg_push) in nfp_prog_needs_callee_reg_save()3837 depth = nfp_prog->subprog[0].stack_depth; in nfp_translate()