Lines Matching refs:observed

57 } observed = {  variable
58 .lock = __SPIN_LOCK_UNLOCKED(observed.lock),
108 spin_lock_irqsave(&observed.lock, flags); in probe_console()
109 nlines = observed.nlines; in probe_console()
118 strscpy(observed.lines[0], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
121 strscpy(observed.lines[nlines++], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
128 strcpy(observed.lines[nlines++], "<none>"); in probe_console()
133 WRITE_ONCE(observed.nlines, nlines); /* Publish new nlines. */ in probe_console()
134 spin_unlock_irqrestore(&observed.lock, flags); in probe_console()
141 return READ_ONCE(observed.nlines) == ARRAY_SIZE(observed.lines); in report_available()
162 typeof(observed.lines) expect; in __report_matches()
243 spin_lock_irqsave(&observed.lock, flags); in __report_matches()
248 ret = strstr(observed.lines[0], expect[0]) && in __report_matches()
250 ((strstr(observed.lines[1], expect[1]) && in __report_matches()
251 strstr(observed.lines[2], expect[2])) || in __report_matches()
252 (strstr(observed.lines[1], expect[2]) && in __report_matches()
253 strstr(observed.lines[2], expect[1]))); in __report_matches()
255 spin_unlock_irqrestore(&observed.lock, flags); in __report_matches()
1498 spin_lock_irqsave(&observed.lock, flags); in test_init()
1499 for (i = 0; i < ARRAY_SIZE(observed.lines); ++i) in test_init()
1500 observed.lines[i][0] = '\0'; in test_init()
1501 observed.nlines = 0; in test_init()
1502 spin_unlock_irqrestore(&observed.lock, flags); in test_init()