/linux-6.12.1/arch/arm/net/ |
D | bpf_jit_32.h | 167 #define _AL3_I(op, rd, rn, imm) ((op ## _I) | (rd) << 12 | (rn) << 16 | (imm)) argument 173 #define ARM_ADD_I(rd, rn, imm) _AL3_I(ARM_INST_ADD, rd, rn, imm) argument 174 #define ARM_ADDS_I(rd, rn, imm) _AL3_I(ARM_INST_ADDS, rd, rn, imm) argument 176 #define ARM_ADC_I(rd, rn, imm) _AL3_I(ARM_INST_ADC, rd, rn, imm) argument 180 #define ARM_AND_I(rd, rn, imm) _AL3_I(ARM_INST_AND, rd, rn, imm) argument 183 #define ARM_BIC_I(rd, rn, imm) _AL3_I(ARM_INST_BIC, rd, rn, imm) argument 190 #define ARM_CMP_I(rn, imm) _AL3_I(ARM_INST_CMP, 0, rn, imm) argument 193 #define ARM_EOR_I(rd, rn, imm) _AL3_I(ARM_INST_EOR, rd, rn, imm) argument 198 #define ARM_LDR_R_SI(rt, rn, rm, type, imm) \ argument 213 #define ARM_LSL_I(rd, rn, imm) (_AL3_I(ARM_INST_LSL, rd, 0, rn) | (imm) << 7) argument [all …]
|
/linux-6.12.1/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.12.1/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.12.1/arch/arc/net/ |
D | bpf_jit_arcv2.c | 659 static u8 arc_movi_r(u8 *buf, u8 reg, s16 imm) in arc_movi_r() 679 static u8 arc_mov_i(u8 *buf, u8 rd, s32 imm) in arc_mov_i() 694 static u8 arc_mov_i_fixed(u8 *buf, u8 rd, s32 imm) in arc_mov_i_fixed() 716 static u8 arc_movu_cc_r(u8 *buf, u8 cc, u8 rd, u8 imm) in arc_movu_cc_r() 839 static u8 arc_add_i(u8 *buf, u8 ra, u8 rb, s32 imm) in arc_add_i() 901 static u8 arc_sub_i(u8 *buf, u8 ra, s32 imm) in arc_sub_i() 970 static u8 arc_mpy_i(u8 *buf, u8 ra, u8 rb, s32 imm) in arc_mpy_i() 992 static u8 arc_mpydu_i(u8 *buf, u8 ra, s32 imm) in arc_mpydu_i() 1014 static u8 arc_divu_i(u8 *buf, u8 rd, s32 imm) in arc_divu_i() 1036 static u8 arc_divs_i(u8 *buf, u8 rd, s32 imm) in arc_divs_i() [all …]
|
/linux-6.12.1/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.12.1/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 264 static bool is_addsub_imm(u32 imm) in is_addsub_imm() 723 const s32 imm = insn->imm; in emit_ll_sc_atomic() local 993 const s32 imm = insn->imm; in build_insn() local 2668 bool bpf_jit_inlines_helper_call(s32 imm) in bpf_jit_inlines_helper_call()
|
/linux-6.12.1/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.12.1/arch/riscv/net/ |
D | bpf_jit.h | 278 u32 imm; in rv_j_insn() local 303 u32 imm; in rv_ci_insn() local 341 u32 imm; in rv_cb_insn() local 620 u32 imm; in rvc_addi4spn() local 657 u32 imm; in rvc_addi16sp() local 711 u32 imm; in rvc_lwsp() local 739 u32 imm; in rvc_swsp() local 944 u32 imm; in rvc_ldsp() local 952 u32 imm; in rvc_sdsp() local 970 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() 961 s32 imm = insn->imm; in bpf_jit_emit_insn() local
|
/linux-6.12.1/arch/x86/mm/ |
D | extable.c | 205 struct pt_regs *regs, int reg, int imm) in ex_handler_imm_reg() 214 int reg, int imm) in ex_handler_ucopy_len() 304 int type, reg, imm; in fixup_exception() local
|
/linux-6.12.1/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.12.1/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.12.1/arch/arm64/kernel/ |
D | module.c | 118 u64 imm; in reloc_insn_movw() local 159 u64 imm, imm_mask; in reloc_insn_imm() local
|
/linux-6.12.1/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.12.1/arch/openrisc/kernel/ |
D | traps.c | 324 long imm; in simulate_lwa() local 366 long imm; in simulate_swa() local
|
/linux-6.12.1/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.12.1/tools/objtool/arch/powerpc/ |
D | decode.c | 48 unsigned long imm; in arch_decode_instruction() local
|
/linux-6.12.1/arch/loongarch/net/ |
D | bpf_jit.c | 291 const s32 imm = insn->imm; in emit_atomic() local 472 const s32 imm = insn->imm; in build_insn() local
|
/linux-6.12.1/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.12.1/arch/microblaze/kernel/ |
D | ftrace.c | 103 static unsigned int imm; /* saving whole imm instruction */ variable
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | insn.h | 374 static inline void riscv_insn_insert_jtype_imm(u32 *insn, s32 imm) in riscv_insn_insert_jtype_imm() 398 s32 imm; in riscv_insn_extract_utype_itype_imm() local 421 static inline void riscv_insn_insert_utype_itype_imm(u32 *utype_insn, u32 *itype_insn, s32 imm) in riscv_insn_insert_utype_itype_imm()
|