Searched refs:EMIT (Results 1 – 3 of 3) sorted by relevance
/arch/powerpc/net/ |
D | bpf_jit.h | 73 #define EMIT(instr) PLANT_INSTR(image, ctx->idx, instr) macro 75 #define PPC_NOP() EMIT(PPC_INST_NOP) 76 #define PPC_BLR() EMIT(PPC_INST_BLR) 77 #define PPC_BLRL() EMIT(PPC_INST_BLRL) 78 #define PPC_MTLR(r) EMIT(PPC_INST_MTLR | __PPC_RT(r)) 79 #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | __PPC_RT(d) | \ 83 #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \ 86 #define PPC_STD(r, base, i) EMIT(PPC_INST_STD | __PPC_RS(r) | \ 89 #define PPC_LD(r, base, i) EMIT(PPC_INST_LD | __PPC_RT(r) | \ 91 #define PPC_LWZ(r, base, i) EMIT(PPC_INST_LWZ | __PPC_RT(r) | \ [all …]
|
D | bpf_jit_comp.c | 42 EMIT(PPC_INST_MFLR | __PPC_RT(0)); in bpf_jit_build_prologue() 59 EMIT(PPC_INST_STDU | __PPC_RS(1) | __PPC_RA(1) | in bpf_jit_build_prologue()
|
/arch/x86/net/ |
D | bpf_jit_comp.c | 51 #define EMIT(bytes, len) do { prog = emit_code(prog, bytes, len); } while (0) macro 53 #define EMIT1(b1) EMIT(b1, 1) 54 #define EMIT2(b1, b2) EMIT((b1) + ((b2) << 8), 2) 55 #define EMIT3(b1, b2, b3) EMIT((b1) + ((b2) << 8) + ((b3) << 16), 3) 56 #define EMIT4(b1, b2, b3, b4) EMIT((b1) + ((b2) << 8) + ((b3) << 16) + ((b4) << 24), 4) 57 #define EMIT1_off32(b1, off) do { EMIT1(b1); EMIT(off, 4);} while (0) 98 EMIT(offset, 4); /* jxx .+off32 */ \ 186 EMIT(offsetof(struct sk_buff, len), 4); in bpf_jit_compile() 193 EMIT(offsetof(struct sk_buff, data_len), 4); in bpf_jit_compile() 202 EMIT(offsetof(struct sk_buff, data), 4); in bpf_jit_compile() [all …]
|