| /linux/kernel/bpf/ |
| H A D | fixups.c | 679 rnd_hi32_patch[1] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, 0); in bpf_opt_subreg_zext_lo32_rnd_hi32() 680 rnd_hi32_patch[2] = BPF_ALU64_IMM(BPF_LSH, BPF_REG_AX, 32); in bpf_opt_subreg_zext_lo32_rnd_hi32() 681 rnd_hi32_patch[3] = BPF_ALU64_REG(BPF_OR, 0, BPF_REG_AX); in bpf_opt_subreg_zext_lo32_rnd_hi32() 1627 *patch++ = BPF_MOV64_REG(BPF_REG_AX, insn->src_reg); in bpf_do_misc_fixups() 1629 BPF_ADD | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1632 BPF_JGT | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1635 BPF_JEQ | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1650 *patch++ = BPF_MOV64_REG(BPF_REG_AX, insn->src_reg); in bpf_do_misc_fixups() 1652 BPF_ADD | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() 1655 BPF_JGT | BPF_K, BPF_REG_AX, in bpf_do_misc_fixups() [all …]
|
| H A D | core.c | 66 #define AX regs[BPF_REG_AX] 1368 BUILD_BUG_ON(BPF_REG_AX + 1 != MAX_BPF_JIT_REG); in bpf_jit_blind_insn() 1387 if (from->dst_reg == BPF_REG_AX || from->src_reg == BPF_REG_AX) in bpf_jit_blind_insn() 1407 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1408 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1409 *to++ = BPF_ALU32_REG_OFF(from->code, from->dst_reg, BPF_REG_AX, from->off); in bpf_jit_blind_insn() 1421 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1422 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1423 *to++ = BPF_ALU64_REG_OFF(from->code, from->dst_reg, BPF_REG_AX, fro in bpf_jit_blind_insn() [all...] |
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 195 [BPF_REG_AX] = 2, /* R10 temp register */ 228 BIT(BPF_REG_AX)); in is_ereg() 2464 emit_mov_imm64(&prog, BPF_REG_AX, (long)VSYSCALL_ADDR >> 32, in do_jit() 2477 maybe_emit_mod(&prog, AUX_REG, BPF_REG_AX, true); in do_jit() 2478 EMIT2(0x29, add_2reg(0xC0, AUX_REG, BPF_REG_AX)); in do_jit() 2481 emit_mov_imm64(&prog, BPF_REG_AX, (long)limit >> 32, in do_jit() 2485 maybe_emit_mod(&prog, AUX_REG, BPF_REG_AX, true); in do_jit() 2486 EMIT2(0x39, add_2reg(0xC0, AUX_REG, BPF_REG_AX)); in do_jit() 2576 emit_mov_reg(&prog, true, BPF_REG_AX, BPF_REG_0); in do_jit() 2578 real_src_reg = BPF_REG_AX; in do_jit() [all...] |
| /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/net/core/ |
| H A D | filter.c | 9951 BPF_REG_AX, skb_reg, in bpf_convert_shinfo_access() 9956 *insn++ = BPF_ALU64_REG(BPF_ADD, dst_reg, BPF_REG_AX); in bpf_convert_shinfo_access() 9980 __u8 tmp_reg = BPF_REG_AX; in bpf_convert_tstamp_read() 10016 __u8 tmp_reg = BPF_REG_AX; in bpf_convert_tstamp_write() 11280 BPF_REG_AX, si->src_reg, in bpf_convert_data_end_access() 11283 *insn++ = BPF_ALU64_REG(BPF_ADD, reg, BPF_REG_AX); in bpf_convert_data_end_access() 11286 BPF_REG_AX, si->src_reg, in bpf_convert_data_end_access() 11290 *insn++ = BPF_ALU64_REG(BPF_SUB, reg, BPF_REG_AX); in bpf_convert_data_end_access() 11294 *insn++ = BPF_MOV64_REG(BPF_REG_AX, si->src_reg); in bpf_convert_data_end_access() 11296 *insn++ = BPF_LDX_MEM(BPF_DW, reg, BPF_REG_AX, temp_reg_off); in bpf_convert_data_end_access()
|
| /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), 908 const u8 ax = bpf2a64[BPF_REG_AX]; in emit_ll_sc_atomic() 1729 * first argument and return value in BPF_REG_AX (x9). in build_insn()
|
| /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, 1869 * returns its result in BPF_REG_AX instead of BPF_REG_0, so in bpf_jit_emit_insn()
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 50 [BPF_REG_AX] = LOONGARCH_GPR_T0, 1197 * convention with the argument and return value in BPF_REG_AX, in build_insn()
|