Lines Matching refs:r
157 static bool __report_matches(const struct expect_report *r) in __report_matches() argument
159 const bool is_assert = (r->access[0].type | r->access[1].type) & KCSAN_ACCESS_ASSERT; in __report_matches()
182 if (r->access[1].fn) { in __report_matches()
187 scnprintf(tmp[0], sizeof(tmp[0]), "%pS", r->access[0].fn); in __report_matches()
188 scnprintf(tmp[1], sizeof(tmp[1]), "%pS", r->access[1].fn); in __report_matches()
191 cmp < 0 ? r->access[0].fn : r->access[1].fn, in __report_matches()
192 cmp < 0 ? r->access[1].fn : r->access[0].fn); in __report_matches()
194 scnprintf(cur, end - cur, "%pS", r->access[0].fn); in __report_matches()
204 if (!r->access[1].fn) in __report_matches()
209 const int ty = r->access[i].type; in __report_matches()
232 if (!r->access[1].fn) { in __report_matches()
242 if (r->access[i].addr) /* Address is optional. */ in __report_matches()
244 r->access[i].addr, r->access[i].size); in __report_matches()
265 __report_set_scoped(struct expect_report *r, int accesses) in __report_set_scoped() argument
270 r->access[0].type |= KCSAN_ACCESS_SCOPED; in __report_set_scoped()
272 r->access[0].type &= ~KCSAN_ACCESS_SCOPED; in __report_set_scoped()
275 r->access[1].type |= KCSAN_ACCESS_SCOPED; in __report_set_scoped()
277 r->access[1].type &= ~KCSAN_ACCESS_SCOPED; in __report_set_scoped()
279 return r; in __report_set_scoped()
283 static bool report_matches_any_reordered(struct expect_report *r) in report_matches_any_reordered() argument
285 return __report_matches(__report_set_scoped(r, 0)) || in report_matches_any_reordered()
286 __report_matches(__report_set_scoped(r, 1)) || in report_matches_any_reordered()
287 __report_matches(__report_set_scoped(r, 2)) || in report_matches_any_reordered()
288 __report_matches(__report_set_scoped(r, 3)); in report_matches_any_reordered()