Searched refs:ninsns (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_core.c | 31 offset[i] = ctx->ninsns; in build_body() 78 prog_size = sizeof(*ctx->insns) * ctx->ninsns; in bpf_int_jit_compile() 95 ctx->ninsns = 0; in bpf_int_jit_compile() 100 ctx->body_len = ctx->ninsns; in bpf_int_jit_compile() 102 ctx->prologue_len = ctx->ninsns - ctx->body_len; in bpf_int_jit_compile() 103 ctx->epilogue_offset = ctx->ninsns; in bpf_int_jit_compile() 106 if (ctx->ninsns == prev_ninsns) { in bpf_int_jit_compile() 112 prog_size = sizeof(*ctx->insns) * ctx->ninsns; in bpf_int_jit_compile() 130 prev_ninsns = ctx->ninsns; in bpf_int_jit_compile() 146 ctx->ninsns = 0; in bpf_int_jit_compile() [all …]
|
H A D | bpf_jit_comp64.c | 195 pc = (uintptr_t) &ctx->insns[ctx->ninsns]; in emit_jump() 268 s = ctx->ninsns; in emit_branch() 320 e = ctx->ninsns; in emit_branch() 889 s = ctx->ninsns; in bpf_jit_emit_insn() 894 e = ctx->ninsns; in bpf_jit_emit_insn() 932 s = ctx->ninsns; in bpf_jit_emit_insn() 945 e = ctx->ninsns; in bpf_jit_emit_insn() 954 s = ctx->ninsns; in bpf_jit_emit_insn() 963 e = ctx->ninsns; in bpf_jit_emit_insn()
|
H A D | bpf_jit.h | 68 int ninsns; member 262 ctx->insns[ctx->ninsns] = insn; in emit() 265 ctx->ninsns++; in emit() 270 int to = ctx->epilogue_offset, from = ctx->ninsns; in epilogue_offset()
|
H A D | bpf_jit_comp32.c | 415 pc = (uintptr_t) &ctx->insns[ctx->ninsns]; in emit_jump() 702 int e, s = ctx->ninsns; in emit_branch_r64() 782 e = ctx->ninsns; in emit_branch_r64() 807 s = ctx->ninsns; in emit_bcc() 858 e = ctx->ninsns; in emit_bcc() 869 int e, s = ctx->ninsns; in emit_branch_r32() 876 e = ctx->ninsns; in emit_branch_r32() 1380 s = ctx->ninsns; in bpf_jit_emit_insn() 1383 e = ctx->ninsns; in bpf_jit_emit_insn()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_core.c | 32 offset[i] = ctx->ninsns; in build_body() 78 prog_size = sizeof(*ctx->insns) * ctx->ninsns; in bpf_int_jit_compile() 101 ctx->ninsns = 0; in bpf_int_jit_compile() 104 ctx->prologue_len = ctx->ninsns; in bpf_int_jit_compile() 111 ctx->epilogue_offset = ctx->ninsns; in bpf_int_jit_compile() 114 if (ctx->ninsns == prev_ninsns) { in bpf_int_jit_compile() 120 prog_size = sizeof(*ctx->insns) * ctx->ninsns; in bpf_int_jit_compile() 146 prev_ninsns = ctx->ninsns; in bpf_int_jit_compile() 160 ctx->ninsns = 0; in bpf_int_jit_compile() 191 bpf_flush_icache(jit_data->ro_header, ctx->ro_insns + ctx->ninsns); in bpf_int_jit_compile()
|
H A D | bpf_jit_comp64.c | 151 u64 ip = (u64)(ctx->ro_insns + ctx->ninsns); in emit_addr() 337 int tc_ninsn, off, start_insn = ctx->ninsns; in emit_bpf_tail_call() 355 off = ninsns_rvoff(tc_ninsn - (ctx->ninsns - start_insn)); in emit_bpf_tail_call() 362 off = ninsns_rvoff(tc_ninsn - (ctx->ninsns - start_insn)); in emit_bpf_tail_call() 375 off = ninsns_rvoff(tc_ninsn - (ctx->ninsns - start_insn)); in emit_bpf_tail_call() 476 ip = (u64)(long)(ctx->ro_insns + ctx->ninsns); in emit_call() 599 if (WARN_ON_ONCE(insn_len > ctx->ninsns)) in add_exception_handler() 606 pc = (unsigned long)&ctx->ro_insns[ctx->ninsns - insn_len]; in add_exception_handler() 656 ctx.ninsns = 0; in gen_jump_or_nops() 749 branch_off = ctx->ninsns; in invoke_bpf_prog() [all …]
|
H A D | bpf_jit.h | 72 int ninsns; member 82 static inline int ninsns_rvoff(int ninsns) in ninsns_rvoff() argument 84 return ninsns << 1; in ninsns_rvoff() 109 ctx->insns[ctx->ninsns] = insn; in emit() 110 ctx->insns[ctx->ninsns + 1] = (insn >> 16); in emit() 113 ctx->ninsns += 2; in emit() 122 ctx->insns[ctx->ninsns] = insn; in emitc() 124 ctx->ninsns++; in emitc() 129 int to = ctx->epilogue_offset, from = ctx->ninsns; in epilogue_offset()
|
H A D | bpf_jit_comp32.c | 567 int e, s = ctx->ninsns; in emit_branch_r64() 645 e = ctx->ninsns; in emit_branch_r64() 654 int e, s = ctx->ninsns; in emit_bcc() 714 e = ctx->ninsns; in emit_bcc() 725 int e, s = ctx->ninsns; in emit_branch_r32() 732 e = ctx->ninsns; in emit_branch_r32() 781 int tc_ninsn, off, start_insn = ctx->ninsns; in emit_bpf_tail_call() 798 off = ninsns_rvoff(tc_ninsn - (ctx->ninsns - start_insn)); in emit_bpf_tail_call() 806 off = ninsns_rvoff(tc_ninsn - (ctx->ninsns - start_insn)); in emit_bpf_tail_call() 820 off = ninsns_rvoff(tc_ninsn - (ctx->ninsns - start_insn)); in emit_bpf_tail_call() [all …]
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | patch.c | 22 int ninsns; member 241 for (i = 0; ret == 0 && i < patch->ninsns; i++) { in patch_text_cb() 257 int patch_text(void *addr, u32 *insns, int ninsns) in patch_text() argument 263 .ninsns = ninsns, in patch_text()
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | patch.h | 11 int patch_text(void *addr, u32 *insns, int ninsns);
|