/linux-6.1.9/kernel/bpf/ |
D | core.c | 58 #define AX regs[BPF_REG_AX] 1222 BUILD_BUG_ON(BPF_REG_AX + 1 != MAX_BPF_JIT_REG); in bpf_jit_blind_insn() 1242 if (from->dst_reg == BPF_REG_AX || from->src_reg == BPF_REG_AX) in bpf_jit_blind_insn() 1262 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1263 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1264 *to++ = BPF_ALU32_REG(from->code, from->dst_reg, BPF_REG_AX); in bpf_jit_blind_insn() 1276 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1277 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1278 *to++ = BPF_ALU64_REG(from->code, from->dst_reg, BPF_REG_AX); in bpf_jit_blind_insn() 1296 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() [all …]
|
D | verifier.c | 13353 rnd_hi32_patch[1] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, 0); in opt_subreg_zext_lo32_rnd_hi32() 13354 rnd_hi32_patch[2] = BPF_ALU64_IMM(BPF_LSH, BPF_REG_AX, 32); in opt_subreg_zext_lo32_rnd_hi32() 13355 rnd_hi32_patch[3] = BPF_ALU64_REG(BPF_OR, 0, BPF_REG_AX); in opt_subreg_zext_lo32_rnd_hi32() 14035 *patch++ = BPF_MOV32_IMM(BPF_REG_AX, aux->alu_limit); in do_misc_fixups() 14039 *patch++ = BPF_MOV32_IMM(BPF_REG_AX, aux->alu_limit); in do_misc_fixups() 14040 *patch++ = BPF_ALU64_REG(BPF_SUB, BPF_REG_AX, off_reg); in do_misc_fixups() 14041 *patch++ = BPF_ALU64_REG(BPF_OR, BPF_REG_AX, off_reg); in do_misc_fixups() 14042 *patch++ = BPF_ALU64_IMM(BPF_NEG, BPF_REG_AX, 0); in do_misc_fixups() 14043 *patch++ = BPF_ALU64_IMM(BPF_ARSH, BPF_REG_AX, 63); in do_misc_fixups() 14044 *patch++ = BPF_ALU64_REG(BPF_AND, BPF_REG_AX, off_reg); in do_misc_fixups() [all …]
|
/linux-6.1.9/arch/x86/net/ |
D | bpf_jit_comp.c | 132 [BPF_REG_AX] = 2, /* R10 temp register */ 163 BIT(BPF_REG_AX)); in is_ereg() 1392 emit_mov_reg(&prog, true, BPF_REG_AX, BPF_REG_0); in do_jit() 1394 real_src_reg = BPF_REG_AX; in do_jit() 1396 real_dst_reg = BPF_REG_AX; in do_jit() 1425 emit_mov_reg(&prog, true, BPF_REG_0, BPF_REG_AX); in do_jit()
|
D | bpf_jit_comp32.c | 161 [BPF_REG_AX] = {IA32_ESI, IA32_EDI}, 1675 const bool dstk = insn->dst_reg != BPF_REG_AX; in do_jit() 1676 const bool sstk = insn->src_reg != BPF_REG_AX; in do_jit()
|
/linux-6.1.9/arch/powerpc/net/ |
D | bpf_jit_comp32.c | 64 ctx->b2p[BPF_REG_AX] = _R20; in bpf_jit_init_reg_mapping() 287 u32 ax_reg = bpf_to_ppc(BPF_REG_AX); in bpf_jit_build_body()
|
D | bpf_jit_comp64.c | 67 ctx->b2p[BPF_REG_AX] = _R12; in bpf_jit_init_reg_mapping()
|
/linux-6.1.9/net/core/ |
D | filter.c | 9120 __u8 tmp_reg = BPF_REG_AX; in bpf_convert_tstamp_type_read() 9139 BPF_REG_AX, si->src_reg, in bpf_convert_shinfo_access() 9144 *insn++ = BPF_ALU64_REG(BPF_ADD, si->dst_reg, BPF_REG_AX); in bpf_convert_shinfo_access() 9168 __u8 tmp_reg = BPF_REG_AX; in bpf_convert_tstamp_read() 9203 __u8 tmp_reg = BPF_REG_AX; in bpf_convert_tstamp_write() 10455 BPF_REG_AX, si->src_reg, in bpf_convert_data_end_access() 10458 *insn++ = BPF_ALU64_REG(BPF_ADD, reg, BPF_REG_AX); in bpf_convert_data_end_access() 10461 BPF_REG_AX, si->src_reg, in bpf_convert_data_end_access() 10465 *insn++ = BPF_ALU64_REG(BPF_SUB, reg, BPF_REG_AX); in bpf_convert_data_end_access() 10469 *insn++ = BPF_MOV64_REG(BPF_REG_AX, si->src_reg); in bpf_convert_data_end_access() [all …]
|
/linux-6.1.9/arch/mips/net/ |
D | bpf_jit_comp64.c | 81 [BPF_REG_AX] = MIPS_R_AT,
|
D | bpf_jit_comp32.c | 138 [BPF_REG_AX] = {MIPS_R_GP, MIPS_R_AT},
|
/linux-6.1.9/arch/arm64/net/ |
D | bpf_jit_comp.c | 68 [BPF_REG_AX] = A64_R(9), 554 const u8 ax = bpf2a64[BPF_REG_AX]; in emit_ll_sc_atomic()
|
/linux-6.1.9/include/linux/ |
D | filter.h | 61 #define BPF_REG_AX MAX_BPF_REG macro
|
/linux-6.1.9/arch/loongarch/net/ |
D | bpf_jit.c | 32 [BPF_REG_AX] = LOONGARCH_GPR_T0,
|
/linux-6.1.9/arch/s390/net/ |
D | bpf_jit_comp.c | 93 [BPF_REG_AX] = 12,
|
/linux-6.1.9/arch/riscv/net/ |
D | bpf_jit_comp64.c | 28 [BPF_REG_AX] = RV_REG_T0,
|
D | bpf_jit_comp32.c | 91 [BPF_REG_AX] = {STACK_OFFSET(BPF_AX_HI), STACK_OFFSET(BPF_AX_LO)},
|
/linux-6.1.9/arch/sparc/net/ |
D | bpf_jit_comp_64.c | 228 [BPF_REG_AX] = G7,
|
/linux-6.1.9/arch/arm/net/ |
D | bpf_jit_32.c | 176 [BPF_REG_AX] = {STACK_OFFSET(BPF_AX_HI), STACK_OFFSET(BPF_AX_LO)},
|