Home
last modified time | relevance | path

Searched refs:EMIT (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/arch/powerpc/net/
Dbpf_jit.h37 #define EMIT(instr) PLANT_INSTR(image, ctx->idx, instr) macro
39 #define PPC_NOP() EMIT(PPC_INST_NOP)
40 #define PPC_BLR() EMIT(PPC_INST_BLR)
41 #define PPC_BLRL() EMIT(PPC_INST_BLRL)
42 #define PPC_MTLR(r) EMIT(PPC_INST_MTLR | ___PPC_RT(r))
43 #define PPC_BCTR() EMIT(PPC_INST_BCTR)
44 #define PPC_MTCTR(r) EMIT(PPC_INST_MTCTR | ___PPC_RT(r))
45 #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) | \
49 #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \
52 #define PPC_STD(r, base, i) EMIT(PPC_INST_STD | ___PPC_RS(r) | \
[all …]
Dbpf_jit_comp.c38 EMIT(PPC_INST_MFLR | __PPC_RT(R0)); in bpf_jit_build_prologue()
Dbpf_jit_comp64.c118 EMIT(PPC_INST_MFLR | __PPC_RT(R0)); in bpf_jit_build_prologue()
/Linux-v4.19/arch/x86/net/
Dbpf_jit_comp.c33 #define EMIT(bytes, len) \ macro
36 #define EMIT1(b1) EMIT(b1, 1)
37 #define EMIT2(b1, b2) EMIT((b1) + ((b2) << 8), 2)
38 #define EMIT3(b1, b2, b3) EMIT((b1) + ((b2) << 8) + ((b3) << 16), 3)
39 #define EMIT4(b1, b2, b3, b4) EMIT((b1) + ((b2) << 8) + ((b3) << 16) + ((b4) << 24), 4)
42 do { EMIT1(b1); EMIT(off, 4); } while (0)
44 do { EMIT2(b1, b2); EMIT(off, 4); } while (0)
46 do { EMIT3(b1, b2, b3); EMIT(off, 4); } while (0)
48 do { EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0)
386 EMIT(imm32_lo, 4); in emit_mov_imm64()
[all …]
Dbpf_jit_comp32.c63 #define EMIT(bytes, len) \ macro
66 #define EMIT1(b1) EMIT(b1, 1)
67 #define EMIT2(b1, b2) EMIT((b1) + ((b2) << 8), 2)
68 #define EMIT3(b1, b2, b3) EMIT((b1) + ((b2) << 8) + ((b3) << 16), 3)
70 EMIT((b1) + ((b2) << 8) + ((b3) << 16) + ((b4) << 24), 4)
73 do { EMIT1(b1); EMIT(off, 4); } while (0)
75 do { EMIT2(b1, b2); EMIT(off, 4); } while (0)
77 do { EMIT3(b1, b2, b3); EMIT(off, 4); } while (0)
79 do { EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0)
1863 EMIT(0xC6, 1); break; in do_jit()
[all …]