Home
last modified time | relevance | path

Searched defs:imm (Results 1 – 25 of 70) sorted by relevance

123

/linux/arch/arm/net/
H A Dbpf_jit_32.h167 #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/arch/loongarch/kernel/
H A Dinst.c17 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/arch/arc/net/
H A Dbpf_jit_arcv2.c659 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/arch/arm/probes/kprobes/
H A Dcheckers-common.c34 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/arch/mips/net/
H A Dbpf_jit_comp.c192 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()
H A Dbpf_jit_comp32.c174 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
H A Dbpf_jit_comp64.c158 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/arch/arm64/net/
H A Dbpf_jit.h73 #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 …]
/linux/arch/riscv/net/
H A Dbpf_jit.h278 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 …]
H A Dbpf_jit_comp32.c111 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/arch/arm64/lib/
H A Dinsn.c113 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/arch/x86/mm/
H A Dextable.c205 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/arch/parisc/net/
H A Dbpf_jit_comp32.c141 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
H A Dbpf_jit_comp64.c135 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/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c294 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 …]
H A Dverifier.c53 int imm; in nfp_record_adjust_head() local
315 u64 imm; in nfp_bpf_check_exit() local
/linux/arch/openrisc/kernel/
H A Dtraps.c324 long imm; in simulate_lwa() local
366 long imm; in simulate_swa() local
/linux/arch/riscv/kernel/probes/
H A Dsimulate-insn.c44 u32 imm; in simulate_jal() local
70 u32 imm = (opcode >> 20) & 0xfff; in simulate_jalr() local
/linux/arch/loongarch/net/
H A Dbpf_jit.c291 const s32 imm = insn->imm; in emit_atomic() local
472 const s32 imm = insn->imm; in build_insn() local
/linux/tools/objtool/arch/powerpc/
H A Ddecode.c48 unsigned long imm; in arch_decode_instruction() local
/linux/arch/sparc/net/
H A Dbpf_jit_comp_64.c298 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/arch/riscv/include/asm/
H A Dinsn.h374 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()
/linux/arch/microblaze/kernel/
H A Dftrace.c103 static unsigned int imm; /* saving whole imm instruction */ variable
/linux/drivers/scsi/csiostor/
H A Dcsio_scsi.c207 uint8_t imm = csio_hw_to_scsim(hw)->proto_cmd_len; in csio_scsi_init_cmd_wr() local
367 uint8_t imm = csio_hw_to_scsim(hw)->proto_cmd_len; in csio_scsi_init_read_wr() local
420 uint8_t imm = csio_hw_to_scsim(hw)->proto_cmd_len; in csio_scsi_init_write_wr() local
458 #define CSIO_SCSI_DATA_WRSZ(req, oper, sz, imm) \ argument
/linux/arch/x86/include/asm/
H A Dextable_fixup_types.h21 #define EX_DATA_IMM(imm) ((imm) << EX_DATA_IMM_SHIFT) argument

123