Searched refs:EMIT (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/arch/powerpc/net/ |
D | bpf_jit.h | 91 #define EMIT(instr) PLANT_INSTR(image, ctx->idx, instr) macro 93 #define PPC_NOP() EMIT(PPC_INST_NOP) 94 #define PPC_BLR() EMIT(PPC_INST_BLR) 95 #define PPC_BLRL() EMIT(PPC_INST_BLRL) 96 #define PPC_MTLR(r) EMIT(PPC_INST_MTLR | ___PPC_RT(r)) 97 #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) | \ 101 #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \ 104 #define PPC_STD(r, base, i) EMIT(PPC_INST_STD | ___PPC_RS(r) | \ 106 #define PPC_STDU(r, base, i) EMIT(PPC_INST_STDU | ___PPC_RS(r) | \ 108 #define PPC_STW(r, base, i) EMIT(PPC_INST_STW | ___PPC_RS(r) | \ [all …]
|
D | bpf_jit_comp.c | 39 EMIT(PPC_INST_MFLR | __PPC_RT(R0)); in bpf_jit_build_prologue()
|
/linux-4.1.27/arch/x86/net/ |
D | bpf_jit_comp.c | 40 #define EMIT(bytes, len) do { prog = emit_code(prog, bytes, len); } while (0) macro 42 #define EMIT1(b1) EMIT(b1, 1) 43 #define EMIT2(b1, b2) EMIT((b1) + ((b2) << 8), 2) 44 #define EMIT3(b1, b2, b3) EMIT((b1) + ((b2) << 8) + ((b3) << 16), 3) 45 #define EMIT4(b1, b2, b3, b4) EMIT((b1) + ((b2) << 8) + ((b3) << 16) + ((b4) << 24), 4) 47 do {EMIT1(b1); EMIT(off, 4); } while (0) 49 do {EMIT2(b1, b2); EMIT(off, 4); } while (0) 51 do {EMIT3(b1, b2, b3); EMIT(off, 4); } while (0) 53 do {EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0) 383 EMIT(insn[0].imm, 4); in do_jit() [all …]
|