Home
last modified time | relevance | path

Searched refs:emit (Results 1 – 25 of 105) sorted by relevance

12345

/Linux-v6.1/arch/riscv/net/
Dbpf_jit_comp32.c117 emit(rv_lui(rd, upper), ctx); in emit_imm()
118 emit(rv_addi(rd, rd, lower), ctx); in emit_imm()
120 emit(rv_addi(rd, RV_REG_ZERO, lower), ctx); in emit_imm()
131 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_imm32()
133 emit(rv_addi(hi(rd), RV_REG_ZERO, -1), ctx); in emit_imm32()
150 emit(rv_addi(RV_REG_A0, lo(r0), 0), ctx); in __build_epilogue()
151 emit(rv_addi(RV_REG_A1, hi(r0), 0), ctx); in __build_epilogue()
155 emit(rv_lw(RV_REG_RA, stack_adjust - 4, RV_REG_SP), ctx); in __build_epilogue()
156 emit(rv_lw(RV_REG_FP, stack_adjust - 8, RV_REG_SP), ctx); in __build_epilogue()
157 emit(rv_lw(RV_REG_S1, stack_adjust - 12, RV_REG_SP), ctx); in __build_epilogue()
[all …]
Dbpf_jit_comp64.c231 emit(rv_beq(rd, rs, rvoff >> 1), ctx); in emit_bcc()
234 emit(rv_bltu(rs, rd, rvoff >> 1), ctx); in emit_bcc()
237 emit(rv_bltu(rd, rs, rvoff >> 1), ctx); in emit_bcc()
240 emit(rv_bgeu(rd, rs, rvoff >> 1), ctx); in emit_bcc()
243 emit(rv_bgeu(rs, rd, rvoff >> 1), ctx); in emit_bcc()
246 emit(rv_bne(rd, rs, rvoff >> 1), ctx); in emit_bcc()
249 emit(rv_blt(rs, rd, rvoff >> 1), ctx); in emit_bcc()
252 emit(rv_blt(rd, rs, rvoff >> 1), ctx); in emit_bcc()
255 emit(rv_bge(rd, rs, rvoff >> 1), ctx); in emit_bcc()
258 emit(rv_bge(rs, rd, rvoff >> 1), ctx); in emit_bcc()
[all …]
Dbpf_jit.h103 static inline void emit(const u32 insn, struct rv_jit_context *ctx) in emit() function
881 emit(rv_jalr(rd, rs, imm), ctx); in emit_jalr()
889 emit(rv_addi(rd, rs, 0), ctx); in emit_mv()
897 emit(rv_add(rd, rs1, rs2), ctx); in emit_add()
910 emit(rv_addi(rd, rs, imm), ctx); in emit_addi()
918 emit(rv_addi(rd, RV_REG_ZERO, imm), ctx); in emit_li()
926 emit(rv_lui(rd, imm), ctx); in emit_lui()
934 emit(rv_slli(rd, rs, imm), ctx); in emit_slli()
942 emit(rv_andi(rd, rs, imm), ctx); in emit_andi()
950 emit(rv_srli(rd, rs, imm), ctx); in emit_srli()
[all …]
/Linux-v6.1/arch/mips/net/
Dbpf_jit_comp.c135 emit(ctx, sw, reg, depth, MIPS_R_SP); in push_regs()
137 emit(ctx, sd, reg, depth, MIPS_R_SP); in push_regs()
158 emit(ctx, lw, reg, depth, MIPS_R_SP); in pop_regs()
160 emit(ctx, ld, reg, depth, MIPS_R_SP); in pop_regs()
195 emit(ctx, addiu, dst, MIPS_R_ZERO, imm); in emit_mov_i()
197 emit(ctx, lui, dst, (s16)((u32)imm >> 16)); in emit_mov_i()
198 emit(ctx, ori, dst, dst, (u16)(imm & 0xffff)); in emit_mov_i()
206 emit(ctx, ori, dst, src, 0); in emit_mov_r()
299 emit(ctx, subu, dst, MIPS_R_ZERO, dst); in emit_alu_i()
303 emit(ctx, andi, dst, dst, (u16)imm); in emit_alu_i()
[all …]
Dbpf_jit_comp32.c178 emit(ctx, addiu, hi(dst), MIPS_R_ZERO, -1); in emit_mov_se_i64()
180 emit(ctx, move, hi(dst), MIPS_R_ZERO); in emit_mov_se_i64()
188 emit(ctx, move, hi(dst), MIPS_R_ZERO); in emit_zext_ver()
197 emit(ctx, nop); in emit_load_delay()
228 emit(ctx, addu, lo(dst), lo(dst), src); in emit_alu_i64()
229 emit(ctx, sltu, MIPS_R_T9, lo(dst), src); in emit_alu_i64()
230 emit(ctx, addu, hi(dst), hi(dst), MIPS_R_T9); in emit_alu_i64()
232 emit(ctx, addiu, hi(dst), hi(dst), -1); in emit_alu_i64()
236 emit(ctx, sltu, MIPS_R_T9, lo(dst), src); in emit_alu_i64()
237 emit(ctx, subu, lo(dst), lo(dst), src); in emit_alu_i64()
[all …]
Dbpf_jit_comp64.c100 emit(ctx, sll, dst, src, 0); in emit_sext()
108 emit(ctx, dinsu, dst, MIPS_R_ZERO, 32, 32); in emit_zext()
110 emit(ctx, and, dst, dst, bpf2mips64[JIT_REG_ZX]); in emit_zext()
127 emit(ctx, daddiu, dst, MIPS_R_ZERO, (s16)imm64); in emit_mov_i64()
130 emit(ctx, lui, dst, (s16)(imm64 >> 16)); in emit_mov_i64()
131 emit(ctx, ori, dst, dst, (u16)imm64 & 0xffff); in emit_mov_i64()
145 emit(ctx, dsll_safe, dst, dst, shift); in emit_mov_i64()
146 emit(ctx, ori, dst, acc, half); in emit_mov_i64()
152 emit(ctx, dsll_safe, dst, dst, shift); in emit_mov_i64()
163 emit(ctx, ori, dst, dst, (u16)imm); in emit_alu_i64()
[all …]
Dbpf_jit_comp.h98 #define emit(...) __emit(__VA_ARGS__) macro
109 #define LLSC_sync(ctx) emit(ctx, sync, 0)
/Linux-v6.1/arch/arm64/net/
Dbpf_jit_comp.c92 static inline void emit(const u32 insn, struct jit_ctx *ctx) in emit() function
108 emit(A64_MOVN(is64, reg, (u16)~lo, 0), ctx); in emit_a64_mov_i()
110 emit(A64_MOVN(is64, reg, (u16)~hi, 16), ctx); in emit_a64_mov_i()
112 emit(A64_MOVK(is64, reg, lo, 0), ctx); in emit_a64_mov_i()
115 emit(A64_MOVZ(is64, reg, lo, 0), ctx); in emit_a64_mov_i()
117 emit(A64_MOVK(is64, reg, hi, 16), ctx); in emit_a64_mov_i()
143 emit(A64_MOVN(1, reg, (rev_tmp >> shift) & 0xffff, shift), ctx); in emit_a64_mov_i64()
145 emit(A64_MOVZ(1, reg, (nrm_tmp >> shift) & 0xffff, shift), ctx); in emit_a64_mov_i64()
149 emit(A64_MOVK(1, reg, (nrm_tmp >> shift) & 0xffff, shift), ctx); in emit_a64_mov_i64()
157 emit(insn, ctx); in emit_bti()
[all …]
/Linux-v6.1/arch/arm/net/
Dbpf_jit_32.c245 static inline void emit(u32 inst, struct jit_ctx *ctx) in emit() function
429 emit(ARM_LDR_I(rd, ARM_PC, imm_offset(val, ctx)), ctx); in emit_mov_i_no8m()
431 emit(ARM_MOVW(rd, val & 0xffff), ctx); in emit_mov_i_no8m()
433 emit(ARM_MOVT(rd, val >> 16), ctx); in emit_mov_i_no8m()
442 emit(ARM_MOV_I(rd, imm12), ctx); in emit_mov_i()
450 emit(ARM_BX(tgt_reg), ctx); in emit_bx_r()
452 emit(ARM_MOV_R(ARM_PC, tgt_reg), ctx); in emit_bx_r()
458 emit(ARM_MOV_R(ARM_LR, ARM_PC), ctx); in emit_blx_r()
461 emit(ARM_BLX_R(tgt_reg), ctx); in emit_blx_r()
485 emit(ARM_UDIV(rd, rm, rn), ctx); in emit_udivmod()
[all …]
/Linux-v6.1/tools/lib/bpf/
Dgen_loader.c96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit() function
106 emit(gen, insn1); in emit2()
107 emit(gen, insn2); in emit2()
121 emit(gen, BPF_MOV64_REG(BPF_REG_6, BPF_REG_1)); in bpf_gen__init()
124 emit(gen, BPF_MOV64_REG(BPF_REG_1, BPF_REG_10)); in bpf_gen__init()
125 emit(gen, BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -stack_sz)); in bpf_gen__init()
126 emit(gen, BPF_MOV64_IMM(BPF_REG_2, stack_sz)); in bpf_gen__init()
127 emit(gen, BPF_MOV64_IMM(BPF_REG_3, 0)); in bpf_gen__init()
128 emit(gen, BPF_EMIT_CALL(BPF_FUNC_probe_read_kernel)); in bpf_gen__init()
133 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, in bpf_gen__init()
[all …]
/Linux-v6.1/drivers/gpu/drm/i915/gt/
Dintel_ring.c22 space = __intel_ring_space(ring->head, ring->emit, ring->size); in intel_ring_update_space()
72 intel_ring_reset(ring, ring->emit); in intel_ring_pin()
89 ring->emit = tail; in intel_ring_reset()
209 ring->emit, ring->size)) in wait_for_space()
232 const unsigned int remain_usable = ring->effective_size - ring->emit; in intel_ring_begin()
245 const int remain_actual = ring->size - ring->emit; in intel_ring_begin()
290 GEM_BUG_ON(ring->emit + need_wrap > ring->size); in intel_ring_begin()
294 memset64(ring->vaddr + ring->emit, 0, need_wrap / sizeof(u64)); in intel_ring_begin()
296 ring->emit = 0; in intel_ring_begin()
299 GEM_BUG_ON(ring->emit > ring->size - bytes); in intel_ring_begin()
[all …]
Dintel_ring.h51 GEM_BUG_ON((rq->ring->vaddr + rq->ring->emit) != cs); in intel_ring_advance()
52 GEM_BUG_ON(!IS_ALIGNED(rq->ring->emit, 8)); /* RING_TAIL qword align */ in intel_ring_advance()
Dintel_ring_types.h43 u32 emit; /* updated during request construction */ member
/Linux-v6.1/arch/sparc/net/
Dbpf_jit_comp_64.c236 static void emit(const u32 insn, struct jit_ctx *ctx) in emit() function
258 emit(SETHI(0, G0), ctx); in emit_nop()
263 emit(OR | RS1(G0) | RS2(from) | RD(to), ctx); in emit_reg_move()
269 emit(SETHI(K, reg), ctx); in emit_set_const()
270 emit(OR_LO(K, reg), ctx); in emit_set_const()
277 emit(SETHI(K, reg), ctx); in emit_set_const_sext()
278 emit(OR_LO(K, reg), ctx); in emit_set_const_sext()
283 emit(SETHI(hbits, reg), ctx); in emit_set_const_sext()
284 emit(XOR | IMMED | RS1(reg) | S13(lbits) | RD(reg), ctx); in emit_set_const_sext()
290 emit(opcode | RS1(dst) | RS2(src) | RD(dst), ctx); in emit_alu()
[all …]
/Linux-v6.1/Documentation/input/
Duinput.rst48 void emit(int fd, int type, int code, int val)
95 emit(fd, EV_KEY, KEY_SPACE, 1);
96 emit(fd, EV_SYN, SYN_REPORT, 0);
97 emit(fd, EV_KEY, KEY_SPACE, 0);
98 emit(fd, EV_SYN, SYN_REPORT, 0);
122 /* emit function is identical to of the first example */
159 emit(fd, EV_REL, REL_X, 5);
160 emit(fd, EV_REL, REL_Y, 5);
161 emit(fd, EV_SYN, SYN_REPORT, 0);
191 /* emit function is identical to of the first example */
[all …]
/Linux-v6.1/scripts/dtc/
Dflattree.c236 static void flatten_tree(struct node *tree, struct emitter *emit, in flatten_tree() argument
247 emit->beginnode(etarget, tree->labels); in flatten_tree()
250 emit->string(etarget, tree->fullpath, 0); in flatten_tree()
252 emit->string(etarget, tree->name, 0); in flatten_tree()
254 emit->align(etarget, sizeof(cell_t)); in flatten_tree()
264 emit->property(etarget, prop->labels); in flatten_tree()
265 emit->cell(etarget, prop->val.len); in flatten_tree()
266 emit->cell(etarget, nameoff); in flatten_tree()
269 emit->align(etarget, 8); in flatten_tree()
271 emit->data(etarget, prop->val); in flatten_tree()
[all …]
/Linux-v6.1/rust/macros/
Dmodule.rs68 fn emit(&mut self, field: &str, content: &str) { in emit() method
160 modinfo.emit("author", &author); in module()
163 modinfo.emit("description", &description); in module()
165 modinfo.emit("license", &info.license); in module()
167 modinfo.emit("alias", &alias); in module()
/Linux-v6.1/tools/perf/arch/x86/entry/syscalls/
Dsyscalltbl.sh14 emit() { function
32 emit "$nr" "$name"
/Linux-v6.1/arch/mips/vdso/
DKconfig2 # the base address of VDSO, the linker will emit a R_MIPS_PC32
10 # GCC (at least up to version 9.2) appears to emit function calls that make use
/Linux-v6.1/scripts/kconfig/
Dqconf.cc408 emit menuChanged(menu); in updateSelection()
413 emit menuSelected(menu); in updateSelection()
732 emit parentSelected(); in keyPressEvent()
747 emit parentSelected(); in keyPressEvent()
757 emit menuSelected(menu); in keyPressEvent()
759 emit itemSelected(menu); in keyPressEvent()
810 emit parentSelected(); in mouseReleaseEvent()
818 emit menuSelected(menu); in mouseReleaseEvent()
851 emit parentSelected(); in mouseDoubleClickEvent()
860 emit itemSelected(menu); in mouseDoubleClickEvent()
[all …]
/Linux-v6.1/scripts/
DMakefile.build143 cmd_cc_ll_c = $(CC) $(c_flags) -emit-llvm -S -fno-discard-value-names -o $@ $<
303 $(rust_common_cmd) --emit=dep-info,obj $<; \
311 $(rust_common_cmd) --emit=dep-info -Zunpretty=expanded $< >$@; \
320 $(rust_common_cmd) --emit=dep-info,asm $<; \
328 $(rust_common_cmd) --emit=dep-info,llvm-ir $<; \
Dsyscallhdr.sh44 --emit-nr)
/Linux-v6.1/Documentation/admin-guide/
Dclearing-warn-once.rst4 WARN_ONCE / WARN_ON_ONCE / printk_once only emit a message once.
/Linux-v6.1/tools/power/cpupower/utils/helpers/
Dbitmask.c249 static inline int emit(char *buf, int buflen, int rbot, int rtop, int len) in emit() function
288 len = emit(buf, buflen, rbot, rtop, len); in bitmask_displaylist()
/Linux-v6.1/tools/testing/selftests/tc-testing/
DMakefile27 -O2 -target bpf -emit-llvm -c $< -o - | \

12345