Home
last modified time | relevance | path

Searched refs:is32 (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/arch/loongarch/net/
Dbpf_jit.c406 const bool is32 = BPF_CLASS(insn->code) == BPF_ALU || BPF_CLASS(insn->code) == BPF_JMP32; in build_insn() local
413 emit_zext_32(ctx, dst, is32); in build_insn()
419 move_imm(ctx, dst, imm, is32); in build_insn()
426 emit_zext_32(ctx, dst, is32); in build_insn()
435 move_imm(ctx, t1, imm, is32); in build_insn()
438 emit_zext_32(ctx, dst, is32); in build_insn()
445 emit_zext_32(ctx, dst, is32); in build_insn()
454 move_imm(ctx, t1, imm, is32); in build_insn()
457 emit_zext_32(ctx, dst, is32); in build_insn()
464 emit_zext_32(ctx, dst, is32); in build_insn()
[all …]
Dbpf_jit.h66 static inline void emit_zext_32(struct jit_ctx *ctx, enum loongarch_gpr reg, bool is32) in emit_zext_32() argument
68 if (!is32) in emit_zext_32()
75 static inline void emit_sext_32(struct jit_ctx *ctx, enum loongarch_gpr reg, bool is32) in emit_sext_32() argument
77 if (!is32) in emit_sext_32()
83 static inline void move_imm(struct jit_ctx *ctx, enum loongarch_gpr rd, long imm, bool is32) in move_imm() argument
143 emit_zext_32(ctx, rd, is32); in move_imm()
/linux-6.1.9/arch/s390/net/
Dbpf_jit_comp.c1202 bool is32 = BPF_SIZE(insn->code) == BPF_W; in bpf_jit_insn() local
1207 EMIT6_DISP_LH(0xeb000000, is32 ? (op32) : (op64), \ in bpf_jit_insn()
1210 if (is32 && (insn->imm & BPF_FETCH)) \ in bpf_jit_insn()
1237 is32 ? 0x0058 : 0x0004, REG_W0, REG_0, in bpf_jit_insn()
1240 EMIT6_DISP_LH(0xeb000000, is32 ? 0x0014 : 0x0030, in bpf_jit_insn()
1245 EMIT4(is32 ? 0xb9160000 : 0xb9040000, src_reg, REG_W0); in bpf_jit_insn()
1246 if (is32 && insn_is_zext(&insn[1])) in bpf_jit_insn()
1251 EMIT6_DISP_LH(0xeb000000, is32 ? 0x0014 : 0x0030, in bpf_jit_insn()