/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp32.c | 296 u32 src_reg = bpf_to_ppc(insn[i].src_reg); in bpf_jit_build_body() local 297 u32 src_reg_h = src_reg - 1; in bpf_jit_build_body() 316 src2_reg = bpf_to_ppc(insn[i - 1].src_reg); in bpf_jit_build_body() 343 if (src_reg >= 3 && src_reg < 32) { in bpf_jit_build_body() 344 bpf_set_seen_register(ctx, src_reg); in bpf_jit_build_body() 353 EMIT(PPC_RAW_ADD(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body() 356 EMIT(PPC_RAW_ADDC(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body() 360 EMIT(PPC_RAW_SUB(dst_reg, src2_reg, src_reg)); in bpf_jit_build_body() 363 EMIT(PPC_RAW_SUBFC(dst_reg, src_reg, src2_reg)); in bpf_jit_build_body() 402 EMIT(PPC_RAW_MULW(dst_reg_h, src2_reg_h, src_reg)); in bpf_jit_build_body() [all …]
|
H A D | bpf_jit_comp64.c | 378 u32 src_reg = bpf_to_ppc(insn[i].src_reg); in bpf_jit_build_body() local 411 if (src_reg >= BPF_PPC_NVR_MIN && src_reg < 32) in bpf_jit_build_body() 412 bpf_set_seen_register(ctx, src_reg); in bpf_jit_build_body() 420 EMIT(PPC_RAW_ADD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 424 EMIT(PPC_RAW_SUB(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 451 EMIT(PPC_RAW_MULW(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 453 EMIT(PPC_RAW_MULD(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() 470 EMIT(PPC_RAW_DIVWU(tmp1_reg, dst_reg, src_reg)); in bpf_jit_build_body() 471 EMIT(PPC_RAW_MULW(tmp1_reg, src_reg, tmp1_reg)); in bpf_jit_build_body() 474 EMIT(PPC_RAW_DIVWU(dst_reg, dst_reg, src_reg)); in bpf_jit_build_body() [all …]
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 259 static u8 add_2reg(u8 byte, u32 dst_reg, u32 src_reg) in add_2reg() argument 261 return byte + reg2hex[dst_reg] + (reg2hex[src_reg] << 3); in add_2reg() 737 static void emit_mov_reg(u8 **pprog, bool is64, u32 dst_reg, u32 src_reg) in emit_mov_reg() argument 743 EMIT_mov(dst_reg, src_reg); in emit_mov_reg() 746 if (is_ereg(dst_reg) || is_ereg(src_reg)) in emit_mov_reg() 747 EMIT1(add_2mod(0x40, dst_reg, src_reg)); in emit_mov_reg() 748 EMIT2(0x89, add_2reg(0xC0, dst_reg, src_reg)); in emit_mov_reg() 755 u32 src_reg) in emit_movsx_reg() argument 762 EMIT4(add_2mod(0x48, src_reg, dst_reg), 0x0f, 0xbe, in emit_movsx_reg() 763 add_2reg(0xC0, src_reg, dst_reg)); in emit_movsx_reg() [all …]
|
/openbmc/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() 195 insn->src_reg); in print_bpf_insn() 210 insn->off, insn->src_reg); in print_bpf_insn() 219 insn->src_reg); in print_bpf_insn() 226 insn->code, insn->src_reg, in print_bpf_insn() 230 insn->dst_reg, insn->off, insn->src_reg); in print_bpf_insn() 238 insn->src_reg); in print_bpf_insn() 242 insn->code, insn->src_reg, in print_bpf_insn() [all …]
|
H A D | verifier.c | 249 insn->src_reg == 0; in bpf_helper_call() 255 insn->src_reg == BPF_PSEUDO_CALL; in bpf_pseudo_call() 261 insn->src_reg == BPF_PSEUDO_KFUNC_CALL; in bpf_pseudo_kfunc_call() 3072 insn[i].src_reg == 0 && in check_subprogs() 3233 if (insn->src_reg == BPF_PSEUDO_CALL) in is_reg64() 3313 return insn->src_reg; in insn_def_regno() 3472 if (insn->src_reg != BPF_PSEUDO_KFUNC_CALL) in disasm_kfunc_name() 3662 u32 sreg = insn->src_reg; in backtrack_insn() 3726 if (insn->src_reg != BPF_REG_FP) in backtrack_insn() 3843 if (insn->src_reg == BPF_PSEUDO_KFUNC_CALL && insn->imm == 0) in backtrack_insn() [all …]
|
/openbmc/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() 195 insn->src_reg); in print_bpf_insn() 210 insn->off, insn->src_reg); in print_bpf_insn() 219 insn->src_reg); in print_bpf_insn() 226 insn->code, insn->src_reg, in print_bpf_insn() 230 insn->dst_reg, insn->off, insn->src_reg); in print_bpf_insn() 238 insn->src_reg); in print_bpf_insn() 242 insn->code, insn->src_reg, in print_bpf_insn() [all …]
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 107 static inline u32 reg(u32 dst_reg, u32 src_reg) in reg() argument 109 return reg2hex[dst_reg] << 4 | reg2hex[src_reg]; in reg() 780 u32 src_reg = insn->src_reg; in bpf_jit_insn() local 800 EMIT4(0xb9160000, dst_reg, src_reg); in bpf_jit_insn() 806 EMIT4(0xb9040000, dst_reg, src_reg); in bpf_jit_insn() 837 EMIT2(0x1a00, dst_reg, src_reg); in bpf_jit_insn() 842 EMIT4(0xb9080000, dst_reg, src_reg); in bpf_jit_insn() 862 EMIT2(0x1b00, dst_reg, src_reg); in bpf_jit_insn() 867 EMIT4(0xb9090000, dst_reg, src_reg); in bpf_jit_insn() 892 EMIT4(0xb2520000, dst_reg, src_reg); in bpf_jit_insn() [all …]
|
/openbmc/u-boot/board/gdsys/a38x/ |
H A D | hre.c | 347 static int hre_op_loadkey(struct udevice *tpm, struct h_reg *src_reg, in hre_op_loadkey() argument 354 if (!src_reg || !dst_reg || !src_reg->valid || !dst_reg->valid) in hre_op_loadkey() 356 if (find_key(tpm, src_reg->digest, dst_reg->digest, &parent_handle)) in hre_op_loadkey() 359 src_reg->digest, &key_handle); in hre_op_loadkey() 384 struct h_reg *src_reg, *dst_reg; in hre_execute_op() local 407 src_reg = access_hreg(tpm, src_spec, HREG_RD); in hre_execute_op() 419 if (src_reg) { in hre_execute_op() 421 if (src_reg->digest[i]) in hre_execute_op() 443 if (src_reg) { in hre_execute_op() 444 src_buf = src_reg->digest; in hre_execute_op() [all …]
|
/openbmc/linux/include/linux/ |
H A D | filter.h | 100 .src_reg = SRC, \ 111 .src_reg = SRC, \ 124 .src_reg = 0, \ 132 .src_reg = 0, \ 142 .src_reg = 0, \ 152 .src_reg = SRC, \ 160 .src_reg = SRC, \ 170 .src_reg = 0, \ 178 .src_reg = 0, \ 187 .src_reg = DST, \ [all …]
|
/openbmc/linux/net/core/ |
H A D | filter.c | 295 static u32 convert_skb_access(int skb_field, int dst_reg, int src_reg, in convert_skb_access() argument 304 *insn++ = BPF_LDX_MEM(BPF_W, dst_reg, src_reg, in convert_skb_access() 309 *insn++ = BPF_LDX_MEM(BPF_B, dst_reg, src_reg, PKT_TYPE_OFFSET); in convert_skb_access() 319 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 327 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 332 *insn++ = BPF_LDX_MEM(BPF_W, dst_reg, src_reg, in convert_skb_access() 729 insn->src_reg = BPF_REG_TMP; in bpf_convert_filter() 735 insn->src_reg = bpf_src == BPF_X ? BPF_REG_X : 0; in bpf_convert_filter() 7101 si->dst_reg, si->src_reg, \ in bpf_tcp_sock_convert_ctx_access() 7113 si->dst_reg, si->src_reg, \ in bpf_tcp_sock_convert_ctx_access() [all …]
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | pmic_tps65217.c | 19 int tps65217_reg_read(uchar src_reg, uchar *src_val) in tps65217_reg_read() argument 22 return i2c_read(TPS65217_CHIP_PM, src_reg, 1, src_val, 1); in tps65217_reg_read() 24 return dm_i2c_read(tps65217_dev, src_reg, src_val, 1); in tps65217_reg_read()
|
/openbmc/linux/arch/x86/crypto/ |
H A D | crct10dif-pcl-asm_64.S | 83 # Fold src_reg into dst_reg. 84 .macro fold_16_bytes src_reg, dst_reg 85 movdqa \src_reg, %xmm8 86 pclmulqdq $0x11, FOLD_CONSTS, \src_reg 89 xorps \src_reg, \dst_reg
|
/openbmc/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() 281 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].src_reg); in dump_xlated_json()
|
/openbmc/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()
|
/openbmc/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) {
|
/openbmc/u-boot/board/gdsys/p1022/ |
H A D | controlcenterd-id.c | 586 static int hre_op_loadkey(struct udevice *tpm, struct h_reg *src_reg, in hre_op_loadkey() argument 593 if (!src_reg || !dst_reg || !src_reg->valid || !dst_reg->valid) in hre_op_loadkey() 595 if (find_key(tpm, src_reg->digest, dst_reg->digest, &parent_handle)) in hre_op_loadkey() 598 src_reg->digest, &key_handle); in hre_op_loadkey() 623 struct h_reg *src_reg, *dst_reg; in hre_execute_op() local 646 src_reg = access_hreg(tpm, src_spec, HREG_RD); in hre_execute_op() 658 if (src_reg) { in hre_execute_op() 660 if (src_reg->digest[i]) in hre_execute_op() 682 if (src_reg) { in hre_execute_op() 683 src_buf = src_reg->digest; in hre_execute_op() [all …]
|
/openbmc/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), \
|
/openbmc/linux/arch/arm/crypto/ |
H A D | crct10dif-ce-core.S | 137 .macro fold_16_bytes, src_reg, dst_reg, load_next_consts 138 vmull.p64 q8, \src_reg\()l, FOLD_CONST_L 139 vmull.p64 \src_reg, \src_reg\()h, FOLD_CONST_H 144 veor.8 \dst_reg, \dst_reg, \src_reg
|
/openbmc/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 …]
|
/openbmc/linux/drivers/soc/mediatek/ |
H A D | mtk-cmdq-helper.c | 26 u16 src_reg; member 224 inst.src_reg = addr_low; in cmdq_pkt_read_s() 239 inst.src_reg = src_reg_idx; in cmdq_pkt_write_s() 262 inst.src_reg = src_reg_idx; in cmdq_pkt_write_s_mask()
|
/openbmc/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm_move.c | 318 struct intel_memory_region *dst_reg, *src_reg; in i915_ttm_memcpy_init() local 321 src_reg = i915_ttm_region(bo->bdev, bo->resource->mem_type); in i915_ttm_memcpy_init() 322 GEM_BUG_ON(!dst_reg || !src_reg); in i915_ttm_memcpy_init() 331 ttm_kmap_iter_iomap_init(&arg->_src_iter.io, &src_reg->iomap, in i915_ttm_memcpy_init() 333 src_reg->region.start); in i915_ttm_memcpy_init()
|
/openbmc/linux/drivers/remoteproc/ |
H A D | imx_rproc.h | 30 u32 src_reg; member
|