| /linux/kernel/bpf/ |
| H A D | fixups.c | 654 rnd_hi32_patch[1] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, 0); in bpf_opt_subreg_zext_lo32_rnd_hi32() 655 rnd_hi32_patch[2] = BPF_ALU64_IMM(BPF_LSH, BPF_REG_AX, 32); in bpf_opt_subreg_zext_lo32_rnd_hi32() 656 rnd_hi32_patch[3] = BPF_ALU64_REG(BPF_OR, 0, BPF_REG_AX); in bpf_opt_subreg_zext_lo32_rnd_hi32() 1602 *patch++ = BPF_MOV64_REG(BPF_REG_AX, insn->src_reg); in bpf_do_misc_fixups() 1604 BPF_ADD | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1607 BPF_JGT | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1610 BPF_JEQ | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1625 *patch++ = BPF_MOV64_REG(BPF_REG_AX, insn->src_reg); in bpf_do_misc_fixups() 1627 BPF_ADD | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1630 BPF_JGT | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() [all …]
|
| H A D | core.c | 65 #define AX regs[BPF_REG_AX] 1372 BUILD_BUG_ON(BPF_REG_AX + 1 != MAX_BPF_JIT_REG); in bpf_jit_blind_insn() 1391 if (from->dst_reg == BPF_REG_AX || from->src_reg == BPF_REG_AX) in bpf_jit_blind_insn() 1411 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1412 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1413 *to++ = BPF_ALU32_REG_OFF(from->code, from->dst_reg, BPF_REG_AX, from->off); in bpf_jit_blind_insn() 1425 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1426 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1427 *to++ = BPF_ALU64_REG_OFF(from->code, from->dst_reg, BPF_REG_AX, from->off); in bpf_jit_blind_insn() 1445 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() [all …]
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 194 [BPF_REG_AX] = 2, /* R10 temp register */ 227 BIT(BPF_REG_AX)); in is_ereg() 2463 emit_mov_imm64(&prog, BPF_REG_AX, (long)VSYSCALL_ADDR >> 32, in do_jit() 2476 maybe_emit_mod(&prog, AUX_REG, BPF_REG_AX, true); in do_jit() 2477 EMIT2(0x29, add_2reg(0xC0, AUX_REG, BPF_REG_AX)); in do_jit() 2480 emit_mov_imm64(&prog, BPF_REG_AX, (long)limit >> 32, in do_jit() 2484 maybe_emit_mod(&prog, AUX_REG, BPF_REG_AX, true); in do_jit() 2485 EMIT2(0x39, add_2reg(0xC0, AUX_REG, BPF_REG_AX)); in do_jit() 2575 emit_mov_reg(&prog, true, BPF_REG_AX, BPF_REG_0); in do_jit() 2577 real_src_reg = BPF_REG_AX; in do_jit() [all …]
|
| /linux/net/core/ |
| H A D | filter.c | 9950 BPF_REG_AX, skb_reg, in bpf_convert_shinfo_access() 9955 *insn++ = BPF_ALU64_REG(BPF_ADD, dst_reg, BPF_REG_AX); in bpf_convert_shinfo_access() 9979 __u8 tmp_reg = BPF_REG_AX; in bpf_convert_tstamp_read() 10015 __u8 tmp_reg = BPF_REG_AX; in bpf_convert_tstamp_write() 11289 BPF_REG_AX, si->src_reg, in bpf_convert_data_end_access() 11292 *insn++ = BPF_ALU64_REG(BPF_ADD, reg, BPF_REG_AX); in bpf_convert_data_end_access() 11295 BPF_REG_AX, si->src_reg, in bpf_convert_data_end_access() 11299 *insn++ = BPF_ALU64_REG(BPF_SUB, reg, BPF_REG_AX); in bpf_convert_data_end_access() 11303 *insn++ = BPF_MOV64_REG(BPF_REG_AX, si->src_reg); in bpf_convert_data_end_access() 11305 *insn++ = BPF_LDX_MEM(BPF_DW, reg, BPF_REG_AX, temp_reg_off); in bpf_convert_data_end_access()
|
| /linux/arch/mips/net/ |
| H A D | bpf_jit_comp64.c | 81 [BPF_REG_AX] = MIPS_R_AT,
|
| H A D | bpf_jit_comp32.c | 138 [BPF_REG_AX] = {MIPS_R_GP, MIPS_R_AT},
|
| /linux/arch/parisc/net/ |
| H A D | bpf_jit_comp64.c | 32 [BPF_REG_AX] = HPPA_R(15),
|
| H A D | bpf_jit_comp32.c | 97 [BPF_REG_AX] = {STACK_OFFSET(BPF_AX_HI), STACK_OFFSET(BPF_AX_LO)},
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 71 [BPF_REG_AX] = A64_R(9), 906 const u8 ax = bpf2a64[BPF_REG_AX]; in emit_ll_sc_atomic()
|
| /linux/include/linux/ |
| H A D | filter.h | 63 #define BPF_REG_AX (MAX_BPF_REG + 1) macro
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp32.c | 91 [BPF_REG_AX] = {STACK_OFFSET(BPF_AX_HI), STACK_OFFSET(BPF_AX_LO)},
|
| H A D | bpf_jit_comp64.c | 41 [BPF_REG_AX] = RV_REG_T0,
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 50 [BPF_REG_AX] = LOONGARCH_GPR_T0,
|