Lines Matching refs:rcur
8602 static bool regsafe(struct bpf_reg_state *rold, struct bpf_reg_state *rcur, in regsafe() argument
8611 equal = memcmp(rold, rcur, offsetof(struct bpf_reg_state, parent)) == 0; in regsafe()
8617 return equal && rold->frameno == rcur->frameno; in regsafe()
8625 if (rcur->type == NOT_INIT) in regsafe()
8629 if (rcur->type == SCALAR_VALUE) { in regsafe()
8630 if (!rold->precise && !rcur->precise) in regsafe()
8633 return range_within(rold, rcur) && in regsafe()
8634 tnum_in(rold->var_off, rcur->var_off); in regsafe()
8654 return memcmp(rold, rcur, offsetof(struct bpf_reg_state, id)) == 0 && in regsafe()
8655 range_within(rold, rcur) && in regsafe()
8656 tnum_in(rold->var_off, rcur->var_off); in regsafe()
8665 if (rcur->type != PTR_TO_MAP_VALUE_OR_NULL) in regsafe()
8667 if (memcmp(rold, rcur, offsetof(struct bpf_reg_state, id))) in regsafe()
8670 return check_ids(rold->id, rcur->id, idmap); in regsafe()
8673 if (rcur->type != rold->type) in regsafe()
8681 if (rold->range > rcur->range) in regsafe()
8686 if (rold->off != rcur->off) in regsafe()
8689 if (rold->id && !check_ids(rold->id, rcur->id, idmap)) in regsafe()
8692 return range_within(rold, rcur) && in regsafe()
8693 tnum_in(rold->var_off, rcur->var_off); in regsafe()