Lines Matching refs:linked_regs

4027 struct linked_regs {  struct
4032 static struct linked_reg *linked_regs_push(struct linked_regs *s) in linked_regs_push() argument
4047 static u64 linked_regs_pack(struct linked_regs *s) in linked_regs_pack()
4068 static void linked_regs_unpack(u64 val, struct linked_regs *s) in linked_regs_unpack()
4087 int insn_flags, u64 linked_regs) in push_jmp_history() argument
4103 verifier_bug_if(env->cur_hist_ent->linked_regs != 0, env, in push_jmp_history()
4105 env->insn_idx, env->cur_hist_ent->linked_regs); in push_jmp_history()
4106 env->cur_hist_ent->linked_regs = linked_regs; in push_jmp_history()
4121 p->linked_regs = linked_regs; in push_jmp_history()
4350 struct linked_regs linked_regs; in bt_sync_linked_regs() local
4354 if (!hist || hist->linked_regs == 0) in bt_sync_linked_regs()
4357 linked_regs_unpack(hist->linked_regs, &linked_regs); in bt_sync_linked_regs()
4358 for (i = 0; i < linked_regs.cnt; ++i) { in bt_sync_linked_regs()
4359 struct linked_reg *e = &linked_regs.entries[i]; in bt_sync_linked_regs()
4371 for (i = 0; i < linked_regs.cnt; ++i) { in bt_sync_linked_regs()
4372 struct linked_reg *e = &linked_regs.entries[i]; in bt_sync_linked_regs()
17369 static void __collect_linked_regs(struct linked_regs *reg_set, struct bpf_reg_state *reg, in __collect_linked_regs()
17394 struct linked_regs *linked_regs) in collect_linked_regs() argument
17410 __collect_linked_regs(linked_regs, reg, id, i, j, true); in collect_linked_regs()
17416 __collect_linked_regs(linked_regs, reg, id, i, j, false); in collect_linked_regs()
17425 struct bpf_reg_state *known_reg, struct linked_regs *linked_regs) in sync_linked_regs() argument
17432 for (i = 0; i < linked_regs->cnt; ++i) { in sync_linked_regs()
17433 e = &linked_regs->entries[i]; in sync_linked_regs()
17492 struct linked_regs linked_regs = {}; in check_cond_jmp_op() local
17629 collect_linked_regs(env, this_branch, src_reg->id, &linked_regs); in check_cond_jmp_op()
17631 collect_linked_regs(env, this_branch, dst_reg->id, &linked_regs); in check_cond_jmp_op()
17632 if (linked_regs.cnt > 1) { in check_cond_jmp_op()
17633 err = push_jmp_history(env, this_branch, 0, linked_regs_pack(&linked_regs)); in check_cond_jmp_op()
17667 sync_linked_regs(env, this_branch, src_reg, &linked_regs); in check_cond_jmp_op()
17669 &linked_regs); in check_cond_jmp_op()
17673 sync_linked_regs(env, this_branch, dst_reg, &linked_regs); in check_cond_jmp_op()
17675 &linked_regs); in check_cond_jmp_op()