Lines Matching refs:imm
186 #define EMIT4_IMM(op, b1, imm) \ argument
188 unsigned int __imm = (imm) & 0xffff; \
246 #define EMIT6_PCREL_RIEC(op1, op2, b1, imm, mask, target) \ argument
250 (rel & 0xffff), (op2) | ((imm) & 0xff) << 8); \
252 BUILD_BUG_ON(((unsigned long) (imm)) > 0xff); \
281 #define _EMIT6_IMM(op, imm) \ argument
283 unsigned int __imm = (imm); \
287 #define EMIT6_IMM(op, b1, imm) \ argument
289 _EMIT6_IMM((op) | reg_high(b1) << 16, imm); \
783 s32 imm = insn->imm; in bpf_jit_insn() local
810 EMIT6_IMM(0xc00f0000, dst_reg, imm); in bpf_jit_insn()
816 EMIT6_IMM(0xc0010000, dst_reg, imm); in bpf_jit_insn()
826 imm64 = (u64)(u32) insn[0].imm | ((u64)(u32) insn[1].imm) << 32; in bpf_jit_insn()
845 if (imm != 0) { in bpf_jit_insn()
847 EMIT6_IMM(0xc20b0000, dst_reg, imm); in bpf_jit_insn()
852 if (!imm) in bpf_jit_insn()
855 EMIT6_IMM(0xc2080000, dst_reg, imm); in bpf_jit_insn()
870 if (imm != 0) { in bpf_jit_insn()
872 EMIT6_IMM(0xc20b0000, dst_reg, -imm); in bpf_jit_insn()
877 if (!imm) in bpf_jit_insn()
879 if (imm == -0x80000000) { in bpf_jit_insn()
884 EMIT6_IMM(0xc2080000, dst_reg, -imm); in bpf_jit_insn()
900 if (imm != 1) { in bpf_jit_insn()
902 EMIT6_IMM(0xc2010000, dst_reg, imm); in bpf_jit_insn()
907 if (imm == 1) in bpf_jit_insn()
910 EMIT6_IMM(0xc2000000, dst_reg, imm); in bpf_jit_insn()
952 if (imm == 1) { in bpf_jit_insn()
967 EMIT_CONST_U32(imm)); in bpf_jit_insn()
971 _EMIT_CONST_U32(imm)); in bpf_jit_insn()
987 if (imm == 1) { in bpf_jit_insn()
1000 EMIT_CONST_U64(imm)); in bpf_jit_insn()
1004 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
1027 EMIT6_IMM(0xc00b0000, dst_reg, imm); in bpf_jit_insn()
1035 EMIT_CONST_U64(imm)); in bpf_jit_insn()
1039 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
1059 EMIT6_IMM(0xc00d0000, dst_reg, imm); in bpf_jit_insn()
1067 EMIT_CONST_U64(imm)); in bpf_jit_insn()
1071 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
1090 if (imm != 0) { in bpf_jit_insn()
1092 EMIT6_IMM(0xc0070000, dst_reg, imm); in bpf_jit_insn()
1101 EMIT_CONST_U64(imm)); in bpf_jit_insn()
1105 _EMIT_CONST_U64(imm)); in bpf_jit_insn()
1124 if (imm != 0) { in bpf_jit_insn()
1126 EMIT4_DISP(0x89000000, dst_reg, REG_0, imm); in bpf_jit_insn()
1131 if (imm == 0) in bpf_jit_insn()
1134 EMIT6_DISP_LH(0xeb000000, 0x000d, dst_reg, dst_reg, REG_0, imm); in bpf_jit_insn()
1149 if (imm != 0) { in bpf_jit_insn()
1151 EMIT4_DISP(0x88000000, dst_reg, REG_0, imm); in bpf_jit_insn()
1156 if (imm == 0) in bpf_jit_insn()
1159 EMIT6_DISP_LH(0xeb000000, 0x000c, dst_reg, dst_reg, REG_0, imm); in bpf_jit_insn()
1174 if (imm != 0) { in bpf_jit_insn()
1176 EMIT4_DISP(0x8a000000, dst_reg, REG_0, imm); in bpf_jit_insn()
1181 if (imm == 0) in bpf_jit_insn()
1184 EMIT6_DISP_LH(0xeb000000, 0x000a, dst_reg, dst_reg, REG_0, imm); in bpf_jit_insn()
1203 switch (imm) { in bpf_jit_insn()
1220 switch (imm) { in bpf_jit_insn()
1274 EMIT4_IMM(0xa7080000, REG_W0, (u8) imm); in bpf_jit_insn()
1281 EMIT4_IMM(0xa7080000, REG_W0, (u16) imm); in bpf_jit_insn()
1288 EMIT6_IMM(0xc00f0000, REG_W0, (u32) imm); in bpf_jit_insn()
1295 EMIT6_IMM(0xc0010000, REG_W0, imm); in bpf_jit_insn()
1308 switch (insn->imm) { in bpf_jit_insn()
1312 (insn->imm & BPF_FETCH) ? src_reg : REG_W0, \ in bpf_jit_insn()
1314 if (is32 && (insn->imm & BPF_FETCH)) \ in bpf_jit_insn()
1359 pr_err("Unknown atomic operation %02x\n", insn->imm); in bpf_jit_insn()
1621 EMIT6_IMM(0xc00f0000, REG_W1, imm); in bpf_jit_insn()
1626 EMIT6_IMM(0xc0010000, REG_W1, imm); in bpf_jit_insn()
1686 dst_reg, imm); in bpf_jit_insn()
1701 EMIT6_IMM(0xc0010000, src_reg, imm); in bpf_jit_insn()