Lines Matching defs:ctx

231 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx)  in _emit()
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()
719 struct jit_ctx *ctx, const bool is64, in emit_a32_alu_r()
733 const s8 src[], struct jit_ctx *ctx, in emit_a32_alu_r64()
764 struct jit_ctx *ctx) { in emit_a32_mov_r()
775 struct jit_ctx *ctx) { in emit_a32_mov_r64()
803 struct jit_ctx *ctx, const u8 op) { in emit_a32_alu_i()
830 struct jit_ctx *ctx){ in emit_a32_neg64()
846 struct jit_ctx *ctx) { in emit_a32_lsh_r64()
870 struct jit_ctx *ctx) { in emit_a32_arsh_r64()
895 struct jit_ctx *ctx) { in emit_a32_rsh_r64()
919 const u32 val, struct jit_ctx *ctx){ in emit_a32_lsh_i64()
945 const u32 val, struct jit_ctx *ctx) { in emit_a32_rsh_i64()
975 const u32 val, struct jit_ctx *ctx){ in emit_a32_arsh_i64()
1004 struct jit_ctx *ctx) { in emit_a32_mul_r64()
1047 s16 off, struct jit_ctx *ctx, const u8 sz){ in emit_str_r()
1082 s16 off, struct jit_ctx *ctx, const u8 sz){ in emit_ldx_r()
1126 const u8 rn, struct jit_ctx *ctx, u8 op, in emit_ar_r()
1168 static int emit_bpf_tail_call(struct jit_ctx *ctx) in emit_bpf_tail_call()
1249 static inline void emit_rev16(const u8 rd, const u8 rn, struct jit_ctx *ctx) in emit_rev16()
1264 static inline void emit_rev32(const u8 rd, const u8 rn, struct jit_ctx *ctx) in emit_rev32()
1287 static inline void emit_push_r64(const s8 src[], struct jit_ctx *ctx) in emit_push_r64()
1299 static void build_prologue(struct jit_ctx *ctx) in build_prologue()
1340 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue()
1363 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx) in build_insn()
1845 static int build_body(struct jit_ctx *ctx) in build_body()
1874 static int validate_code(struct jit_ctx *ctx) in validate_code()
1901 struct jit_ctx ctx; in bpf_int_jit_compile() local