/linux-6.6.21/arch/arm/net/ |
D | bpf_jit_32.h | 164 #define _AL3_I(op, rd, rn, imm) ((op ## _I) | (rd) << 12 | (rn) << 16 | (imm)) argument 170 #define ARM_ADD_I(rd, rn, imm) _AL3_I(ARM_INST_ADD, rd, rn, imm) argument 171 #define ARM_ADDS_I(rd, rn, imm) _AL3_I(ARM_INST_ADDS, rd, rn, imm) argument 173 #define ARM_ADC_I(rd, rn, imm) _AL3_I(ARM_INST_ADC, rd, rn, imm) argument 177 #define ARM_AND_I(rd, rn, imm) _AL3_I(ARM_INST_AND, rd, rn, imm) argument 180 #define ARM_BIC_I(rd, rn, imm) _AL3_I(ARM_INST_BIC, rd, rn, imm) argument 187 #define ARM_CMP_I(rn, imm) _AL3_I(ARM_INST_CMP, 0, rn, imm) argument 190 #define ARM_EOR_I(rd, rn, imm) _AL3_I(ARM_INST_EOR, rd, rn, imm) argument 195 #define ARM_LDR_R_SI(rt, rn, rm, type, imm) \ argument 210 #define ARM_LSL_I(rd, rn, imm) (_AL3_I(ARM_INST_LSL, rd, 0, rn) | (imm) << 7) argument [all …]
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | inst.c | 17 unsigned int imm = insn.reg1i20_format.immediate; in simu_pc() local 48 unsigned int imm, imm_l, imm_h, rd, rj; in simu_branch() local 256 u32 larch_insn_gen_break(int imm) in larch_insn_gen_break() 284 u32 larch_insn_gen_lu12iw(enum loongarch_gpr rd, int imm) in larch_insn_gen_lu12iw() 298 u32 larch_insn_gen_lu32id(enum loongarch_gpr rd, int imm) in larch_insn_gen_lu32id() 312 u32 larch_insn_gen_lu52id(enum loongarch_gpr rd, enum loongarch_gpr rj, int imm) in larch_insn_gen_lu52id() 326 u32 larch_insn_gen_jirl(enum loongarch_gpr rd, enum loongarch_gpr rj, int imm) in larch_insn_gen_jirl()
|
/linux-6.6.21/arch/arm/probes/kprobes/ |
D | checkers-common.c | 34 int imm = insn & 0xff; in checker_stack_use_imm_0xx() local 47 int imm = insn & 0xff; in checker_stack_use_t32strd() local 56 int imm = ((insn & 0xf00) >> 4) + (insn & 0xf); in checker_stack_use_imm_x0x() local 66 int imm = insn & 0xfff; in checker_stack_use_imm_xxx() local
|
/linux-6.6.21/arch/mips/net/ |
D | bpf_jit_comp.c | 192 void emit_mov_i(struct jit_context *ctx, u8 dst, s32 imm) in emit_mov_i() 211 bool valid_alu_i(u8 op, s32 imm) in valid_alu_i() 247 bool rewrite_alu_i(u8 op, s32 imm, u8 *alu, s32 *val) in rewrite_alu_i() 298 void emit_alu_i(struct jit_context *ctx, u8 dst, s32 imm, u8 op) in emit_alu_i() 502 bool valid_jmp_i(u8 op, s32 imm) in valid_jmp_i() 605 void setup_jmp_i(struct jit_context *ctx, s32 imm, u8 width, in setup_jmp_i() 698 void emit_jmp_i(struct jit_context *ctx, u8 dst, s32 imm, s32 off, u8 op) in emit_jmp_i()
|
D | bpf_jit_comp32.c | 174 static void emit_mov_se_i64(struct jit_context *ctx, const u8 dst[], s32 imm) in emit_mov_se_i64() 202 const u8 dst[], s32 imm, u8 op) in emit_alu_i64() 322 const u8 dst[], u32 imm, u8 op) in emit_shift_i64() 423 static void emit_mul_i64(struct jit_context *ctx, const u8 dst[], s32 imm) in emit_mul_i64() 991 const u8 rs[], s64 imm) in emit_sltiu_r64() 1026 const u8 rs[], s64 imm) in emit_slti_r64() 1093 const u8 dst[], s32 imm, s32 off, u8 op) in emit_jmp_i64() 1471 s32 imm = insn->imm; in build_insn() local
|
D | bpf_jit_comp64.c | 158 static void emit_alu_i64(struct jit_context *ctx, u8 dst, s32 imm, u8 op) in emit_alu_i64() 642 s32 imm = insn->imm; in build_insn() local
|
/linux-6.6.21/arch/arm64/net/ |
D | bpf_jit.h | 73 #define A64_LS_IMM(Rt, Rn, imm, size, type) \ argument 77 #define A64_STRBI(Wt, Xn, imm) A64_LS_IMM(Wt, Xn, imm, 8, STORE) argument 78 #define A64_LDRBI(Wt, Xn, imm) A64_LS_IMM(Wt, Xn, imm, 8, LOAD) argument 79 #define A64_LDRSBI(Xt, Xn, imm) A64_LS_IMM(Xt, Xn, imm, 8, SIGNED_LOAD) argument 80 #define A64_STRHI(Wt, Xn, imm) A64_LS_IMM(Wt, Xn, imm, 16, STORE) argument 81 #define A64_LDRHI(Wt, Xn, imm) A64_LS_IMM(Wt, Xn, imm, 16, LOAD) argument 82 #define A64_LDRSHI(Xt, Xn, imm) A64_LS_IMM(Xt, Xn, imm, 16, SIGNED_LOAD) argument 83 #define A64_STR32I(Wt, Xn, imm) A64_LS_IMM(Wt, Xn, imm, 32, STORE) argument 84 #define A64_LDR32I(Wt, Xn, imm) A64_LS_IMM(Wt, Xn, imm, 32, LOAD) argument 85 #define A64_LDRSWI(Xt, Xn, imm) A64_LS_IMM(Xt, Xn, imm, 32, SIGNED_LOAD) argument [all …]
|
D | bpf_jit_comp.c | 33 #define check_imm(bits, imm) do { \ argument 41 #define check_imm19(imm) check_imm(19, imm) argument 42 #define check_imm26(imm) check_imm(26, imm) argument 216 static bool is_addsub_imm(u32 imm) in is_addsub_imm() 525 const s32 imm = insn->imm; in emit_ll_sc_atomic() local 772 const s32 imm = insn->imm; in build_insn() local 1384 const s32 imm = insn->imm; in find_fpb_offset() local
|
/linux-6.6.21/arch/riscv/kernel/ |
D | alternative.c | 76 s32 imm; in riscv_alternative_fix_auipc_jalr() local 91 s32 imm; in riscv_alternative_fix_jal() local 134 s32 imm = riscv_insn_extract_jtype_imm(insn); in riscv_alternative_fix_offsets() local
|
/linux-6.6.21/arch/riscv/net/ |
D | bpf_jit.h | 266 u32 imm; in rv_j_insn() local 291 u32 imm; in rv_ci_insn() local 329 u32 imm; in rv_cb_insn() local 608 u32 imm; in rvc_addi4spn() local 645 u32 imm; in rvc_addi16sp() local 699 u32 imm; in rvc_lwsp() local 727 u32 imm; in rvc_swsp() local 894 u32 imm; in rvc_ldsp() local 902 u32 imm; in rvc_sdsp() local 912 static inline void emit_jalr(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_jalr() [all …]
|
D | bpf_jit_comp32.c | 111 static void emit_imm(const s8 rd, s32 imm, struct rv_jit_context *ctx) in emit_imm() 124 static void emit_imm32(const s8 *rd, s32 imm, struct rv_jit_context *ctx) in emit_imm32() 243 static void emit_alu_i64(const s8 *dst, s32 imm, in emit_alu_i64() 327 static void emit_alu_i32(const s8 *dst, s32 imm, in emit_alu_i32() 962 s32 imm = insn->imm; in bpf_jit_emit_insn() local
|
/linux-6.6.21/arch/x86/mm/ |
D | extable.c | 211 struct pt_regs *regs, int reg, int imm) in ex_handler_imm_reg() 220 int reg, int imm) in ex_handler_ucopy_len() 237 int type, reg, imm; in fixup_exception() local
|
/linux-6.6.21/arch/arm64/lib/ |
D | insn.c | 113 u32 insn, u64 imm) in aarch64_insn_encode_immediate() 412 unsigned int imm, in aarch64_insn_gen_load_store_imm() 732 int imm, enum aarch64_insn_variant variant, in aarch64_insn_gen_add_sub_imm() 847 int imm, int shift, in aarch64_insn_gen_movewide() 1214 s32 imm; in aarch64_get_branch_offset() local 1315 static u32 aarch64_encode_immediate(u64 imm, in aarch64_encode_immediate() 1415 u64 imm) in aarch64_insn_gen_logical_immediate()
|
/linux-6.6.21/arch/parisc/net/ |
D | bpf_jit_comp32.c | 141 static void emit_imm(const s8 rd, s32 imm, struct hppa_jit_context *ctx) in emit_imm() 156 static void emit_imm32(const s8 *rd, s32 imm, struct hppa_jit_context *ctx) in emit_imm32() 421 static void emit_alu_i64(const s8 *dst, s32 imm, in emit_alu_i64() 509 static void emit_alu_i32(const s8 *dst, s32 imm, in emit_alu_i32() 1124 s32 imm = insn->imm; in bpf_jit_emit_insn() local
|
D | bpf_jit_comp64.c | 135 static void emit_imm32(u8 rd, s32 imm, struct hppa_jit_context *ctx) in emit_imm32() 160 static void emit_imm(u8 rd, s64 imm, u8 tmpreg, struct hppa_jit_context *ctx) in emit_imm() 602 s32 imm = insn->imm; in bpf_jit_emit_insn() local
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/bpf/ |
D | jit.c | 294 emit_immed(struct nfp_prog *nfp_prog, swreg dst, u16 imm, in emit_immed() 590 static bool pack_immed(u32 imm, u16 *val, enum immed_shift *shift) in pack_immed() 608 static void wrp_immed(struct nfp_prog *nfp_prog, swreg dst, u32 imm) in wrp_immed() 633 wrp_immed_relo(struct nfp_prog *nfp_prog, swreg dst, u32 imm, in wrp_immed_relo() 651 static swreg ur_load_imm_any(struct nfp_prog *nfp_prog, u32 imm, swreg tmp_reg) in ur_load_imm_any() 664 static swreg re_load_imm_any(struct nfp_prog *nfp_prog, u32 imm, swreg tmp_reg) in re_load_imm_any() 1002 u64 imm, u8 size) in data_st_host_order() 1265 wrp_alu_imm(struct nfp_prog *nfp_prog, u8 dst, enum alu_op alu_op, u32 imm) in wrp_alu_imm() 1298 u64 imm = insn->imm; /* sign extend */ in wrp_alu64_imm() local 1403 u64 imm = insn->imm; /* sign extend */ in cmp_imm() local [all …]
|
/linux-6.6.21/arch/openrisc/kernel/ |
D | traps.c | 311 long imm; in simulate_lwa() local 353 long imm; in simulate_swa() local
|
/linux-6.6.21/arch/arm64/kernel/ |
D | module.c | 244 u64 imm; in reloc_insn_movw() local 285 u64 imm, imm_mask; in reloc_insn_imm() local
|
/linux-6.6.21/arch/riscv/kernel/probes/ |
D | simulate-insn.c | 44 u32 imm; in simulate_jal() local 70 u32 imm = (opcode >> 20) & 0xfff; in simulate_jalr() local
|
/linux-6.6.21/arch/powerpc/lib/ |
D | code-patching.c | 447 signed long imm; in branch_iform_target() local 463 signed long imm; in branch_bform_target() local
|
/linux-6.6.21/arch/ia64/kernel/ |
D | unaligned.c | 171 unsigned long imm:7; /* [13:19] */ member 694 unsigned long imm; in emulate_load_updates() local 932 unsigned long imm; in emulate_store_int() local 1277 unsigned long imm; in emulate_store_float() local
|
/linux-6.6.21/tools/objtool/arch/powerpc/ |
D | decode.c | 48 unsigned long imm; in arch_decode_instruction() local
|
/linux-6.6.21/arch/loongarch/net/ |
D | bpf_jit.c | 286 const s32 imm = insn->imm; in emit_atomic() local 463 const s32 imm = insn->imm; in build_insn() local
|
/linux-6.6.21/arch/sparc/net/ |
D | bpf_jit_comp_64.c | 298 static void emit_alu_K(unsigned int opcode, unsigned int dst, unsigned int imm, in emit_alu_K() 317 static void emit_alu3_K(unsigned int opcode, unsigned int src, unsigned int imm, in emit_alu3_K() 636 const u8 dst, s32 imm, struct jit_ctx *ctx) in emit_cbcondi() 659 const s32 imm, bool is_imm, int branch_dst, in emit_compare_and_branch() 902 const s32 imm = insn->imm; in build_insn() local
|
/linux-6.6.21/arch/microblaze/kernel/ |
D | ftrace.c | 103 static unsigned int imm; /* saving whole imm instruction */ variable
|