/kernel/linux/linux-5.10/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 120 emit(rv_addi(rd, RV_REG_ZERO, lower), ctx); in emit_imm() 131 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_imm32() 133 emit(rv_addi(hi(rd), RV_REG_ZERO, -1), ctx); in emit_imm32() 174 emit(rv_jalr(RV_REG_ZERO, RV_REG_T0, 4), ctx); in __build_epilogue() 176 emit(rv_jalr(RV_REG_ZERO, RV_REG_RA, 0), ctx); in __build_epilogue() 221 emit(rv_sw(RV_REG_FP, hi(reg), RV_REG_ZERO), ctx); in bpf_put_reg32() 223 emit(rv_addi(hi(reg), RV_REG_ZERO, 0), ctx); in bpf_put_reg32() 261 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_alu_i64() 271 emit(rv_ori(hi(rd), RV_REG_ZERO, -1), ctx); in emit_alu_i64() 286 emit(rv_addi(lo(rd), RV_REG_ZERO, in emit_alu_i64() [all...] |
H A D | bpf_jit_comp64.c | 205 emit_jalr(RV_REG_ZERO, is_tail_call ? RV_REG_T3 : RV_REG_RA, in __build_epilogue() 270 emit(rv_jal(RV_REG_ZERO, rvoff >> 1), ctx); in emit_branch() 282 emit(rv_jalr(RV_REG_ZERO, RV_REG_T1, lower), ctx); in emit_branch() 319 emit_branch(BPF_JSLT, tcc, RV_REG_ZERO, off, ctx); in emit_bpf_tail_call() 332 emit_branch(BPF_JEQ, RV_REG_T2, RV_REG_ZERO, off, ctx); in emit_bpf_tail_call() 538 emit_sub(rd, RV_REG_ZERO, rd, ctx); in bpf_jit_emit_insn() 727 ret = emit_jump_and_link(RV_REG_ZERO, rvoff, true, ctx); in bpf_jit_emit_insn() 772 emit_branch(BPF_JNE, RV_REG_T1, RV_REG_ZERO, rvoff, in bpf_jit_emit_insn() 807 rs = RV_REG_ZERO; in bpf_jit_emit_insn() 840 emit_branch(BPF_JNE, RV_REG_T1, RV_REG_ZERO, rvof in bpf_jit_emit_insn() [all...] |
H A D | bpf_jit.h | 22 RV_REG_ZERO = 0, /* The constant value 0 */ enumerator 641 return rv_cr_insn(0x8, rs1, RV_REG_ZERO, 0x2); in rvc_jr() 651 return rv_cr_insn(0x9, rs1, RV_REG_ZERO, 0x2); in rvc_jalr() 850 emit(rv_addi(rd, RV_REG_ZERO, imm), ctx); in emit_li()
|
/kernel/linux/linux-6.6/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 120 emit(rv_addi(rd, RV_REG_ZERO, lower), ctx); in emit_imm() 131 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_imm32() 133 emit(rv_addi(hi(rd), RV_REG_ZERO, -1), ctx); in emit_imm32() 174 emit(rv_jalr(RV_REG_ZERO, RV_REG_T0, 4), ctx); in __build_epilogue() 176 emit(rv_jalr(RV_REG_ZERO, RV_REG_RA, 0), ctx); in __build_epilogue() 221 emit(rv_sw(RV_REG_FP, hi(reg), RV_REG_ZERO), ctx); in bpf_put_reg32() 223 emit(rv_addi(hi(reg), RV_REG_ZERO, 0), ctx); in bpf_put_reg32() 261 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_alu_i64() 271 emit(rv_ori(hi(rd), RV_REG_ZERO, -1), ctx); in emit_alu_i64() 286 emit(rv_addi(lo(rd), RV_REG_ZERO, in emit_alu_i64() [all...] |
H A D | bpf_jit_comp64.c | 249 emit_jalr(RV_REG_ZERO, is_tail_call ? RV_REG_T3 : RV_REG_RA, in __build_epilogue() 314 emit(rv_jal(RV_REG_ZERO, rvoff >> 1), ctx); in emit_branch() 326 emit(rv_jalr(RV_REG_ZERO, RV_REG_T1, lower), ctx); in emit_branch() 363 emit_branch(BPF_JSLT, RV_REG_TCC, RV_REG_ZERO, off, ctx); in emit_bpf_tail_call() 376 emit_branch(BPF_JEQ, RV_REG_T2, RV_REG_ZERO, off, ctx); in emit_bpf_tail_call() 502 emit(is64 ? rv_amoadd_d(RV_REG_ZERO, rs, rd, 0, 0) : in emit_atomic() 503 rv_amoadd_w(RV_REG_ZERO, rs, rd, 0, 0), ctx); in emit_atomic() 506 emit(is64 ? rv_amoand_d(RV_REG_ZERO, rs, rd, 0, 0) : in emit_atomic() 507 rv_amoand_w(RV_REG_ZERO, rs, rd, 0, 0), ctx); in emit_atomic() 510 emit(is64 ? rv_amoor_d(RV_REG_ZERO, r in emit_atomic() [all...] |
H A D | bpf_jit.h | 22 RV_REG_ZERO = 0, /* The constant value 0 */ enumerator 707 return rv_cr_insn(0x8, rs1, RV_REG_ZERO, 0x2); in rvc_jr() 717 return rv_cr_insn(0x9, rs1, RV_REG_ZERO, 0x2); in rvc_jalr() 956 emit(rv_addi(rd, RV_REG_ZERO, imm), ctx); in emit_li()
|