Lines Matching refs:jit_ctx
200 struct jit_ctx { struct
231 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) in _emit() argument
245 static inline void emit(u32 inst, struct jit_ctx *ctx) in emit()
366 static u16 imm_offset(u32 k, struct jit_ctx *ctx) in imm_offset()
412 const struct jit_ctx *ctx) { in bpf2a32_offset()
426 static inline void emit_mov_i_no8m(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i_no8m()
437 static inline void emit_mov_i(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i()
447 static void emit_bx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_bx_r()
455 static inline void emit_blx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_blx_r()
465 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset()
477 static inline void emit_udivmod(u8 rd, u8 rm, u8 rn, struct jit_ctx *ctx, u8 op) in emit_udivmod()
543 static s8 arm_bpf_get_reg32(s8 reg, s8 tmp, struct jit_ctx *ctx) in arm_bpf_get_reg32()
553 struct jit_ctx *ctx) in arm_bpf_get_reg64()
575 static void arm_bpf_put_reg32(s8 reg, s8 src, struct jit_ctx *ctx) in arm_bpf_put_reg32()
584 struct jit_ctx *ctx) in arm_bpf_put_reg64()
606 struct jit_ctx *ctx) in emit_a32_mov_i()
618 static void emit_a32_mov_i64(const s8 dst[], u64 val, struct jit_ctx *ctx) in emit_a32_mov_i64()
631 const u32 val, struct jit_ctx *ctx) { in emit_a32_mov_se_i64()
641 struct jit_ctx *ctx) { in emit_a32_add_r()
658 struct jit_ctx *ctx) { in emit_a32_sub_r()
674 const bool hi, const u8 op, struct jit_ctx *ctx){ in emit_alu_r()
717 const s8 src[], struct jit_ctx *ctx, in emit_a32_alu_r64()
748 struct jit_ctx *ctx) { in emit_a32_mov_r()
759 struct jit_ctx *ctx) { in emit_a32_mov_r64()
787 struct jit_ctx *ctx, const u8 op) { in emit_a32_alu_i()
814 struct jit_ctx *ctx){ in emit_a32_neg64()
830 struct jit_ctx *ctx) { in emit_a32_lsh_r64()
854 struct jit_ctx *ctx) { in emit_a32_arsh_r64()
879 struct jit_ctx *ctx) { in emit_a32_rsh_r64()
903 const u32 val, struct jit_ctx *ctx){ in emit_a32_lsh_i64()
929 const u32 val, struct jit_ctx *ctx) { in emit_a32_rsh_i64()
959 const u32 val, struct jit_ctx *ctx){ in emit_a32_arsh_i64()
988 struct jit_ctx *ctx) { in emit_a32_mul_r64()
1031 s16 off, struct jit_ctx *ctx, const u8 sz){ in emit_str_r()
1066 s16 off, struct jit_ctx *ctx, const u8 sz){ in emit_ldx_r()
1110 const u8 rn, struct jit_ctx *ctx, u8 op, in emit_ar_r()
1152 static int emit_bpf_tail_call(struct jit_ctx *ctx) in emit_bpf_tail_call()
1234 static inline void emit_rev16(const u8 rd, const u8 rn, struct jit_ctx *ctx) in emit_rev16()
1249 static inline void emit_rev32(const u8 rd, const u8 rn, struct jit_ctx *ctx) in emit_rev32()
1272 static inline void emit_push_r64(const s8 src[], struct jit_ctx *ctx) in emit_push_r64()
1284 static void build_prologue(struct jit_ctx *ctx) in build_prologue()
1325 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue()
1348 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx) in build_insn()
1829 static int build_body(struct jit_ctx *ctx) in build_body()
1858 static int validate_code(struct jit_ctx *ctx) in validate_code()
1880 struct jit_ctx ctx; in bpf_int_jit_compile()