Lines Matching refs:imm
180 #define EMIT4_IMM(op, b1, imm) \ argument
182 unsigned int __imm = (imm) & 0xffff; \
240 #define EMIT6_PCREL_RIEC(op1, op2, b1, imm, mask, target) \ argument
244 (rel & 0xffff), (op2) | ((imm) & 0xff) << 8); \
246 BUILD_BUG_ON(((unsigned long) (imm)) > 0xff); \
275 #define _EMIT6_IMM(op, imm) \ argument
277 unsigned int __imm = (imm); \
281 #define EMIT6_IMM(op, b1, imm) \ argument
283 _EMIT6_IMM((op) | reg_high(b1) << 16, imm); \
701 s32 imm = insn->imm; in bpf_jit_insn() local
728 EMIT6_IMM(0xc00f0000, dst_reg, imm); in bpf_jit_insn()
734 EMIT6_IMM(0xc0010000, dst_reg, imm); in bpf_jit_insn()
744 imm64 = (u64)(u32) insn[0].imm | ((u64)(u32) insn[1].imm) << 32; in bpf_jit_insn()
763 if (imm != 0) { in bpf_jit_insn()
765 EMIT6_IMM(0xc20b0000, dst_reg, imm); in bpf_jit_insn()
770 if (!imm) in bpf_jit_insn()
773 EMIT6_IMM(0xc2080000, dst_reg, imm); in bpf_jit_insn()
788 if (imm != 0) { in bpf_jit_insn()
790 EMIT6_IMM(0xc20b0000, dst_reg, -imm); in bpf_jit_insn()
795 if (!imm) in bpf_jit_insn()
797 if (imm == -0x80000000) { in bpf_jit_insn()
802 EMIT6_IMM(0xc2080000, dst_reg, -imm); in bpf_jit_insn()
818 if (imm != 1) { in bpf_jit_insn()
820 EMIT6_IMM(0xc2010000, dst_reg, imm); in bpf_jit_insn()
825 if (imm == 1) in bpf_jit_insn()
828 EMIT6_IMM(0xc2000000, dst_reg, imm); in bpf_jit_insn()
870 if (imm == 1) { in bpf_jit_insn()
885 EMIT_CONST_U32(imm)); in bpf_jit_insn()
889 _EMIT_CONST_U32(imm)); in bpf_jit_insn()
905 if (imm == 1) { in bpf_jit_insn()
918 EMIT_CONST_U64(imm)); in bpf_jit_insn()
922 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
945 EMIT6_IMM(0xc00b0000, dst_reg, imm); in bpf_jit_insn()
953 EMIT_CONST_U64(imm)); in bpf_jit_insn()
957 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
977 EMIT6_IMM(0xc00d0000, dst_reg, imm); in bpf_jit_insn()
985 EMIT_CONST_U64(imm)); in bpf_jit_insn()
989 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
1008 if (imm != 0) { in bpf_jit_insn()
1010 EMIT6_IMM(0xc0070000, dst_reg, imm); in bpf_jit_insn()
1019 EMIT_CONST_U64(imm)); in bpf_jit_insn()
1023 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
1042 if (imm != 0) { in bpf_jit_insn()
1044 EMIT4_DISP(0x89000000, dst_reg, REG_0, imm); in bpf_jit_insn()
1049 if (imm == 0) in bpf_jit_insn()
1052 EMIT6_DISP_LH(0xeb000000, 0x000d, dst_reg, dst_reg, REG_0, imm); in bpf_jit_insn()
1067 if (imm != 0) { in bpf_jit_insn()
1069 EMIT4_DISP(0x88000000, dst_reg, REG_0, imm); in bpf_jit_insn()
1074 if (imm == 0) in bpf_jit_insn()
1077 EMIT6_DISP_LH(0xeb000000, 0x000c, dst_reg, dst_reg, REG_0, imm); in bpf_jit_insn()
1092 if (imm != 0) { in bpf_jit_insn()
1094 EMIT4_DISP(0x8a000000, dst_reg, REG_0, imm); in bpf_jit_insn()
1099 if (imm == 0) in bpf_jit_insn()
1102 EMIT6_DISP_LH(0xeb000000, 0x000a, dst_reg, dst_reg, REG_0, imm); in bpf_jit_insn()
1121 switch (imm) { in bpf_jit_insn()
1138 switch (imm) { in bpf_jit_insn()
1192 EMIT4_IMM(0xa7080000, REG_W0, (u8) imm); in bpf_jit_insn()
1199 EMIT4_IMM(0xa7080000, REG_W0, (u16) imm); in bpf_jit_insn()
1206 EMIT6_IMM(0xc00f0000, REG_W0, (u32) imm); in bpf_jit_insn()
1213 EMIT6_IMM(0xc0010000, REG_W0, imm); in bpf_jit_insn()
1226 switch (insn->imm) { in bpf_jit_insn()
1230 (insn->imm & BPF_FETCH) ? src_reg : REG_W0, \ in bpf_jit_insn()
1232 if (is32 && (insn->imm & BPF_FETCH)) \ in bpf_jit_insn()
1277 pr_err("Unknown atomic operation %02x\n", insn->imm); in bpf_jit_insn()
1510 EMIT6_IMM(0xc00f0000, REG_W1, imm); in bpf_jit_insn()
1515 EMIT6_IMM(0xc0010000, REG_W1, imm); in bpf_jit_insn()
1575 dst_reg, imm); in bpf_jit_insn()
1590 EMIT6_IMM(0xc0010000, src_reg, imm); in bpf_jit_insn()