Searched refs:emit (Results 1 - 25 of 65) sorted by relevance

123

/linux-master/arch/riscv/net/
H A Dbpf_jit_comp32.c117 emit(rv_lui(rd, upper), ctx);
118 emit(rv_addi(rd, rd, lower), ctx);
120 emit(rv_addi(rd, RV_REG_ZERO, lower), ctx);
131 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx);
133 emit(rv_addi(hi(rd), RV_REG_ZERO, -1), ctx);
150 emit(rv_addi(RV_REG_A0, lo(r0), 0), ctx);
151 emit(rv_addi(RV_REG_A1, hi(r0), 0), ctx);
155 emit(rv_lw(RV_REG_RA, stack_adjust - 4, RV_REG_SP), ctx);
156 emit(rv_lw(RV_REG_FP, stack_adjust - 8, RV_REG_SP), ctx);
157 emit(rv_l
[all...]
H A Dbpf_jit_comp64.c175 emit(rv_auipc(rd, upper), ctx);
176 emit(rv_addi(rd, rd, lower), ctx);
273 emit(rv_beq(rd, rs, rvoff >> 1), ctx);
276 emit(rv_bltu(rs, rd, rvoff >> 1), ctx);
279 emit(rv_bltu(rd, rs, rvoff >> 1), ctx);
282 emit(rv_bgeu(rd, rs, rvoff >> 1), ctx);
285 emit(rv_bgeu(rs, rd, rvoff >> 1), ctx);
288 emit(rv_bne(rd, rs, rvoff >> 1), ctx);
291 emit(rv_blt(rs, rd, rvoff >> 1), ctx);
294 emit(rv_bl
[all...]
/linux-master/arch/mips/net/
H A Dbpf_jit_comp.c135 emit(ctx, sw, reg, depth, MIPS_R_SP);
137 emit(ctx, sd, reg, depth, MIPS_R_SP);
158 emit(ctx, lw, reg, depth, MIPS_R_SP);
160 emit(ctx, ld, reg, depth, MIPS_R_SP);
195 emit(ctx, addiu, dst, MIPS_R_ZERO, imm);
197 emit(ctx, lui, dst, (s16)((u32)imm >> 16));
198 emit(ctx, ori, dst, dst, (u16)(imm & 0xffff));
206 emit(ctx, ori, dst, src, 0);
303 emit(ctx, subu, dst, MIPS_R_ZERO, dst);
307 emit(ct
[all...]
H A Dbpf_jit_comp32.c178 emit(ctx, addiu, hi(dst), MIPS_R_ZERO, -1);
180 emit(ctx, move, hi(dst), MIPS_R_ZERO);
188 emit(ctx, move, hi(dst), MIPS_R_ZERO);
197 emit(ctx, nop);
228 emit(ctx, addu, lo(dst), lo(dst), src);
229 emit(ctx, sltu, MIPS_R_T9, lo(dst), src);
230 emit(ctx, addu, hi(dst), hi(dst), MIPS_R_T9);
232 emit(ctx, addiu, hi(dst), hi(dst), -1);
236 emit(ctx, sltu, MIPS_R_T9, lo(dst), src);
237 emit(ct
[all...]
H A Dbpf_jit_comp64.c93 * operands or the result is unpredictable. We emit explicit sign-extensions
100 emit(ctx, sll, dst, src, 0);
108 emit(ctx, dinsu, dst, MIPS_R_ZERO, 32, 32);
110 emit(ctx, and, dst, dst, bpf2mips64[JIT_REG_ZX]);
127 emit(ctx, daddiu, dst, MIPS_R_ZERO, (s16)imm64);
130 emit(ctx, lui, dst, (s16)(imm64 >> 16));
131 emit(ctx, ori, dst, dst, (u16)imm64 & 0xffff);
145 emit(ctx, dsll_safe, dst, dst, shift);
146 emit(ctx, ori, dst, acc, half);
152 emit(ct
[all...]
/linux-master/arch/parisc/net/
H A Dbpf_jit_comp64.c76 emit(hppa_copy(rs, rd), ctx);
89 emit(hppa_t10_insn(0x3c, target, src, 0, c, pos & 0x1f, len & 0x1f), ctx);
106 emit(hppa_t10_insn(0x36, src, target, 0, c, pos & 0x1f, len & 0x1f), ctx);
116 emit(hppa_t10_insn(0x34, src, target, 0, c, pos, len), ctx);
141 emit(hppa_ldi(imm, rd), ctx);
145 emit(hppa_ldo(lower, HPPA_REG_ZERO, rd), ctx);
148 emit(hppa_ldil(imm, rd), ctx);
151 emit(hppa_ldo(lower, rd, rd), ctx);
189 emit(hppa64_bl_long(paoff - HPPA_BRANCH_DISPLACEMENT), ctx);
191 emit(hppa_no
[all...]
H A Dbpf_jit_comp32.c126 emit(hppa_copy(rs, rd), ctx);
135 emit(hppa_copy(HPPA_REG_ZERO, r3), ctx);
137 emit(hppa_xor(r1, r2, r3), ctx);
147 emit(hppa_ldi(imm, rd), ctx);
150 emit(hppa_ldil(imm, rd), ctx);
153 emit(hppa_ldo(lower, rd, rd), ctx);
167 emit(hppa_ldi(-1, hi(rd)), ctx);
189 emit(hppa_ldo(1 * HPPA_INSN_SIZE, HPPA_REG_T0, HPPA_REG_T0), ctx);
190 emit(hppa_bv(HPPA_REG_ZERO, HPPA_REG_T0, EXEC_NEXT_INSTR), ctx);
192 emit(hppa_cop
[all...]
/linux-master/arch/arm64/net/
H A Dbpf_jit_comp.c93 static inline void emit(const u32 insn, struct jit_ctx *ctx) function
109 emit(A64_MOVN(is64, reg, (u16)~lo, 0), ctx);
111 emit(A64_MOVN(is64, reg, (u16)~hi, 16), ctx);
113 emit(A64_MOVK(is64, reg, lo, 0), ctx);
116 emit(A64_MOVZ(is64, reg, lo, 0), ctx);
118 emit(A64_MOVK(is64, reg, hi, 16), ctx);
144 emit(A64_MOVN(1, reg, (rev_tmp >> shift) & 0xffff, shift), ctx);
146 emit(A64_MOVZ(1, reg, (nrm_tmp >> shift) & 0xffff, shift), ctx);
150 emit(A64_MOVK(1, reg, (nrm_tmp >> shift) & 0xffff, shift), ctx);
158 emit(ins
[all...]
/linux-master/tools/lib/bpf/
H A Dgen_loader.c96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) function
106 emit(gen, insn1);
107 emit(gen, insn2);
121 emit(gen, BPF_MOV64_REG(BPF_REG_6, BPF_REG_1));
124 emit(gen, BPF_MOV64_REG(BPF_REG_1, BPF_REG_10));
125 emit(gen, BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -stack_sz));
126 emit(gen, BPF_MOV64_IMM(BPF_REG_2, stack_sz));
127 emit(gen, BPF_MOV64_IMM(BPF_REG_3, 0));
128 emit(gen, BPF_EMIT_CALL(BPF_FUNC_probe_read_kernel));
133 emit(ge
[all...]
/linux-master/arch/arm/net/
H A Dbpf_jit_32.c285 static inline void emit(u32 inst, struct jit_ctx *ctx) function
472 emit(ARM_LDR_I(rd, ARM_PC, imm_offset(val, ctx)), ctx);
474 emit(ARM_MOVW(rd, val & 0xffff), ctx);
476 emit(ARM_MOVT(rd, val >> 16), ctx);
485 emit(ARM_MOV_I(rd, imm12), ctx);
493 emit(ARM_BX(tgt_reg), ctx);
495 emit(ARM_MOV_R(ARM_PC, tgt_reg), ctx);
501 emit(ARM_MOV_R(ARM_LR, ARM_PC), ctx);
504 emit(ARM_BLX_R(tgt_reg), ctx);
529 emit(sig
[all...]
/linux-master/tools/perf/arch/x86/entry/syscalls/
H A Dsyscalltbl.sh14 emit() { function
32 emit "$nr" "$name"
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_ring_types.h43 u32 emit; /* updated during request construction */ member in struct:intel_ring
H A Dintel_ring.c23 space = __intel_ring_space(ring->head, ring->emit, ring->size);
73 intel_ring_reset(ring, ring->emit);
90 ring->emit = tail;
210 ring->emit, ring->size))
233 const unsigned int remain_usable = ring->effective_size - ring->emit;
246 const int remain_actual = ring->size - ring->emit;
291 GEM_BUG_ON(ring->emit + need_wrap > ring->size);
295 memset64(ring->vaddr + ring->emit, 0, need_wrap / sizeof(u64));
297 ring->emit = 0;
300 GEM_BUG_ON(ring->emit > rin
[all...]
H A Dintel_ring.h51 GEM_BUG_ON((rq->ring->vaddr + rq->ring->emit) != cs);
52 GEM_BUG_ON(!IS_ALIGNED(rq->ring->emit, 8)); /* RING_TAIL qword align */
/linux-master/arch/sparc/net/
H A Dbpf_jit_comp_64.c236 static void emit(const u32 insn, struct jit_ctx *ctx) function
258 emit(SETHI(0, G0), ctx);
263 emit(OR | RS1(G0) | RS2(from) | RD(to), ctx);
269 emit(SETHI(K, reg), ctx);
270 emit(OR_LO(K, reg), ctx);
277 emit(SETHI(K, reg), ctx);
278 emit(OR_LO(K, reg), ctx);
283 emit(SETHI(hbits, reg), ctx);
284 emit(XOR | IMMED | RS1(reg) | S13(lbits) | RD(reg), ctx);
290 emit(opcod
[all...]
/linux-master/scripts/
H A Dsyscallhdr.sh19 echo >&2 "usage: $0 [--abis ABIS] [--emit-nr] [--offset OFFSET] [--prefix PREFIX] INFILE OUTFILE" >&2
26 echo >&2 " --emit-nr Emit the macro of the number of syscalls (__NR_syscalls)"
44 --emit-nr)
/linux-master/scripts/dtc/
H A Dflattree.c236 static void flatten_tree(struct node *tree, struct emitter *emit, argument
247 emit->beginnode(etarget, tree->labels);
250 emit->string(etarget, tree->fullpath, 0);
252 emit->string(etarget, tree->name, 0);
254 emit->align(etarget, sizeof(cell_t));
264 emit->property(etarget, prop->labels);
265 emit->cell(etarget, prop->val.len);
266 emit->cell(etarget, nameoff);
269 emit->align(etarget, 8);
271 emit
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dreg_bounds.c829 #define emit(insn) ({ \ macro
849 emit(BPF_JMP_A(2));
856 emit(BPF_MOV64_IMM(BPF_REG_0, 0));
857 emit(BPF_EXIT_INSN());
865 emit(BPF_EMIT_CALL(BPF_FUNC_get_current_pid_tgid));
867 emit(BPF_MOV32_REG(BPF_REG_6, BPF_REG_0));
869 emit(BPF_MOV64_REG(BPF_REG_6, BPF_REG_0));
870 emit(BPF_EMIT_CALL(BPF_FUNC_get_current_pid_tgid));
872 emit(BPF_MOV32_REG(BPF_REG_7, BPF_REG_0));
874 emit(BPF_MOV64_RE
990 #undef emit macro
[all...]
/linux-master/arch/parisc/kernel/syscalls/
H A DMakefile12 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis common,$* $< $@
/linux-master/arch/microblaze/kernel/syscalls/
H A DMakefile12 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr $< $@
/linux-master/arch/m68k/kernel/syscalls/
H A DMakefile12 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr $< $@
/linux-master/arch/alpha/kernel/syscalls/
H A DMakefile12 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr $< $@
/linux-master/arch/xtensa/kernel/syscalls/
H A DMakefile12 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr $< $@
/linux-master/arch/sparc/kernel/syscalls/
H A DMakefile12 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis common,$* $< $@
/linux-master/arch/sh/kernel/syscalls/
H A DMakefile12 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr $< $@

Completed in 410 milliseconds

123