Lines Matching refs:linked_regs

3790 struct linked_regs {  struct
3795 static struct linked_reg *linked_regs_push(struct linked_regs *s) in linked_regs_push() argument
3810 static u64 linked_regs_pack(struct linked_regs *s) in linked_regs_pack()
3831 static void linked_regs_unpack(u64 val, struct linked_regs *s) in linked_regs_unpack()
3850 int insn_flags, u64 linked_regs) in push_insn_history() argument
3865 WARN_ONCE(env->cur_hist_ent->linked_regs != 0, in push_insn_history()
3867 env->insn_idx, env->cur_hist_ent->linked_regs); in push_insn_history()
3868 env->cur_hist_ent->linked_regs = linked_regs; in push_insn_history()
3885 p->linked_regs = linked_regs; in push_insn_history()
4118 struct linked_regs linked_regs; in bt_sync_linked_regs() local
4122 if (!hist || hist->linked_regs == 0) in bt_sync_linked_regs()
4125 linked_regs_unpack(hist->linked_regs, &linked_regs); in bt_sync_linked_regs()
4126 for (i = 0; i < linked_regs.cnt; ++i) { in bt_sync_linked_regs()
4127 struct linked_reg *e = &linked_regs.entries[i]; in bt_sync_linked_regs()
4139 for (i = 0; i < linked_regs.cnt; ++i) { in bt_sync_linked_regs()
4140 struct linked_reg *e = &linked_regs.entries[i]; in bt_sync_linked_regs()
16277 static void __collect_linked_regs(struct linked_regs *reg_set, struct bpf_reg_state *reg, in __collect_linked_regs()
16300 struct linked_regs *linked_regs) in collect_linked_regs() argument
16311 __collect_linked_regs(linked_regs, reg, id, i, j, true); in collect_linked_regs()
16317 __collect_linked_regs(linked_regs, reg, id, i, j, false); in collect_linked_regs()
16326 struct linked_regs *linked_regs) in sync_linked_regs() argument
16333 for (i = 0; i < linked_regs->cnt; ++i) { in sync_linked_regs()
16334 e = &linked_regs->entries[i]; in sync_linked_regs()
16378 struct linked_regs linked_regs = {}; in check_cond_jmp_op() local
16498 collect_linked_regs(this_branch, src_reg->id, &linked_regs); in check_cond_jmp_op()
16500 collect_linked_regs(this_branch, dst_reg->id, &linked_regs); in check_cond_jmp_op()
16501 if (linked_regs.cnt > 1) { in check_cond_jmp_op()
16502 err = push_insn_history(env, this_branch, 0, linked_regs_pack(&linked_regs)); in check_cond_jmp_op()
16537 sync_linked_regs(this_branch, src_reg, &linked_regs); in check_cond_jmp_op()
16538 sync_linked_regs(other_branch, &other_branch_regs[insn->src_reg], &linked_regs); in check_cond_jmp_op()
16542 sync_linked_regs(this_branch, dst_reg, &linked_regs); in check_cond_jmp_op()
16543 sync_linked_regs(other_branch, &other_branch_regs[insn->dst_reg], &linked_regs); in check_cond_jmp_op()