| /linux/arch/powerpc/net/ |
| A D | bpf_jit_comp64.c | 420 u32 dst_reg = bpf_to_ppc(insn[i].dst_reg); in bpf_jit_build_body() local 463 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 467 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 590 EMIT(PPC_RAW_NEG(dst_reg, dst_reg)); in bpf_jit_build_body() 612 EMIT(PPC_RAW_OR(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 656 EMIT(PPC_RAW_SLWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 662 EMIT(PPC_RAW_SLDI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 673 EMIT(PPC_RAW_SRWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 679 EMIT(PPC_RAW_SRDI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() 688 EMIT(PPC_RAW_SRAWI(dst_reg, dst_reg, imm)); in bpf_jit_build_body() [all …]
|
| A D | bpf_jit_comp32.c | 295 u32 dst_reg = bpf_to_ppc(insn[i].dst_reg); in bpf_jit_build_body() local 339 if (dst_reg >= 3 && dst_reg < 32) { in bpf_jit_build_body() 526 EMIT(PPC_RAW_SUBFC(dst_reg, dst_reg_h, dst_reg)); in bpf_jit_build_body() 528 EMIT(PPC_RAW_XOR(dst_reg, dst_reg, dst_reg_h)); in bpf_jit_build_body() 529 EMIT(PPC_RAW_SUBFC(dst_reg, dst_reg_h, dst_reg)); in bpf_jit_build_body() 687 EMIT(PPC_RAW_OR(dst_reg, dst_reg, _R0)); in bpf_jit_build_body() 689 EMIT(PPC_RAW_OR(dst_reg, dst_reg, tmp_reg)); in bpf_jit_build_body() 724 EMIT(PPC_RAW_OR(dst_reg, dst_reg, _R0)); in bpf_jit_build_body() 729 EMIT(PPC_RAW_OR(dst_reg, dst_reg, tmp_reg)); in bpf_jit_build_body() 805 EMIT(PPC_RAW_RLWINM(dst_reg, dst_reg, 24, 16, 31)); in bpf_jit_build_body() [all …]
|
| A D | bpf_jit_comp.c | 259 int dst_reg) in bpf_add_extable_entry() argument 287 fixup[0] = PPC_RAW_LI(dst_reg, 0); in bpf_add_extable_entry() 289 fixup[1] = PPC_RAW_LI(dst_reg - 1, 0); /* clear higher 32-bit register too */ in bpf_add_extable_entry()
|
| /linux/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, \ 101 .dst_reg = DST, \ 155 .dst_reg = 0, \ 165 .dst_reg = 0, \ [all …]
|
| /linux/arch/x86/net/ |
| A D | bpf_jit_comp.c | 896 EMIT1(add_2mod(0x40, dst_reg, dst_reg)); in emit_mov_imm32() 899 EMIT2(b2, add_2reg(b3, dst_reg, dst_reg)); in emit_mov_imm32() 1403 EMIT2(0xf7, add_2reg(0xC0, dst_reg, dst_reg)); in emit_shiftx() 1466 u32 dst_reg = insn->dst_reg; in do_jit() local 1519 EMIT2(0x85, add_2reg(0xC0, dst_reg, dst_reg)); in do_jit() 1689 maybe_emit_mod(&prog, dst_reg, dst_reg, in do_jit() 1694 EMIT3(0x6B, add_2reg(0xC0, dst_reg, dst_reg), in do_jit() 1699 add_2reg(0xC0, dst_reg, dst_reg), in do_jit() 1803 EMIT1(add_2reg(0xC0, dst_reg, dst_reg)); in do_jit() 1832 EMIT1(add_2reg(0xC0, dst_reg, dst_reg)); in do_jit() [all …]
|
| /linux/arch/s390/net/ |
| A D | bpf_jit_comp.c | 863 u32 dst_reg = insn->dst_reg; in bpf_jit_insn() local 891 EMIT4(0xb9160000, dst_reg, dst_reg); in bpf_jit_insn() 897 EMIT4(0xb9160000, dst_reg, dst_reg); in bpf_jit_insn() 1398 EMIT2(0x1300, dst_reg, dst_reg); in bpf_jit_insn() 1403 EMIT4(0xb9030000, dst_reg, dst_reg); in bpf_jit_insn() 1413 EMIT4(0xb9850000, dst_reg, dst_reg); in bpf_jit_insn() 1420 EMIT4(0xb9160000, dst_reg, dst_reg); in bpf_jit_insn() 1431 EMIT4(0xb91f0000, dst_reg, dst_reg); in bpf_jit_insn() 1435 EMIT4(0xb9850000, dst_reg, dst_reg); in bpf_jit_insn() 1441 EMIT4(0xb91f0000, dst_reg, dst_reg); in bpf_jit_insn() [all …]
|
| /linux/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/tools/testing/selftests/bpf/ |
| A D | disasm.c | 143 insn->code, insn->dst_reg, in print_bpf_end_insn() 145 insn->imm, insn->dst_reg); in print_bpf_end_insn() 153 insn->code, insn->dst_reg, in print_bpf_bswap_insn() 154 insn->imm, insn->dst_reg); in print_bpf_bswap_insn() 203 insn->dst_reg); in print_bpf_insn() 214 insn->dst_reg, in print_bpf_insn() 223 insn->dst_reg, in print_bpf_insn() 233 insn->dst_reg, in print_bpf_insn() 278 insn->dst_reg, in print_bpf_insn() 362 insn->dst_reg, in print_bpf_insn() [all …]
|
| /linux/kernel/bpf/ |
| A D | disasm.c | 143 insn->code, insn->dst_reg, in print_bpf_end_insn() 145 insn->imm, insn->dst_reg); in print_bpf_end_insn() 153 insn->code, insn->dst_reg, in print_bpf_bswap_insn() 154 insn->imm, insn->dst_reg); in print_bpf_bswap_insn() 203 insn->dst_reg); in print_bpf_insn() 214 insn->dst_reg, in print_bpf_insn() 223 insn->dst_reg, in print_bpf_insn() 233 insn->dst_reg, in print_bpf_insn() 278 insn->dst_reg, in print_bpf_insn() 362 insn->dst_reg, in print_bpf_insn() [all …]
|
| A D | verifier.c | 13231 dst_reg->off + dst_reg->var_off.value)) in sanitize_check_bounds() 13630 dst_reg->smin_value = dst_reg->umin_value; in scalar_min_max_mul() 13631 dst_reg->smax_value = dst_reg->umax_value; in scalar_min_max_mul() 13688 dst_reg->smin_value = dst_reg->umin_value; in scalar_min_max_and() 13689 dst_reg->smax_value = dst_reg->umax_value; in scalar_min_max_and() 13745 dst_reg->umax_value = dst_reg->var_off.value | dst_reg->var_off.mask; in scalar_min_max_or() 13803 dst_reg->umax_value = dst_reg->var_off.value | dst_reg->var_off.mask; in scalar_min_max_xor() 14168 dst_reg = ®s[insn->dst_reg]; in adjust_reg_min_max_vals() 15400 dst_reg = ®s[insn->dst_reg]; in check_cond_jmp_op() 15612 dst_reg = ®s[insn->dst_reg]; in check_ld_imm() [all …]
|
| A D | cgroup.c | 2270 BPF_DW, si->dst_reg, treg, in sysctl_convert_ctx_access() 2274 treg, si->dst_reg, in sysctl_convert_ctx_access() 2283 BPF_DW, treg, si->dst_reg, in sysctl_convert_ctx_access() 2288 si->dst_reg, si->src_reg, in sysctl_convert_ctx_access() 2292 BPF_SIZE(si->code), si->dst_reg, si->dst_reg, in sysctl_convert_ctx_access() 2433 si->dst_reg, si->src_reg, \ 2439 si->dst_reg, si->src_reg, \ 2486 treg, si->dst_reg, in cg_sockopt_convert_ctx_access() 2500 si->dst_reg, si->src_reg, in cg_sockopt_convert_ctx_access() 2503 si->dst_reg, si->dst_reg, in cg_sockopt_convert_ctx_access() [all …]
|
| /linux/net/core/ |
| A D | filter.c | 9731 *insn++ = BPF_MOV64_REG(si->dst_reg, si->dst_reg); in bpf_convert_ctx_access() 9866 si->dst_reg, si->dst_reg, in bpf_convert_ctx_access() 9874 si->dst_reg, si->dst_reg, in bpf_convert_ctx_access() 9901 si->dst_reg, si->dst_reg, in bpf_convert_ctx_access() 10138 si->dst_reg, si->dst_reg, in xdp_convert_ctx_access() 10156 si->dst_reg, si->dst_reg, in xdp_convert_ctx_access() 10181 SIZE, si->dst_reg, si->dst_reg, \ 10370 si->dst_reg, si->dst_reg, \ in sock_ops_convert_ctx_access() 10721 si->dst_reg, si->dst_reg, in sock_ops_convert_ctx_access() 10732 si->dst_reg, si->dst_reg, in sock_ops_convert_ctx_access() [all …]
|
| /linux/include/linux/ |
| A D | filter.h | 105 .dst_reg = DST, \ 116 .dst_reg = DST, \ 129 .dst_reg = DST, \ 139 .dst_reg = DST, \ 276 .dst_reg = 0, \ 308 .dst_reg = 0, \ 318 .dst_reg = 0, \ 435 .dst_reg = 0, \ 445 .dst_reg = 0, \ 455 .dst_reg = 0, \ [all …]
|
| /linux/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/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/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/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/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/drivers/gpu/drm/i915/gem/ |
| A D | i915_gem_ttm_move.c | 318 struct intel_memory_region *dst_reg, *src_reg; in i915_ttm_memcpy_init() local 320 dst_reg = i915_ttm_region(bo->bdev, dst_mem->mem_type); in i915_ttm_memcpy_init() 322 GEM_BUG_ON(!dst_reg || !src_reg); in i915_ttm_memcpy_init() 326 ttm_kmap_iter_iomap_init(&arg->_dst_iter.io, &dst_reg->iomap, in i915_ttm_memcpy_init() 327 &dst_rsgt->table, dst_reg->region.start); in i915_ttm_memcpy_init()
|
| /linux/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/tools/testing/selftests/bpf/progs/ |
| A D | netif_receive_skb.c | 241 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,}); in BPF_PROG() 243 {.code = 1, .dst_reg = 0x2, .src_reg = 0x3, .off = 4, in BPF_PROG()
|
| /linux/arch/arm64/net/ |
| A D | bpf_jit_comp.c | 344 if (insn->dst_reg == BPF_REG_6 || insn->src_reg == BPF_REG_6) in find_used_callee_regs() 347 if (insn->dst_reg == BPF_REG_7 || insn->src_reg == BPF_REG_7) in find_used_callee_regs() 642 const u8 dst = bpf2a64[insn->dst_reg]; in emit_lse_atomic() 717 const u8 dst = bpf2a64[insn->dst_reg]; in emit_ll_sc_atomic() 894 int dst_reg = FIELD_GET(BPF_FIXUP_REG_MASK, ex->fixup); in ex_handler_bpf() local 896 if (dst_reg != DONT_CLEAR) in ex_handler_bpf() 897 regs->regs[dst_reg] = 0; in ex_handler_bpf() 905 int dst_reg) in add_exception_handler() argument 965 dst_reg = DONT_CLEAR; in add_exception_handler() 968 FIELD_PREP(BPF_FIXUP_REG_MASK, dst_reg); in add_exception_handler() [all …]
|
| /linux/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/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
|