EMIT 35 arch/powerpc/net/bpf_jit.h #define PPC_NOP() EMIT(PPC_INST_NOP) EMIT 36 arch/powerpc/net/bpf_jit.h #define PPC_BLR() EMIT(PPC_INST_BLR) EMIT 37 arch/powerpc/net/bpf_jit.h #define PPC_BLRL() EMIT(PPC_INST_BLRL) EMIT 38 arch/powerpc/net/bpf_jit.h #define PPC_MTLR(r) EMIT(PPC_INST_MTLR | ___PPC_RT(r)) EMIT 39 arch/powerpc/net/bpf_jit.h #define PPC_BCTR() EMIT(PPC_INST_BCTR) EMIT 40 arch/powerpc/net/bpf_jit.h #define PPC_MTCTR(r) EMIT(PPC_INST_MTCTR | ___PPC_RT(r)) EMIT 41 arch/powerpc/net/bpf_jit.h #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) | \ EMIT 45 arch/powerpc/net/bpf_jit.h #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \ EMIT 48 arch/powerpc/net/bpf_jit.h #define PPC_STD(r, base, i) EMIT(PPC_INST_STD | ___PPC_RS(r) | \ EMIT 50 arch/powerpc/net/bpf_jit.h #define PPC_STDX(r, base, b) EMIT(PPC_INST_STDX | ___PPC_RS(r) | \ EMIT 52 arch/powerpc/net/bpf_jit.h #define PPC_STDU(r, base, i) EMIT(PPC_INST_STDU | ___PPC_RS(r) | \ EMIT 54 arch/powerpc/net/bpf_jit.h #define PPC_STW(r, base, i) EMIT(PPC_INST_STW | ___PPC_RS(r) | \ EMIT 56 arch/powerpc/net/bpf_jit.h #define PPC_STWU(r, base, i) EMIT(PPC_INST_STWU | ___PPC_RS(r) | \ EMIT 58 arch/powerpc/net/bpf_jit.h #define PPC_STH(r, base, i) EMIT(PPC_INST_STH | ___PPC_RS(r) | \ EMIT 60 arch/powerpc/net/bpf_jit.h #define PPC_STB(r, base, i) EMIT(PPC_INST_STB | ___PPC_RS(r) | \ EMIT 63 arch/powerpc/net/bpf_jit.h #define PPC_LBZ(r, base, i) EMIT(PPC_INST_LBZ | ___PPC_RT(r) | \ EMIT 65 arch/powerpc/net/bpf_jit.h #define PPC_LD(r, base, i) EMIT(PPC_INST_LD | ___PPC_RT(r) | \ EMIT 67 arch/powerpc/net/bpf_jit.h #define PPC_LDX(r, base, b) EMIT(PPC_INST_LDX | ___PPC_RT(r) | \ EMIT 69 arch/powerpc/net/bpf_jit.h #define PPC_LWZ(r, base, i) EMIT(PPC_INST_LWZ | ___PPC_RT(r) | \ EMIT 71 arch/powerpc/net/bpf_jit.h #define PPC_LHZ(r, base, i) EMIT(PPC_INST_LHZ | ___PPC_RT(r) | \ EMIT 73 arch/powerpc/net/bpf_jit.h #define PPC_LHBRX(r, base, b) EMIT(PPC_INST_LHBRX | ___PPC_RT(r) | \ EMIT 75 arch/powerpc/net/bpf_jit.h #define PPC_LDBRX(r, base, b) EMIT(PPC_INST_LDBRX | ___PPC_RT(r) | \ EMIT 78 arch/powerpc/net/bpf_jit.h #define PPC_BPF_LDARX(t, a, b, eh) EMIT(PPC_INST_LDARX | ___PPC_RT(t) | \ EMIT 81 arch/powerpc/net/bpf_jit.h #define PPC_BPF_LWARX(t, a, b, eh) EMIT(PPC_INST_LWARX | ___PPC_RT(t) | \ EMIT 84 arch/powerpc/net/bpf_jit.h #define PPC_BPF_STWCX(s, a, b) EMIT(PPC_INST_STWCX | ___PPC_RS(s) | \ EMIT 86 arch/powerpc/net/bpf_jit.h #define PPC_BPF_STDCX(s, a, b) EMIT(PPC_INST_STDCX | ___PPC_RS(s) | \ EMIT 88 arch/powerpc/net/bpf_jit.h #define PPC_CMPWI(a, i) EMIT(PPC_INST_CMPWI | ___PPC_RA(a) | IMM_L(i)) EMIT 89 arch/powerpc/net/bpf_jit.h #define PPC_CMPDI(a, i) EMIT(PPC_INST_CMPDI | ___PPC_RA(a) | IMM_L(i)) EMIT 90 arch/powerpc/net/bpf_jit.h #define PPC_CMPW(a, b) EMIT(PPC_INST_CMPW | ___PPC_RA(a) | \ EMIT 92 arch/powerpc/net/bpf_jit.h #define PPC_CMPD(a, b) EMIT(PPC_INST_CMPD | ___PPC_RA(a) | \ EMIT 94 arch/powerpc/net/bpf_jit.h #define PPC_CMPLWI(a, i) EMIT(PPC_INST_CMPLWI | ___PPC_RA(a) | IMM_L(i)) EMIT 95 arch/powerpc/net/bpf_jit.h #define PPC_CMPLDI(a, i) EMIT(PPC_INST_CMPLDI | ___PPC_RA(a) | IMM_L(i)) EMIT 96 arch/powerpc/net/bpf_jit.h #define PPC_CMPLW(a, b) EMIT(PPC_INST_CMPLW | ___PPC_RA(a) | \ EMIT 98 arch/powerpc/net/bpf_jit.h #define PPC_CMPLD(a, b) EMIT(PPC_INST_CMPLD | ___PPC_RA(a) | \ EMIT 101 arch/powerpc/net/bpf_jit.h #define PPC_SUB(d, a, b) EMIT(PPC_INST_SUB | ___PPC_RT(d) | \ EMIT 103 arch/powerpc/net/bpf_jit.h #define PPC_ADD(d, a, b) EMIT(PPC_INST_ADD | ___PPC_RT(d) | \ EMIT 105 arch/powerpc/net/bpf_jit.h #define PPC_MULD(d, a, b) EMIT(PPC_INST_MULLD | ___PPC_RT(d) | \ EMIT 107 arch/powerpc/net/bpf_jit.h #define PPC_MULW(d, a, b) EMIT(PPC_INST_MULLW | ___PPC_RT(d) | \ EMIT 109 arch/powerpc/net/bpf_jit.h #define PPC_MULHWU(d, a, b) EMIT(PPC_INST_MULHWU | ___PPC_RT(d) | \ EMIT 111 arch/powerpc/net/bpf_jit.h #define PPC_MULI(d, a, i) EMIT(PPC_INST_MULLI | ___PPC_RT(d) | \ EMIT 113 arch/powerpc/net/bpf_jit.h #define PPC_DIVWU(d, a, b) EMIT(PPC_INST_DIVWU | ___PPC_RT(d) | \ EMIT 115 arch/powerpc/net/bpf_jit.h #define PPC_DIVDU(d, a, b) EMIT(PPC_INST_DIVDU | ___PPC_RT(d) | \ EMIT 117 arch/powerpc/net/bpf_jit.h #define PPC_AND(d, a, b) EMIT(PPC_INST_AND | ___PPC_RA(d) | \ EMIT 119 arch/powerpc/net/bpf_jit.h #define PPC_ANDI(d, a, i) EMIT(PPC_INST_ANDI | ___PPC_RA(d) | \ EMIT 121 arch/powerpc/net/bpf_jit.h #define PPC_AND_DOT(d, a, b) EMIT(PPC_INST_ANDDOT | ___PPC_RA(d) | \ EMIT 123 arch/powerpc/net/bpf_jit.h #define PPC_OR(d, a, b) EMIT(PPC_INST_OR | ___PPC_RA(d) | \ EMIT 126 arch/powerpc/net/bpf_jit.h #define PPC_ORI(d, a, i) EMIT(PPC_INST_ORI | ___PPC_RA(d) | \ EMIT 128 arch/powerpc/net/bpf_jit.h #define PPC_ORIS(d, a, i) EMIT(PPC_INST_ORIS | ___PPC_RA(d) | \ EMIT 130 arch/powerpc/net/bpf_jit.h #define PPC_XOR(d, a, b) EMIT(PPC_INST_XOR | ___PPC_RA(d) | \ EMIT 132 arch/powerpc/net/bpf_jit.h #define PPC_XORI(d, a, i) EMIT(PPC_INST_XORI | ___PPC_RA(d) | \ EMIT 134 arch/powerpc/net/bpf_jit.h #define PPC_XORIS(d, a, i) EMIT(PPC_INST_XORIS | ___PPC_RA(d) | \ EMIT 136 arch/powerpc/net/bpf_jit.h #define PPC_EXTSW(d, a) EMIT(PPC_INST_EXTSW | ___PPC_RA(d) | \ EMIT 138 arch/powerpc/net/bpf_jit.h #define PPC_SLW(d, a, s) EMIT(PPC_INST_SLW | ___PPC_RA(d) | \ EMIT 140 arch/powerpc/net/bpf_jit.h #define PPC_SLD(d, a, s) EMIT(PPC_INST_SLD | ___PPC_RA(d) | \ EMIT 142 arch/powerpc/net/bpf_jit.h #define PPC_SRW(d, a, s) EMIT(PPC_INST_SRW | ___PPC_RA(d) | \ EMIT 144 arch/powerpc/net/bpf_jit.h #define PPC_SRAW(d, a, s) EMIT(PPC_INST_SRAW | ___PPC_RA(d) | \ EMIT 146 arch/powerpc/net/bpf_jit.h #define PPC_SRAWI(d, a, i) EMIT(PPC_INST_SRAWI | ___PPC_RA(d) | \ EMIT 148 arch/powerpc/net/bpf_jit.h #define PPC_SRD(d, a, s) EMIT(PPC_INST_SRD | ___PPC_RA(d) | \ EMIT 150 arch/powerpc/net/bpf_jit.h #define PPC_SRAD(d, a, s) EMIT(PPC_INST_SRAD | ___PPC_RA(d) | \ EMIT 152 arch/powerpc/net/bpf_jit.h #define PPC_SRADI(d, a, i) EMIT(PPC_INST_SRADI | ___PPC_RA(d) | \ EMIT 154 arch/powerpc/net/bpf_jit.h #define PPC_RLWINM(d, a, i, mb, me) EMIT(PPC_INST_RLWINM | ___PPC_RA(d) | \ EMIT 157 arch/powerpc/net/bpf_jit.h #define PPC_RLWINM_DOT(d, a, i, mb, me) EMIT(PPC_INST_RLWINM_DOT | \ EMIT 161 arch/powerpc/net/bpf_jit.h #define PPC_RLWIMI(d, a, i, mb, me) EMIT(PPC_INST_RLWIMI | ___PPC_RA(d) | \ EMIT 164 arch/powerpc/net/bpf_jit.h #define PPC_RLDICL(d, a, i, mb) EMIT(PPC_INST_RLDICL | ___PPC_RA(d) | \ EMIT 167 arch/powerpc/net/bpf_jit.h #define PPC_RLDICR(d, a, i, me) EMIT(PPC_INST_RLDICR | ___PPC_RA(d) | \ EMIT 180 arch/powerpc/net/bpf_jit.h #define PPC_NEG(d, a) EMIT(PPC_INST_NEG | ___PPC_RT(d) | ___PPC_RA(a)) EMIT 183 arch/powerpc/net/bpf_jit.h #define PPC_JMP(dest) EMIT(PPC_INST_BRANCH | \ EMIT 186 arch/powerpc/net/bpf_jit.h #define PPC_BCC_SHORT(cond, dest) EMIT(PPC_INST_BRANCH_COND | \ EMIT 34 arch/powerpc/net/bpf_jit_comp.c EMIT(PPC_INST_MFLR | __PPC_RT(R0)); EMIT 114 arch/powerpc/net/bpf_jit_comp64.c EMIT(PPC_INST_MFLR | __PPC_RT(R0)); EMIT 32 arch/x86/net/bpf_jit_comp.c #define EMIT1(b1) EMIT(b1, 1) EMIT 33 arch/x86/net/bpf_jit_comp.c #define EMIT2(b1, b2) EMIT((b1) + ((b2) << 8), 2) EMIT 34 arch/x86/net/bpf_jit_comp.c #define EMIT3(b1, b2, b3) EMIT((b1) + ((b2) << 8) + ((b3) << 16), 3) EMIT 35 arch/x86/net/bpf_jit_comp.c #define EMIT4(b1, b2, b3, b4) EMIT((b1) + ((b2) << 8) + ((b3) << 16) + ((b4) << 24), 4) EMIT 38 arch/x86/net/bpf_jit_comp.c do { EMIT1(b1); EMIT(off, 4); } while (0) EMIT 40 arch/x86/net/bpf_jit_comp.c do { EMIT2(b1, b2); EMIT(off, 4); } while (0) EMIT 42 arch/x86/net/bpf_jit_comp.c do { EMIT3(b1, b2, b3); EMIT(off, 4); } while (0) EMIT 44 arch/x86/net/bpf_jit_comp.c do { EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0) EMIT 368 arch/x86/net/bpf_jit_comp.c EMIT(imm32_lo, 4); EMIT 369 arch/x86/net/bpf_jit_comp.c EMIT(imm32_hi, 4); EMIT 758 arch/x86/net/bpf_jit_comp.c EMIT(imm32, bpf_size_to_x86_bytes(BPF_SIZE(insn->code))); EMIT 66 arch/x86/net/bpf_jit_comp32.c #define EMIT1(b1) EMIT(b1, 1) EMIT 67 arch/x86/net/bpf_jit_comp32.c #define EMIT2(b1, b2) EMIT((b1) + ((b2) << 8), 2) EMIT 68 arch/x86/net/bpf_jit_comp32.c #define EMIT3(b1, b2, b3) EMIT((b1) + ((b2) << 8) + ((b3) << 16), 3) EMIT 70 arch/x86/net/bpf_jit_comp32.c EMIT((b1) + ((b2) << 8) + ((b3) << 16) + ((b4) << 24), 4) EMIT 73 arch/x86/net/bpf_jit_comp32.c do { EMIT1(b1); EMIT(off, 4); } while (0) EMIT 75 arch/x86/net/bpf_jit_comp32.c do { EMIT2(b1, b2); EMIT(off, 4); } while (0) EMIT 77 arch/x86/net/bpf_jit_comp32.c do { EMIT3(b1, b2, b3); EMIT(off, 4); } while (0) EMIT 79 arch/x86/net/bpf_jit_comp32.c do { EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0) EMIT 1723 arch/x86/net/bpf_jit_comp32.c EMIT(0xC6, 1); break; EMIT 1728 arch/x86/net/bpf_jit_comp32.c EMIT(0xC7, 1); break; EMIT 1736 arch/x86/net/bpf_jit_comp32.c EMIT(imm32, bpf_size_to_x86_bytes(BPF_SIZE(code))); EMIT 1744 arch/x86/net/bpf_jit_comp32.c EMIT(hi, 4); EMIT 1771 arch/x86/net/bpf_jit_comp32.c EMIT(0x88, 1); break; EMIT 1776 arch/x86/net/bpf_jit_comp32.c EMIT(0x89, 1); break; EMIT 1804 arch/x86/net/bpf_jit_comp32.c EMIT(insn->off + 4, 4); EMIT 1829 arch/x86/net/bpf_jit_comp32.c EMIT(0x8B, 1); break; EMIT 1855 arch/x86/net/bpf_jit_comp32.c EMIT(0x0, 4);