Lines Matching refs:observed
54 } observed = { variable
55 .lock = __SPIN_LOCK_UNLOCKED(observed.lock),
105 spin_lock_irqsave(&observed.lock, flags); in probe_console()
106 nlines = observed.nlines; in probe_console()
115 strscpy(observed.lines[0], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
118 strscpy(observed.lines[nlines++], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
125 strcpy(observed.lines[nlines++], "<none>"); in probe_console()
130 WRITE_ONCE(observed.nlines, nlines); /* Publish new nlines. */ in probe_console()
131 spin_unlock_irqrestore(&observed.lock, flags); in probe_console()
138 return READ_ONCE(observed.nlines) == ARRAY_SIZE(observed.lines); in report_available()
159 typeof(observed.lines) expect; in report_matches()
240 spin_lock_irqsave(&observed.lock, flags); in report_matches()
245 ret = strstr(observed.lines[0], expect[0]) && in report_matches()
247 ((strstr(observed.lines[1], expect[1]) && in report_matches()
248 strstr(observed.lines[2], expect[2])) || in report_matches()
249 (strstr(observed.lines[1], expect[2]) && in report_matches()
250 strstr(observed.lines[2], expect[1]))); in report_matches()
252 spin_unlock_irqrestore(&observed.lock, flags); in report_matches()
1139 spin_lock_irqsave(&observed.lock, flags); in test_init()
1140 for (i = 0; i < ARRAY_SIZE(observed.lines); ++i) in test_init()
1141 observed.lines[i][0] = '\0'; in test_init()
1142 observed.nlines = 0; in test_init()
1143 spin_unlock_irqrestore(&observed.lock, flags); in test_init()