Lines Matching refs:rcur
6813 static bool regsafe(struct bpf_reg_state *rold, struct bpf_reg_state *rcur, in regsafe() argument
6822 equal = memcmp(rold, rcur, offsetof(struct bpf_reg_state, parent)) == 0; in regsafe()
6828 return equal && rold->frameno == rcur->frameno; in regsafe()
6836 if (rcur->type == NOT_INIT) in regsafe()
6840 if (rcur->type == SCALAR_VALUE) { in regsafe()
6841 if (!rold->precise && !rcur->precise) in regsafe()
6844 return range_within(rold, rcur) && in regsafe()
6845 tnum_in(rold->var_off, rcur->var_off); in regsafe()
6865 return memcmp(rold, rcur, offsetof(struct bpf_reg_state, id)) == 0 && in regsafe()
6866 range_within(rold, rcur) && in regsafe()
6867 tnum_in(rold->var_off, rcur->var_off); in regsafe()
6876 if (rcur->type != PTR_TO_MAP_VALUE_OR_NULL) in regsafe()
6878 if (memcmp(rold, rcur, offsetof(struct bpf_reg_state, id))) in regsafe()
6881 return check_ids(rold->id, rcur->id, idmap); in regsafe()
6884 if (rcur->type != rold->type) in regsafe()
6892 if (rold->range > rcur->range) in regsafe()
6897 if (rold->off != rcur->off) in regsafe()
6900 if (rold->id && !check_ids(rold->id, rcur->id, idmap)) in regsafe()
6903 return range_within(rold, rcur) && in regsafe()
6904 tnum_in(rold->var_off, rcur->var_off); in regsafe()