| /linux/tools/include/linux/ |
| H A D | filter.h | 38 .src_reg = SRC, \ 46 .src_reg = SRC, \ 56 .src_reg = 0, \ 64 .src_reg = 0, \ 74 .src_reg = 0, \ 84 .src_reg = SRC, \ 92 .src_reg = SRC, \ 102 .src_reg = 0, \ 110 .src_reg = 0, \ 120 .src_reg = SRC, \ [all …]
|
| /linux/samples/bpf/ |
| H A D | bpf_insn.h | 14 .src_reg = SRC, \ 22 .src_reg = SRC, \ 32 .src_reg = 0, \ 40 .src_reg = 0, \ 50 .src_reg = SRC, \ 58 .src_reg = SRC, \ 68 .src_reg = 0, \ 76 .src_reg = 0, \ 88 .src_reg = SRC, \ 94 .src_reg = 0, \ [all …]
|
| /linux/drivers/clk/socfpga/ |
| H A D | clk-gate.c | 58 u32 src_reg; in socfpga_clk_set_parent() local 62 src_reg = readl(clk_mgr_base_addr + CLKMGR_L4SRC); in socfpga_clk_set_parent() 63 src_reg &= ~0x1; in socfpga_clk_set_parent() 64 src_reg |= parent; in socfpga_clk_set_parent() 65 writel(src_reg, clk_mgr_base_addr + CLKMGR_L4SRC); in socfpga_clk_set_parent() 67 src_reg = readl(clk_mgr_base_addr + CLKMGR_L4SRC); in socfpga_clk_set_parent() 68 src_reg &= ~0x2; in socfpga_clk_set_parent() 69 src_reg |= (parent << 1); in socfpga_clk_set_parent() 70 writel(src_reg, clk_mgr_base_addr + CLKMGR_L4SRC); in socfpga_clk_set_parent() 72 src_reg = readl(clk_mgr_base_addr + CLKMGR_PERPLL_SRC); in socfpga_clk_set_parent() [all …]
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp64.c | 615 u32 src_reg = bpf_to_ppc(insn->src_reg); in emit_atomic_ld_st() 620 u32 ret_reg = src_reg; in emit_atomic_ld_st() 649 EMIT(PPC_RAW_ADD(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body() 653 EMIT(PPC_RAW_AND(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body() 657 EMIT(PPC_RAW_OR(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body() 661 EMIT(PPC_RAW_XOR(tmp2_reg, tmp2_reg, src_reg)); in bpf_jit_build_body() 666 * in src_reg for other cases. in bpf_jit_build_body() 679 save_reg = src_reg; in bpf_jit_build_body() 713 static int bpf_jit_emit_probe_mem_store(struct codegen_context *ctx, u32 src_reg, s1 in bpf_jit_build_body() 433 u32 src_reg = bpf_to_ppc(insn->src_reg); bpf_jit_emit_atomic_ops() local 531 bpf_jit_emit_probe_mem_store(struct codegen_context * ctx,u32 src_reg,s16 off,u32 code,u32 * image) bpf_jit_emit_probe_mem_store() argument 565 u32 src_reg = bpf_to_ppc(insn.src_reg); emit_atomic_ld_st() local 642 u32 src_reg = bpf_to_ppc(insn[i].src_reg); bpf_jit_build_body() local [all...] |
| H A D | bpf_jit_comp32.c | 302 u32 src_reg = bpf_to_ppc(insn[i].src_reg); in bpf_jit_build_body() local 303 u32 src_reg_h = src_reg - 1; in bpf_jit_build_body() 321 src2_reg = bpf_to_ppc(insn[i - 1].src_reg); in bpf_jit_build_body() 348 if (src_reg >= 3 && src_reg < 32) { in bpf_jit_build_body() 349 bpf_set_seen_register(ctx, src_reg); in bpf_jit_build_body() 358 EMIT(PPC_RAW_ADD(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body() 361 EMIT(PPC_RAW_ADDC(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body() 365 EMIT(PPC_RAW_SUB(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body() 368 EMIT(PPC_RAW_SUBFC(dst_reg, src_reg, src2_reg)); in bpf_jit_build_body() 407 EMIT(PPC_RAW_MULW(dst_reg_h, src2_reg_h, src_reg)); in bpf_jit_build_body() [all …]
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 281 /* Encode 'dst_reg' and 'src_reg' registers into x86-64 opcode 'byte' */ 282 static u8 add_2reg(u8 byte, u32 dst_reg, u32 src_reg) in add_2reg() argument 284 return byte + reg2hex[dst_reg] + (reg2hex[src_reg] << 3); in add_2reg() 984 static void emit_mov_reg(u8 **pprog, bool is64, u32 dst_reg, u32 src_reg) in emit_mov_reg() argument 990 EMIT_mov(dst_reg, src_reg); in emit_mov_reg() 993 if (is_ereg(dst_reg) || is_ereg(src_reg)) in emit_mov_reg() 994 EMIT1(add_2mod(0x40, dst_reg, src_reg)); in emit_mov_reg() 995 EMIT2(0x89, add_2reg(0xC0, dst_reg, src_reg)); in emit_mov_reg() 1002 u32 src_reg) in emit_movsx_reg() argument 1009 EMIT4(add_2mod(0x48, src_reg, dst_re in emit_movsx_reg() 1068 maybe_emit_mod(u8 ** pprog,u32 dst_reg,u32 src_reg,bool is64) maybe_emit_mod() argument 1094 emit_ldx(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,int off) emit_ldx() argument 1124 emit_ldsx(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,int off) emit_ldsx() argument 1146 emit_ldx_index(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,u32 index_reg,int off) emit_ldx_index() argument 1172 emit_ldsx_index(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,u32 index_reg,int off) emit_ldsx_index() argument 1194 emit_ldx_r12(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,int off) emit_ldx_r12() argument 1199 emit_ldsx_r12(u8 ** prog,u32 size,u32 dst_reg,u32 src_reg,int off) emit_ldsx_r12() argument 1205 emit_stx(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,int off) emit_stx() argument 1239 emit_stx_index(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,u32 index_reg,int off) emit_stx_index() argument 1265 emit_stx_r12(u8 ** pprog,u32 size,u32 dst_reg,u32 src_reg,int off) emit_stx_r12() argument 1304 emit_atomic_rmw(u8 ** pprog,u32 atomic_op,u32 dst_reg,u32 src_reg,s16 off,u8 bpf_size) emit_atomic_rmw() argument 1345 emit_atomic_rmw_index(u8 ** pprog,u32 atomic_op,u32 size,u32 dst_reg,u32 src_reg,u32 index_reg,int off) emit_atomic_rmw_index() argument 1394 emit_atomic_ld_st(u8 ** pprog,u32 atomic_op,u32 dst_reg,u32 src_reg,s16 off,u8 bpf_size) emit_atomic_ld_st() argument 1415 emit_atomic_ld_st_index(u8 ** pprog,u32 atomic_op,u32 size,u32 dst_reg,u32 src_reg,u32 index_reg,int off) emit_atomic_ld_st_index() argument 1565 emit_shiftx(u8 ** pprog,u32 dst_reg,u8 src_reg,bool is64,u8 op) emit_shiftx() argument 1716 u32 src_reg = insn->src_reg; do_jit() local [all...] |
| /linux/kernel/bpf/ |
| H A D | disasm.c | 22 if (!insn->src_reg && in __func_get_name() 35 if (insn->src_reg == BPF_PSEUDO_CALL) in __func_get_name() 37 else if (insn->src_reg == BPF_PSEUDO_KFUNC_CALL) in __func_get_name() 176 * dst_reg = src_reg + <percpu_base_off> 207 insn->src_reg, ((u32)insn->imm) >> 16, (u16)insn->imm); in print_bpf_insn() 210 insn->code, insn->dst_reg, insn->src_reg); in print_bpf_insn() 219 insn->src_reg); in print_bpf_insn() 234 insn->off, insn->src_reg); in print_bpf_insn() 243 insn->src_reg); in print_bpf_insn() 250 insn->code, insn->src_reg, in print_bpf_insn() [all...] |
| H A D | verifier.c | 260 insn->src_reg == 0; in bpf_helper_call() 266 insn->src_reg == BPF_PSEUDO_CALL; in bpf_pseudo_call() 272 insn->src_reg == BPF_PSEUDO_KFUNC_CALL; in bpf_pseudo_kfunc_call() 575 return insn->code == (BPF_JMP | BPF_JCOND) && insn->src_reg == BPF_MAY_GOTO; in is_storage_get_function() 3639 insn[i].src_reg == 0 && 3755 if (insn->src_reg == BPF_PSEUDO_CALL) in insn_has_def32() 3837 return insn->src_reg; in insn_stack_access_spi() 4114 if (insn->src_reg != BPF_PSEUDO_KFUNC_CALL) in bt_clear_frame_slot() 4337 u32 sreg = insn->src_reg; in backtrack_insn() 4524 if (insn->src_reg in backtrack_insn() 4997 assign_scalar_id_before_mov(struct bpf_verifier_env * env,struct bpf_reg_state * src_reg) assign_scalar_id_before_mov() argument 14903 scalar32_min_max_add(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_add() argument 14934 scalar_min_max_add(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_add() argument 14965 scalar32_min_max_sub(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_sub() argument 14997 scalar_min_max_sub(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_sub() argument 15029 scalar32_min_max_mul(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_mul() argument 15057 scalar_min_max_mul(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_mul() argument 15085 scalar32_min_max_and(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_and() argument 15116 scalar_min_max_and(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_and() argument 15148 scalar32_min_max_or(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_or() argument 15179 scalar_min_max_or(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_or() argument 15211 scalar32_min_max_xor(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_xor() argument 15239 scalar_min_max_xor(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_xor() argument 15287 scalar32_min_max_lsh(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_lsh() argument 15335 scalar_min_max_lsh(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_lsh() argument 15350 scalar32_min_max_rsh(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_rsh() argument 15382 scalar_min_max_rsh(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_rsh() argument 15416 scalar32_min_max_arsh(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar32_min_max_arsh() argument 15439 scalar_min_max_arsh(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg) scalar_min_max_arsh() argument 15466 is_safe_to_compute_dst_reg_range(struct bpf_insn * insn,const struct bpf_reg_state * src_reg) is_safe_to_compute_dst_reg_range() argument 15513 adjust_scalar_min_max_vals(struct bpf_verifier_env * env,struct bpf_insn * insn,struct bpf_reg_state * dst_reg,struct bpf_reg_state src_reg) adjust_scalar_min_max_vals() argument 15619 struct bpf_reg_state *regs = state->regs, *dst_reg, *src_reg; adjust_reg_min_max_vals() local 15840 struct bpf_reg_state *src_reg = regs + insn->src_reg; check_alu_op() local 16252 is_pkt_ptr_branch_taken(struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg,u8 opcode) is_pkt_ptr_branch_taken() argument 16654 try_match_pkt_pointers(const struct bpf_insn * insn,struct bpf_reg_state * dst_reg,struct bpf_reg_state * src_reg,struct bpf_verifier_state * this_branch,struct bpf_verifier_state * other_branch) try_match_pkt_pointers() argument 16856 struct bpf_reg_state *dst_reg, *other_branch_regs, *src_reg = NULL; check_cond_jmp_op() local [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | disasm.c | 22 if (!insn->src_reg && in __func_get_name() 35 if (insn->src_reg == BPF_PSEUDO_CALL) in __func_get_name() 37 else if (insn->src_reg == BPF_PSEUDO_KFUNC_CALL) in __func_get_name() 176 * dst_reg = src_reg + <percpu_base_off> 207 insn->src_reg, ((u32)insn->imm) >> 16, (u16)insn->imm); in print_bpf_insn() 210 insn->code, insn->dst_reg, insn->src_reg); in print_bpf_insn() 219 insn->src_reg); in print_bpf_insn() 234 insn->off, insn->src_reg); in print_bpf_insn() 243 insn->src_reg); in print_bpf_insn() 250 insn->code, insn->src_reg, in print_bpf_insn() [all...] |
| H A D | disasm_helpers.c | 30 if (insn->src_reg == BPF_PSEUDO_CALL) { in print_call_cb()
|
| /linux/include/linux/ |
| H A D | filter.h | 103 /* ALU ops on registers, bpf_add|sub|...: dst_reg += src_reg */ 109 .src_reg = SRC, \ 120 .src_reg = SRC, \ 133 .src_reg = 0, \ 143 .src_reg = 0, \ 155 .src_reg = 0, \ 165 .src_reg = 0, \ 169 /* Short form of mov, dst_reg = src_reg */ 175 .src_reg = SRC, \ 183 .src_reg [all...] |
| /linux/drivers/clk/ |
| H A D | clk-lochnagar.c | 35 u16 src_reg; member 89 .src_reg = LOCHNAGAR1_##ID##_SEL, \ 97 .src_reg = LOCHNAGAR2_##ID##_CTRL, \ 181 ret = regmap_update_bits(regmap, lclk->src_reg, lclk->src_mask, index); in lochnagar_clk_set_parent() 197 ret = regmap_read(regmap, lclk->src_reg, &val); in lochnagar_clk_get_parent()
|
| /linux/tools/bpf/bpftool/ |
| H A D | xlated_dumper.c | 183 if (insn->src_reg == BPF_PSEUDO_CALL && in print_call() 188 if (insn->src_reg == BPF_PSEUDO_CALL) in print_call() 200 if (insn->src_reg == BPF_PSEUDO_MAP_FD) in print_imm() 203 else if (insn->src_reg == BPF_PSEUDO_MAP_VALUE) in print_imm() 206 else if (insn->src_reg == BPF_PSEUDO_MAP_IDX_VALUE) in print_imm() 209 else if (insn->src_reg == BPF_PSEUDO_FUNC) in print_imm() 280 jsonw_name(json_wtr, "src_reg"); in dump_xlated_json() 281 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].src_reg); in dump_xlated_json()
|
| /linux/net/core/ |
| H A D | filter.c | 319 static u32 convert_skb_access(int skb_field, int dst_reg, int src_reg, in convert_skb_access() argument 328 *insn++ = BPF_LDX_MEM(BPF_W, dst_reg, src_reg, in convert_skb_access() 333 *insn++ = BPF_LDX_MEM(BPF_B, dst_reg, src_reg, PKT_TYPE_OFFSET); in convert_skb_access() 343 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 350 /* dst_reg = *(u16 *) (src_reg + offsetof(vlan_tci)) */ in convert_skb_access() 351 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 356 *insn++ = BPF_LDX_MEM(BPF_W, dst_reg, src_reg, in convert_skb_access() 753 insn->src_reg = BPF_REG_TMP; in bpf_convert_filter() 759 insn->src_reg = bpf_src == BPF_X ? BPF_REG_X : 0; in bpf_convert_filter() 7334 si->dst_reg, si->src_reg, \ in bpf_tcp_sock_convert_ctx_access() [all...] |
| /linux/drivers/scsi/ |
| H A D | script_asm.pl | 516 $src_reg = "\U$1\E"; 525 $src_reg = "\U$1\E"; 534 $src_reg = undef; 581 print STDERR "source = $src_reg, data = $data8 , destination = $dst_reg\n" 585 if (($src_reg eq undef) || ($src_reg eq $dst_reg)) { 590 ($registers{$src_reg} << 16); 591 } elsif ($src_reg =~ /SFBR/i) {
|
| /linux/tools/testing/selftests/bpf/verifier/ |
| H A D | atomic_fetch.c | 95 #define __ATOMIC_FETCH_OP_TEST(src_reg, dst_reg, operand1, op, operand2, expect) \ argument 103 BPF_MOV64_IMM(src_reg, operand2), \ 105 dst_reg, src_reg, -8), \ 107 BPF_JMP_IMM(BPF_JEQ, src_reg, operand1, 2), \
|
| /linux/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | jit.c | 744 src_base = reg_a(meta->insn.src_reg * 2); in nfp_cpp_memcpy() 748 addr40_offset(nfp_prog, meta->insn.src_reg * 2, off, &src_base, in nfp_cpp_memcpy() 1315 u8 dst = meta->insn.dst_reg * 2, src = meta->insn.src_reg * 2; in wrp_alu64_reg() 1341 u8 dst = meta->insn.dst_reg * 2, src = meta->insn.src_reg * 2; in wrp_alu32_reg() 1364 insn->src_reg * 2, br_mask, insn->off); in wrp_test_reg() 1367 insn->src_reg * 2 + 1, br_mask, insn->off); in wrp_test_reg() 1448 breg = insn->src_reg * 2; in cmp_reg() 1515 multiplier = reg_b(insn->src_reg * 2); in wrp_mul() 1811 emit_alu(nfp_prog, reg_none(), reg_a(meta->insn.src_reg * 2), in nfp_queue_select() 1820 pv_qsel_val(nfp_prog), 0x1, reg_b(meta->insn.src_reg * 2), in nfp_queue_select() [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | imx_rproc.h | 31 u32 src_reg; 30 u32 src_reg; global() member
|
| H A D | imx_rproc.c | 332 return regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, dcfg->src_start); in imx_rproc_start() 430 return regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, dcfg->src_stop); in imx_rproc_da_to_va() 1025 ret = regmap_read(regmap, dcfg->src_reg, &val); in imx_rproc_probe() 1372 .src_reg = IMX7D_SRC_SCR, 1392 .src_reg = IMX7D_SRC_SCR, 1426 .src_reg = IMX7D_SRC_SCR, 1437 .src_reg = IMX6SX_SRC_SCR,
|
| /linux/drivers/gpu/ipu-v3/ |
| H A D | ipu-common.c | 697 u32 src_reg, sink_reg; in ipu_fsu_link() local 707 src_reg = ipu_cm_read(ipu, link->src.reg); in ipu_fsu_link() 708 src_reg &= ~link->src.mask; in ipu_fsu_link() 709 src_reg |= link->src.val; in ipu_fsu_link() 710 ipu_cm_write(ipu, src_reg, link->src.reg); in ipu_fsu_link() 731 u32 src_reg, sink_reg; in ipu_fsu_unlink() local 741 src_reg = ipu_cm_read(ipu, link->src.reg); in ipu_fsu_unlink() 742 src_reg &= ~link->src.mask; in ipu_fsu_unlink() 743 ipu_cm_write(ipu, src_reg, link->src.reg); in ipu_fsu_unlink()
|
| /linux/lib/crc/arm/ |
| H A D | crc-t10dif-core.S | 215 .macro fold_16_bytes, src_reg, dst_reg, p, load_next_consts 216 pmull16x64_\p FOLD_CONST, \src_reg 220 veor.8 \dst_reg, \dst_reg, \src_reg
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H 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/Documentation/bpf/standardization/ |
| H A D | instruction-set.rst | 187 |src_reg|dst_reg| 193 |dst_reg|src_reg| 196 **src_reg** 219 src_reg dst_reg 221 dst_reg src_reg 233 with 'opcode', 'dst_reg', 'src_reg', and 'offset' all set to zero. 309 X 1 use 'src_reg' register value as source operand 496 code value src_reg description notes 728 encoding defined in `Instruction encoding`_, and use the 'src_reg' field of the 732 with opcode subtypes in the 'src_reg' field, using new terms such as "map" [all …]
|
| /linux/lib/crc/arm64/ |
| H A D | crc-t10dif-core.S | 199 .macro fold_16_bytes, p, src_reg, dst_reg, load_next_consts 200 pmull16x64_\p fold_consts, \src_reg, v8 205 eor \dst_reg\().16b, \dst_reg\().16b, \src_reg\().16b
|
| /linux/Documentation/bpf/ |
| H 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 284 BPF_SRC(code) == BPF_X - use 'src_reg' register as source operand 325 In eBPF it means dst_reg = (u32) dst_reg + (u32) src_reg; similarly, 327 src_reg = (u32) src_reg ^ (u32) imm32 in eBPF. 334 dst_reg = dst_reg + src_reg
|