/linux-6.3-rc2/arch/powerpc/net/ |
A D | bpf_jit_comp64.c | 359 u32 dst_reg = bpf_to_ppc(insn[i].dst_reg); in bpf_jit_build_body() local 402 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 406 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 504 EMIT(PPC_RAW_NEG(dst_reg, dst_reg)); in bpf_jit_build_body() 526 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 570 EMIT(PPC_RAW_SLWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 576 EMIT(PPC_RAW_SLDI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 587 EMIT(PPC_RAW_SRWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 593 EMIT(PPC_RAW_SRDI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 602 EMIT(PPC_RAW_SRAWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() [all …]
|
A D | bpf_jit_comp32.c | 294 u32 dst_reg = bpf_to_ppc(insn[i].dst_reg); in bpf_jit_build_body() local 315 insn[i - 1].dst_reg == insn[i].dst_reg && insn[i - 1].imm != 1) { in bpf_jit_build_body() 338 if (dst_reg >= 3 && dst_reg < 32) { in bpf_jit_build_body() 374 src2_reg = dst_reg; in bpf_jit_build_body() 515 src2_reg = dst_reg; in bpf_jit_build_body() 577 src2_reg = dst_reg; in bpf_jit_build_body() 656 EMIT(PPC_RAW_OR(dst_reg, dst_reg, _R0)); in bpf_jit_build_body() 658 EMIT(PPC_RAW_OR(dst_reg, dst_reg, tmp_reg)); in bpf_jit_build_body() 693 EMIT(PPC_RAW_OR(dst_reg, dst_reg, _R0)); in bpf_jit_build_body() 698 EMIT(PPC_RAW_OR(dst_reg, dst_reg, tmp_reg)); in bpf_jit_build_body() [all …]
|
A D | bpf_jit_comp.c | 232 int insn_idx, int jmp_off, int dst_reg) in bpf_add_extable_entry() argument 253 fixup[0] = PPC_RAW_LI(dst_reg, 0); in bpf_add_extable_entry() 255 fixup[1] = PPC_RAW_LI(dst_reg - 1, 0); /* clear higher 32-bit register too */ in bpf_add_extable_entry()
|
/linux-6.3-rc2/tools/include/linux/ |
A D | filter.h | 37 .dst_reg = DST, \ 45 .dst_reg = DST, \ 55 .dst_reg = DST, \ 63 .dst_reg = DST, \ 73 .dst_reg = DST, \ 83 .dst_reg = DST, \ 91 .dst_reg = DST, \ 137 .dst_reg = 0, \ 147 .dst_reg = 0, \ 253 .dst_reg = 0, \ [all …]
|
/linux-6.3-rc2/arch/s390/net/ |
A D | bpf_jit_comp.c | 779 u32 dst_reg = insn->dst_reg; in bpf_jit_insn() local 1121 EMIT6_DISP_LH(0xeb000000, 0x000d, dst_reg, dst_reg, src_reg, 0); in bpf_jit_insn() 1191 EMIT2(0x1300, dst_reg, dst_reg); in bpf_jit_insn() 1196 EMIT4(0xb9030000, dst_reg, dst_reg); in bpf_jit_insn() 1206 EMIT4(0xb9850000, dst_reg, dst_reg); in bpf_jit_insn() 1213 EMIT4(0xb9160000, dst_reg, dst_reg); in bpf_jit_insn() 1223 EMIT4(0xb91f0000, dst_reg, dst_reg); in bpf_jit_insn() 1227 EMIT4(0xb9850000, dst_reg, dst_reg); in bpf_jit_insn() 1233 EMIT4(0xb91f0000, dst_reg, dst_reg); in bpf_jit_insn() 1236 EMIT4(0xb9160000, dst_reg, dst_reg); in bpf_jit_insn() [all …]
|
/linux-6.3-rc2/samples/bpf/ |
A D | bpf_insn.h | 13 .dst_reg = DST, \ 21 .dst_reg = DST, \ 31 .dst_reg = DST, \ 39 .dst_reg = DST, \ 49 .dst_reg = DST, \ 57 .dst_reg = DST, \ 67 .dst_reg = DST, \ 75 .dst_reg = DST, \ 87 .dst_reg = DST, \ 93 .dst_reg = 0, \ [all …]
|
/linux-6.3-rc2/arch/x86/net/ |
A D | bpf_jit_comp.c | 649 EMIT1(add_2mod(0x40, dst_reg, dst_reg)); in emit_mov_imm32() 652 EMIT2(b2, add_2reg(b3, dst_reg, dst_reg)); in emit_mov_imm32() 960 EMIT2(0xf7, add_2reg(0xC0, dst_reg, dst_reg)); in emit_shiftx() 1001 u32 dst_reg = insn->dst_reg; in do_jit() local 1165 maybe_emit_mod(&prog, dst_reg, dst_reg, in do_jit() 1170 EMIT3(0x6B, add_2reg(0xC0, dst_reg, dst_reg), in do_jit() 1175 add_2reg(0xC0, dst_reg, dst_reg), in do_jit() 1278 EMIT1(add_2reg(0xC0, dst_reg, dst_reg)); in do_jit() 1307 EMIT1(add_2reg(0xC0, dst_reg, dst_reg)); in do_jit() 1313 EMIT2(0x89, add_2reg(0xC0, dst_reg, dst_reg)); in do_jit() [all …]
|
/linux-6.3-rc2/kernel/bpf/ |
A D | verifier.c | 3494 u32 dst_reg = insn->dst_reg; in check_stack_write_fixed_off() local 10445 dst_reg->off + dst_reg->var_off.value)) in sanitize_check_bounds() 10860 dst_reg->smin_value = dst_reg->umin_value; in scalar_min_max_mul() 10861 dst_reg->smax_value = dst_reg->umax_value; in scalar_min_max_mul() 10927 dst_reg->smin_value = dst_reg->umin_value; in scalar_min_max_and() 10928 dst_reg->smax_value = dst_reg->umax_value; in scalar_min_max_and() 10985 dst_reg->umax_value = dst_reg->var_off.value | dst_reg->var_off.mask; in scalar_min_max_or() 11047 dst_reg->umax_value = dst_reg->var_off.value | dst_reg->var_off.mask; in scalar_min_max_xor() 11435 dst_reg = ®s[insn->dst_reg]; in adjust_reg_min_max_vals() 12452 dst_reg = ®s[insn->dst_reg]; in check_cond_jmp_op() [all …]
|
A D | disasm.c | 126 insn->code, insn->dst_reg, in print_bpf_end_insn() 128 insn->imm, insn->dst_reg); in print_bpf_end_insn() 148 insn->dst_reg); in print_bpf_insn() 152 insn->dst_reg, in print_bpf_insn() 159 insn->dst_reg, in print_bpf_insn() 168 insn->dst_reg, in print_bpf_insn() 176 insn->dst_reg, insn->off, in print_bpf_insn() 196 insn->dst_reg, insn->off, in print_bpf_insn() 213 insn->dst_reg, in print_bpf_insn() 288 insn->dst_reg, in print_bpf_insn() [all …]
|
A D | cgroup.c | 2200 BPF_SIZE(si->code), si->dst_reg, si->src_reg, in sysctl_convert_ctx_access() 2220 BPF_DW, si->dst_reg, treg, in sysctl_convert_ctx_access() 2224 treg, si->dst_reg, in sysctl_convert_ctx_access() 2231 BPF_DW, treg, si->dst_reg, in sysctl_convert_ctx_access() 2236 si->dst_reg, si->src_reg, in sysctl_convert_ctx_access() 2240 BPF_SIZE(si->code), si->dst_reg, si->dst_reg, in sysctl_convert_ctx_access() 2381 si->dst_reg, si->src_reg, \ 2427 treg, si->dst_reg, in cg_sockopt_convert_ctx_access() 2439 si->dst_reg, si->src_reg, in cg_sockopt_convert_ctx_access() 2442 si->dst_reg, si->dst_reg, in cg_sockopt_convert_ctx_access() [all …]
|
A D | core.c | 58 #define DST regs[insn->dst_reg] 313 dst[i].dst_reg == 0 && in bpf_prog_calc_tag() 1246 if (from->dst_reg == BPF_REG_AX || from->src_reg == BPF_REG_AX) in bpf_jit_blind_insn() 1252 *to++ = BPF_ALU64_REG(BPF_XOR, from->dst_reg, from->dst_reg); in bpf_jit_blind_insn() 1268 *to++ = BPF_ALU32_REG(from->code, from->dst_reg, BPF_REG_AX); in bpf_jit_blind_insn() 1282 *to++ = BPF_ALU64_REG(from->code, from->dst_reg, BPF_REG_AX); in bpf_jit_blind_insn() 1302 *to++ = BPF_JMP_REG(from->code, from->dst_reg, BPF_REG_AX, off); in bpf_jit_blind_insn() 1322 *to++ = BPF_JMP32_REG(from->code, from->dst_reg, BPF_REG_AX, in bpf_jit_blind_insn() 1330 *to++ = BPF_ALU64_REG(BPF_MOV, aux[0].dst_reg, BPF_REG_AX); in bpf_jit_blind_insn() 1337 *to++ = BPF_ALU64_REG(BPF_OR, aux[0].dst_reg, BPF_REG_AX); in bpf_jit_blind_insn() [all …]
|
/linux-6.3-rc2/net/core/ |
A D | filter.c | 9455 *insn++ = BPF_MOV64_REG(si->dst_reg, si->dst_reg); in bpf_convert_ctx_access() 9590 si->dst_reg, si->dst_reg, in bpf_convert_ctx_access() 9598 si->dst_reg, si->dst_reg, in bpf_convert_ctx_access() 9625 si->dst_reg, si->dst_reg, in bpf_convert_ctx_access() 9862 si->dst_reg, si->dst_reg, in xdp_convert_ctx_access() 9880 si->dst_reg, si->dst_reg, in xdp_convert_ctx_access() 9905 SIZE, si->dst_reg, si->dst_reg, \ 10092 si->dst_reg, si->dst_reg, \ in sock_ops_convert_ctx_access() 10442 si->dst_reg, si->dst_reg, in sock_ops_convert_ctx_access() 10453 si->dst_reg, si->dst_reg, in sock_ops_convert_ctx_access() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/bpf/ |
A D | jit.c | 1329 u8 dst = insn->dst_reg * 2; in wrp_alu32_imm() 1406 u8 reg = insn->dst_reg * 2; in cmp_imm() 1447 areg = insn->dst_reg * 2; in cmp_reg() 1507 u8 dst_reg; in wrp_mul() local 1509 dst_reg = insn->dst_reg; in wrp_mul() 2064 dst = insn->dst_reg * 2; in shl_reg64() 2176 dst = insn->dst_reg * 2; in shr_reg64() 2293 dst = insn->dst_reg * 2; in ashr_reg64() 2448 dst = insn->dst_reg * 2; in ashr_reg() 2499 dst = insn->dst_reg * 2; in shr_reg() [all …]
|
A D | verifier.c | 505 const struct bpf_reg_state *reg = cur_regs(env) + meta->insn.dst_reg; in nfp_bpf_check_store() 522 return nfp_bpf_check_ptr(nfp_prog, meta, env, meta->insn.dst_reg); in nfp_bpf_check_store() 530 const struct bpf_reg_state *dreg = cur_regs(env) + meta->insn.dst_reg; in nfp_bpf_check_atomic() 552 return nfp_bpf_check_ptr(nfp_prog, meta, env, meta->insn.dst_reg); in nfp_bpf_check_atomic() 562 cur_regs(env) + meta->insn.dst_reg; in nfp_bpf_check_alu() 647 meta->insn.dst_reg >= MAX_BPF_REG) { in nfp_verify_insn() 684 if (meta->insn.dst_reg >= BPF_REG_6 && in nfp_assign_subprog_idx_and_regs() 685 meta->insn.dst_reg <= BPF_REG_9) in nfp_assign_subprog_idx_and_regs()
|
/linux-6.3-rc2/include/linux/ |
A D | filter.h | 96 .dst_reg = DST, \ 104 .dst_reg = DST, \ 114 .dst_reg = DST, \ 122 .dst_reg = DST, \ 200 .dst_reg = 0, \ 232 .dst_reg = 0, \ 242 .dst_reg = 0, \ 349 .dst_reg = 0, \ 359 .dst_reg = 0, \ 371 .dst_reg = 0, \ [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/verifier/ |
A D | atomic_fetch.c | 95 #define __ATOMIC_FETCH_OP_TEST(src_reg, dst_reg, operand1, op, operand2, expect) \ argument 97 "atomic fetch " #op ", src=" #dst_reg " dst=" #dst_reg, \ 102 BPF_MOV64_REG(dst_reg, BPF_REG_10), \ 105 dst_reg, src_reg, -8), \
|
/linux-6.3-rc2/arch/arm/crypto/ |
A D | crct10dif-ce-core.S | 137 .macro fold_16_bytes, src_reg, dst_reg, load_next_consts 143 veor.8 \dst_reg, \dst_reg, q8 144 veor.8 \dst_reg, \dst_reg, \src_reg
|
/linux-6.3-rc2/arch/x86/crypto/ |
A D | crct10dif-pcl-asm_64.S | 83 # Fold src_reg into dst_reg. 84 .macro fold_16_bytes src_reg, dst_reg 88 pxor %xmm8, \dst_reg 89 xorps \src_reg, \dst_reg
|
/linux-6.3-rc2/drivers/scsi/ |
A D | script_asm.pl | 553 $dst_reg = "\U$1\E"; 581 print STDERR "source = $src_reg, data = $data8 , destination = $dst_reg\n" 585 if (($src_reg eq undef) || ($src_reg eq $dst_reg)) { 587 ($registers{$dst_reg} << 16); 588 } elsif ($dst_reg =~ /SFBR/i) { 593 ($registers{$dst_reg} << 16);
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_ttm_move.c | 315 struct intel_memory_region *dst_reg, *src_reg; in i915_ttm_memcpy_init() local 317 dst_reg = i915_ttm_region(bo->bdev, dst_mem->mem_type); in i915_ttm_memcpy_init() 319 GEM_BUG_ON(!dst_reg || !src_reg); in i915_ttm_memcpy_init() 323 ttm_kmap_iter_iomap_init(&arg->_dst_iter.io, &dst_reg->iomap, in i915_ttm_memcpy_init() 324 &dst_rsgt->table, dst_reg->region.start); in i915_ttm_memcpy_init()
|
/linux-6.3-rc2/arch/arm64/crypto/ |
A D | crct10dif-ce-core.S | 240 .macro fold_16_bytes, p, src_reg, dst_reg, load_next_consts 247 eor \dst_reg\().16b, \dst_reg\().16b, v8.16b 248 eor \dst_reg\().16b, \dst_reg\().16b, \src_reg\().16b
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | netif_receive_skb.c | 245 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,}); in BPF_PROG() 247 {.code = 1, .dst_reg = 0x2, .src_reg = 0x3, .off = 4, in BPF_PROG()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | btf_dump.c | 724 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,}); in test_btf_dump_struct_data() 728 { .code = 1, .dst_reg = 0x2, .src_reg = 0x3, .off = 4, in test_btf_dump_struct_data() 738 {.code = 1, .dst_reg = 2, .src_reg = 3, .off = 4, .imm = 5}); in test_btf_dump_struct_data() 743 { .code = 0, .dst_reg = 1}); in test_btf_dump_struct_data()
|
/linux-6.3-rc2/arch/loongarch/net/ |
A D | bpf_jit.c | 284 const u8 dst = regmap[insn->dst_reg]; in emit_atomic() 396 int dst_reg = FIELD_GET(BPF_FIXUP_REG_MASK, ex->fixup); in ex_handler_bpf() local 399 regs->regs[dst_reg] = 0; in ex_handler_bpf() 408 int dst_reg) in add_exception_handler() argument 442 ex->fixup = FIELD_PREP(BPF_FIXUP_OFFSET_MASK, offset) | FIELD_PREP(BPF_FIXUP_REG_MASK, dst_reg); in add_exception_handler() 461 const u8 dst = regmap[insn->dst_reg]; in build_insn()
|
/linux-6.3-rc2/Documentation/bpf/ |
A D | classic_vs_extended.rst | 212 op:16, jt:8, jf:8, k:32 ==> op:8, dst_reg:4, src_reg:4, off:16, imm:32 325 In eBPF it means dst_reg = (u32) dst_reg + (u32) src_reg; similarly, 334 dst_reg = dst_reg + src_reg
|